Technical Background
The package contains different electric motors, power electronic converters and load models. In this part the technical models are described and references to more detailed explanations are given. All included electric motors can be represented by a system of differential equations and those are the same for the continuous and discrete action case. The load model is the same in all cases. The converters are shortly introduced. More detailed descriptions are included in each converter class, where also the action space is specified.
The DC motors
permanently excited
externally excited
series
shunt
and the synchronous motors
permanent magnet synchronous motor (PMSM)
synchronous reluctance motor (SynRM)
are included. The figure below shows the basic structure of converter, motor and load that is modeled.
Further information about electrical motor and power electronic converters can be found in [Boecker2018a], [Boecker2018b] and [Chiasson2005].
DC Motors
Externally Excited Motor
The figure shows the circuit diagram of this motor [Boecker2018a].
The equations are
\(u_A=\mathit{\Psi}^\prime_E \omega + L_A \frac{\mathrm{d} i_A}{\mathrm{d} t} +R_A i_A\)
\(u_E=L_E \frac{\mathrm{d} i_E}{\mathrm{d} t} + R_E i_E\)
\(\mathit{\Psi}^\prime_E=L^\prime_E i_E\)
\(T=\mathit{\Psi}^\prime_E i_A\)
\(\frac{\mathrm{d} \omega_{me}}{\mathrm{d} t}=\frac{T-T_L(\omega_{me})}{J}\)
and can be rewritten as
\(\frac{\mathrm{d} i_A}{\mathrm{d} t}=\frac{u_A-L^\prime_E \omega i_E -R_A i_A}{L_A}\)
\(\frac{\mathrm{d} i_E}{\mathrm{d} t}=\frac{u_E-R_E i_E}{L_E}\)
\(\frac{\mathrm{d} \omega_{me}}{\mathrm{d} t}=\frac{L^\prime_E i_A i_E -T_L(\omega_{me})}{J}\text{.}\)
For DC motors is \(\omega_{me}=\omega\) valid.
The quantities for this and the other motors are:
\(u_A\) armature voltage
\(u_E\) excitation voltage
\(i_A\) armature current
\(i_E\) armature current
\(R_A\) armature resistance
\(R_E\) excitation resistance
\(L_A\) armature inductance
\(L_E\) excitation inductance
\(\omega\) (electrical) angular velocity
\(\omega_{me}\) mechanical angular velocity
\(L^\prime_E\) effective excitation inductance
\(T\) Torque produced by the motor
\(T_L\) Torque from the load
\(J\) moment of inertia
\(\mathit{\Psi}^\prime_E\) effective excitation flux
Other motors are build on this motor with different connections of armature and excitation circuit.
Series Motor
In this type both circuits are in series connection, \(i=i_A=i_E\) and \(u=u_A+u_E\), as shown in the figure [Boecker2018a].
The equation for this motor are
\(\frac{\mathrm{d} i}{\mathrm{d} t}=-\frac{L^\prime_E}{L_A+L_E} i \omega -\frac{R_A+R_E}{L_A+L_E} i + \frac{1}{L_A+L_E} u\)
\(\frac{\mathrm{d} \omega}{\mathrm{d} t}=\frac{L^\prime_E}{J} i^2-\frac{1}{J}T_L(\omega)\)
The torque equation is the same as before.
Shunt Motor
In this type the circuits are connected in parallel, \(i=i_A+i_E\) and \(u=u_A=u_E\), as shown in the figure [Boecker2018a].
The equation for this motor are
\(\frac{\mathrm{d} i_A}{\mathrm{d} t}=\frac{u-L^\prime_E \omega i_E -R_A i_A}{L_A}\)
\(\frac{\mathrm{d} i_E}{\mathrm{d} t}=\frac{u-R_E i_E}{L_E}\)
\(\frac{\mathrm{d} \omega}{\mathrm{d} t}=\frac{L^\prime_E i_A i_E -T_L(\omega)}{J}\)
and the torque equation is the same as before.
Permanently Excited Motor
In this type the excitation \(\mathit{\Psi}^\prime_E\) is constant and therefore it only contains the armature circuit of the externally excited motor.
The equations are
\(\frac{\mathrm{d} i}{\mathrm{d} t}=\frac{u-\mathit{\Psi}^\prime_E \omega -R_A i}{L_A}\)
\(\frac{\mathrm{d} \omega}{\mathrm{d} t}=\frac{L^\prime_E i^2 -T_L(\omega)}{J}\)
Permanent Magnet Synchronous Motor (PMSM)
The PMSM is a three phase motor with a permanent magnet in the rotor as shown in the figure [Boecker2018b]. The input of this motor are the voltages \(u_a\), \(u_b\) and \(u_c\).
The quantities are:
\(u_a\), \(u_b\), \(u_c\) phase voltages
\(i_a\), \(i_b\), \(i_c\) phase currents
\(R_s\) stator resistance
\(L_d\) d-axis inductance
\(L_q\) q-axis inductance
\(i_{sd}\) d-axis current
\(i_{sq}\) q-axis current
\(u_{sd}\) d-axis voltage
\(u_{sq}\) q-axis voltage
\(p\) pole pair number
\(\mathit{\Psi}_p\) permanent linked rotor flux
\(\epsilon\) rotor position angle
\(\omega\) (electrical) angular velocity
\(\omega_{me}\) mechanical angular velocity
\(T\) Torque produced by the motor
\(T_L\) Torque from the load
\(J\) moment of inertia
The electrical angular velocity and the mechanical angular velocity are related such that \(\omega=\omega_{me} p\).
The circuit diagram of the phases are similar to each other and the armature circuit of the externally excited motor.
For an easy computation the three phases are first transformed to the quantities \(\alpha\) and \(\beta\) and afterwards to \(d/q\) coordinates that rotated with the rotor as given in [Boecker2018b].
This results in the equations:
\(u_{sd}=R_s i_{sd}+L_d \frac{\mathrm{d} i_{sd}}{\mathrm{d} t}-\omega_{me}p L_q i_{sq}\)
\(u_{sq}=R_s i_{sq}+L_q \frac{\mathrm{d} i_{sq}}{\mathrm{d} t}+\omega_{me}p L_d i_{sd}+\omega_{me}p \mathit{\Psi}_p\)
\(\frac{\mathrm{d} \omega_{me}}{\mathrm{d} t}=\frac{T-T_L(\omega_{me})}{J}\)
\(T=\frac{3}{2} p (\mathit{\Psi}_p +(L_d-L_q)i_{sd}) i_{sq}\)
A more detailed derivation can be found in [Modeling and High-Performance Control of Electric Machines, John Chiasson (2005)]
The difference between rms and peak values and between line and phase quantities has to be considered at the PMSM. The PMSM is in star conncetion and the line voltage \(U_L\) is mostly given in data sheets as rms value. In the toolbox the nominal value of the phase voltage \(\hat{U}_S=\sqrt{\frac{2}{3}}U_L\) is needed. Furthermore, the supply voltage is typically the same \(u_{sup}=\hat{U}_S\). For example, a line voltage of \(U_L=400~\text{V}\) is given, the rms phase voltage is \(U_S=\sqrt{\frac{1}{3}}U_L = 230.9 \text{ V}\) and the peak value \(\hat{U}_S=326.6 \text{ V}\). The nominal peak current of a phase is given by \(\hat{I}_S=\sqrt{2} I_S\).
Converter
The DC input voltage of the converter is named supply voltage \(u_{sup}\) in the package and the output voltage and current are the input quantities of the motor and therefore are named as \(u_{in}\) and \(i_{in}\). All converter contain a dead time of one sampling interval and an interlocking times can be considered. More details can be found in [Boecker2018a], [Boecker2018b] and [Chiasson2005].
1 Quadrant Converter (1QC)
This converter can provide positive voltages and positive currents at the output [Boecker2018a].
\(u_{in} \geq 0\)
\(i_{in} \geq 0\)
2 Quadrant Converter (2QC)
This converter can provide positive voltages and both current directions at the output [Boecker2018a].
\(u_{in} \geq 0\)
\(i_{in}\) both signs
4 Quadrant Converter (4QC)
This converter can provide both voltage and currents polarities at the output [Boecker2018a].
\(u_{in}\) both signs
\(i_{in}\) both signs
Three-Phase Voltage Source Inverter
This converter is also called B6 bridge and is used for three phase motors as the PMSM. The supply voltage is DC and it consists of three parallel half bridges, one for each phase \(u_a\), \(u_b\) and \(u_c\). Due to this 8 different switching states are possible. A dead time of one sampling time step and interlocking times can be considered. A symmetric B6 bridge with a voltage range of \([-u_{DC}/2,~+u_{DC}/2]\) is used. [Boecker2018b]
Load Models
The package can deal with polynomial load equations
\(T_L(\omega_{me})=\mathrm{sign}(\omega_{me})(c \omega^2_{me} + b \vert\omega_{me}\vert + a)\).
Furthermore an additional moment of inertia \(J_{Load}\) of the load can be set.