JMAG

Permanent Magnetic Synchronous Motor $—$ permanent magnet synchronous motor model using a JMAG-RT model

 • The Permanent Magnet Synchronous Motor JMAG-RT component uses external code, provided through an attached .rtt file, to model a permanent-magnet, three-phase, synchronous electric motor.
 • Use the following steps to attach and connect to an external rtt file:
 1 Select the Attached Files tab.
 2 Right-click on Documents, and then select Attach File....
 3 In the Attach Document dialog, browse to the location of the .rtt motor file, select it, and then click Attach....
 4 Select the JMAG-RT component in the Model Workspace.
 5 Select the Properties tab, open the Parameters > General section, and then select the attached .rtt file from the rtt_filename list.
 • This component should be used with a fixed-step solver. To select a fixed-step solver, click the Settings tab, expand the Simulation section, and then select Fixed from the Solver Type list.

Variables

 Name Value Units Description Modelica ID $v$ $V$ 3-phases of voltage v $i$ $A$ 3-phases of current i $\mathrm{\phi }$ $\mathrm{radian}$ Angular position of shaft phi $\mathrm{\tau }$ $\mathrm{N·m}$ Torque on shaft tau

Connections

 Name Description Modelica ID ${\mathrm{plug}}_{p}$ Positive 3-phase plug plug_p ${\mathrm{plug}}_{n}$ Negative 3-phase plug plug_n $\mathrm{flange}$ Rotational flange of shaft flange $\mathrm{support}$ (optional) Support/housing of component support ${T}_{\mathrm{input}}$ (optional) Signal input to control temperature [K] Tinput $\mathrm{eddyloss}$ (optional) Signal output of eddy current loss [W] eddyloss $\mathrm{hystloss}$ (optional) Signal output of hysteresis loss [W] hystloss

Parameters

 Name Default Units Description Modelica ID rtt filename Name of rtt file rtt_filename ${\mathrm{\tau }}_{\mathrm{sense}}$ 0 $s$ Time-constant of current/voltage sense filter (typical number when enabled is 0.0003) tau_sense use support false True means add a 1D rotational port to support the torque on the shell of the motor useSupport set initial angle false True means set the initial angular displacement of the shaft setDisplacement0 initial angle 0 $\mathrm{rad}$ Initial angular position of the shaft displacement0 set resistance false True means set the winding resistance setRes ${R}_{\mathrm{winding}}$ 0 $\mathrm{\Omega }$ Winding resistance; used only if set resistance is true Rwinding set temperature false True means set the motor temperature setTemp use ${T}_{\mathrm{input}}$ false True means add a signal input to control the temperature; available only if set temperature is true useTinput $T$ 298.15 $K$ Temperature of motor; used if parameter use ${T}_{\mathrm{input}}$ is false and set temperature is true T use iron loss false True means enable signal outputs for eddy current loss and hysteresis loss use_iron_loss correct turn1 false True means apply correction factor to turn 1 windings corr_turn1 correct turn2 false True means apply correction factor to turn 2 windings corr_turn2 correct flux false True means apply correction factor to the flux corr_flux correct inductance false True means apply correction factor to the inductance corr_induct correct magnet false True means apply correction factor to the magnet corr_magnet correct steel false True means apply correction factor to the steel corr_steel correct torque false True means apply correction factor to the torque corr_torque turn1 correction 1 Correction factor for turn 1 windings turn1_corr turn2 correction 1 Correction factor for turn 2 windings turn2_corr flux correction 1 Correction factor for flux flux_corr inductance correction 1 Correction factor for inductance inductance_corr magnet correction 1 Correction factor for magnet magnet_corr steel correction 1 Correction factor for steel steel_corr torque correction 1 Correction factor for torque torque_corr