Machines

This section describes the concepts used in the modeling and implementation of electrical machine components in Typhoon HIL Schematic Editor.

All electrical machine components consist of two parts:
  • the electrical circuit interface
  • the machine solver
The signals measured in the circuit interface are used as inputs to the machine solver. The machine solver then calculates the model outputs and feeds them to the controlled sources in the circuit interface.

Circuit interface

The machine components in the Typhoon HIL Schematic Editor Library use two types of circuit interfaces, the current source interface, and the voltage behind reactance interface (VBR). When using the current source interface, the machine model equations are formulated in such a way that the voltages are inputs, while the currents are outputs. Conversely, when using the voltage behind reactance interface, the machine model equations are formulated in such a way that the currents are inputs, while the voltages are outputs. Stator, rotor, and field winding variables can be found as machine_name.winding.variable_name in HIL SCADA (from the 2021.3 Typhoon HIL Control Center version) and TyphoonSim Scope.

Figure 1. Current source interface
Current sources implementation variables:
  • v_ab
    • Measured line voltage between terminals A and B [V]
  • v_bc
    • Measured line voltage between terminals B and C [V]
  • ωr
    • Rotor mechanical speed [rad/s]
  • i_ac
    • Calculated phase A current [A]
  • i_bc
    • Calculated phase B current [A]
  • Te
    • Machine developed electromagnetic torque [Nm]
Figure 2. Voltage behind reactance interface
Voltage behind reactance implementation variables:
  • i_a
    • Measured phase A current [A]
  • i_b
    • Measured phase B current [A]
  • i_c
    • Measured phase C current [A]
  • ωr
    • Rotor mechanical speed [rad/s]
  • e_ac
    • Calculated phase A induced back emf [V]
  • e_bc
    • Calculated phase B induced back emf [V]
  • e_cc
    • Calculated phase C induced back emf [V]
  • Te
    • Machine developed electromagnetic torque [Nm]

Machine solver in real-time/VHIL

The real-time/VHIL machine solver is a dedicated module that simulates the electrical and mechanical parts of the machine model, as well as the encoder and resolver feedback signals. Electrical subsystem model equations are used for calculating machine electrical variables. The motion equation and the machine electrical torque expression are used to calculate machine mechanical variables. Nonlinear effects such as flux saturation and spatial harmonics are modeled as lookup tables. The number of points available for the lookup tables used in a single machine component is 215. If the total number of points provided in the lookup tables exceeds this number, the tables will be rescaled to work with fewer points. The resulting tables may have a lower resolution than the original ones. The lookup tables use linear interpolation and linear extrapolation. More information about the nonlinear machines toolbox can be found here.

Machine solver in TyphoonSim

Machine models in TyphoonSim are implemented using controlled current sources or voltage behind reactance (VBR) interfaces. In both implementations, phase voltages and currents are sampled at each time step and are used to solve the machine’s state space model.

Machine models are currently using an explicit first order Euler integration method which is separate from the main solver and is suitable for obtaining stable results at small time steps. More sophisticated integration methods for machine models are planned in future updates.

For machines with current source interface, phase voltages are sampled as inputs to the model and machine stator and (if a rotor circuit exists) rotor fluxes or currents are chosen as state variables. Machine currents are then calculated according to the machine mathematical model in either αβ0 or dq0 coordinates and are converted to the phase domain and applied to the current sources.

In the voltage behind reactance (VBR) implementation, in case the machine has a rotor circuit, rotor fluxes are chosen as state variables with stator currents as inputs to the state-space model. This state-space model is then used to represents the machine rotor as a controlled voltage source connected in series to an equivalent inductor and further to the stator equivalent circuit in either αβ0 or qd0 coordinates. The VBR configuration is then interfaced in phase coordinates to the rest of the circuit. The phase voltage is used as an input to provide necessary calculations to obtain a constant parameter (R and L) interface only when machine has saliency or when nonlinear properties, such as saturation, are modeled.

Reference frames

Reference frame transformations are commonly used to eliminate time-varying inductances in the machine model. Unless otherwise noted, all of the machine models in the Typhoon HIL Schematic Editor Library are implemented using one of the following reference frames:

Stationary αβ reference frame

Rotating dq reference frame

Stationary αβ reference frame

Clarke's transformation transforms stator and rotor electrical variables from the original three phase domain into a stationary two phase αβ domain.

Electrical variables are transformed to αβ components using the transformation matrix:

T abc / αβo = 2 3 c o s θ a b c o s θ a b - 2 π 3 c o s θ a b + 2 π 3 - s i n θ a b - s i n θ a b - 2 π 3 - s i n θ a b + 2 π 3 1 2 1 2 1 2

In order to keep the same amplitude of the electrical variables as in the original phase domain, a multiplier of 2/3 is introduced in the abc/αβ transformation matrix. θab determines the position of the used stationary reference frame with regard to the stator phase winding a.

Three phase quantities are transformed to αβ components using the equation:

X αβo = T abc / αβo ٠ X abc

where X represents a vector of voltages, currents, or fluxes.

Stationary αβ components of electrical variables are transformed to phase values using the inverse Clarke's transformation matrix in the following form:

T αβo / abc = c o s θ a b - s i n θ a b 1 c o s θ a b - 2 π 3 - s i n θ a b - 2 π 3 1 c o s θ a b + 2 π 3 - s i n θ a b + 2 π 3 1

αβ components of three phase quantities are transformed to phase components using the equation:

X abc = T αβo / abc ٠ X αβo

where X represents a vector of voltages, currents, or fluxes.

Figure 3. Transformation of a three phase frame into an αβ frame

The general form of the αβ transformation matrix for the n-phase machine is given by:

T abc / αβo = 2 n c o s θ a b c o s θ a b - 2 π n c o s θ a b - 2 ٠ 2 π n c o s θ a b - 3 ٠ 2 π n ٠ ٠ ٠ c o s θ a b - ( n - 3 ) ٠ 2 π n c o s θ a b - ( n - 2 ) ٠ 2 π n c o s θ a b - ( n - 1 ) ٠ 2 π n - s i n θ a b - s i n θ a b - 2 π n - s i n θ a b - 2 ٠ 2 π n - s i n θ a b - 3 ٠ 2 π n ٠ ٠ ٠ - s i n θ a b - ( n - 3 ) ٠ 2 π n - s i n θ a b - ( n - 2 ) ٠ 2 π n - s i n θ a b - ( n - 1 ) ٠ 2 π n c o s θ a b c o s θ a b - 2 ٠ 2 π n c o s θ a b - 4 ٠ 2 π n c o s θ a b - 6 ٠ 2 π n ٠ ٠ ٠ c o s θ a b - 2 ٠ ( n - 3 ) ٠ 2 π n c o s θ a b - 2 ٠ ( n - 2 ) ٠ 2 π n c o s θ a b - 2 ٠ ( n - 1 ) ٠ 2 π n - s i n θ a b - s i n θ a b - 2 ٠ 2 π n - s i n θ a b - 4 ٠ 2 π n - s i n θ a b - 6 ٠ 2 π n ٠ ٠ ٠ - s i n θ a b - 2 ٠ ( n - 3 ) ٠ 2 π n - s i n θ a b - 2 ٠ ( n - 2 ) ٠ 2 π n - s i n θ a b - 2 ٠ ( n - 1 ) ٠ 2 π n c o s θ a b c o s θ a b - 3 ٠ 2 π n c o s θ a b - 6 ٠ 2 π n c o s θ a b - 9 ٠ 2 π n ٠ ٠ ٠ c o s θ a b - 3 ٠ ( n - 3 ) ٠ 2 π n c o s θ a b - 3 ٠ ( n - 2 ) ٠ 2 π n c o s θ a b - 3 ٠ ( n - 1 ) ٠ 2 π n - s i n θ a b - s i n θ a b - 3 ٠ 2 π n - s i n θ a b - 6 ٠ 2 π n - s i n θ a b - 9 ٠ 2 π n ٠ ٠ ٠ - s i n θ a b - 3 ٠ ( n - 3 ) ٠ 2 π n - s i n θ a b - 3 ٠ ( n - 2 ) ٠ 2 π n - s i n θ a b - 3 ٠ ( n - 1 ) ٠ 2 π n ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ ٠ 1 2 1 2 1 2 1 2 ٠ ٠ ٠ 1 2 1 2 1 2 1 2 - 1 2 1 2 - 1 2 ٠ ٠ ٠ - 1 2 1 2 - 1 2

where n is the number of phases.

The first two rows of the matrix define variables that will lead to fundamental flux and torque production. The last two rows define the two zero sequence components, and the last row of the transformation matrix is omitted for all odd phase numbers n. In between, there are (n - 4)/2 pairs of rows which define (n - 4)/2 pairs of variables for even phase numbers, and (n - 3)/2 pairs of rows and variables for odd phase numbers. These components correspond to certain voltage, flux, and current harmonics and do not contribute to torque production.

Rotating dq reference frame

Park's transformation transforms stator and rotor electrical variables from the original three phase domain into a rotating two phase dq domain.

Electrical variables are transformed to dq components using the transformation matrix:

T abc / dqo = 2 3 c o s ω t + θ a b c o s ω t - 2 π 3 + θ a b c o s ω t + 2 π 3 + θ a b - s i n ω t + θ a b - s i n ω t - 2 π 3 + θ a b - s i n ω t + 2 π 3 + θ a b 1 2 1 2 1 2

The position of the rotating frame is given by ωt, where ω represents the dq frame rotation speed. θab determines the position of the used rotating reference frame with regard to the stator phase winding a.

Three phase quantities are transformed to dq components using the equation:

X dqo = T abc / dqo ٠ X abc

where X represents a vector of voltages, currents, or fluxes.

Rotating dq components of electrical variables are transformed to phase values using the inverse Park's transformation matrix in the following form:

T dqo / abc = c o s ω t + θ a b - s i n ω t + θ a b 1 c o s ω t - 2 π 3 + θ a b - s i n ω t - 2 π 3 + θ a b 1 c o s ω t + 2 π 3 + θ a b - s i n ω t + 2 π 3 + θ a b 1

dq components of three phase quantities are transformed to phase components using the equation:

X abc = T dqo / abc ٠ X dqo

where X represents a vector of voltages, currents, or fluxes.

Figure 4. Transformation of a three phase frame into dq frame

List of Machine Library Components

The current version of Typhoon HIL Schematic Editor offers a selection of the following types of machine components:

References

Machine components were implemented based on the principles described in the following literature:

  • Paul C. Krause., Oleg Wasynczuk, and Scott D. Sudhoff, Analysis of Electric Machinery, IEEE Press, 2002.
  • Liwei Wang, Modeling of AC machines using a voltage-behind-reactance formulation of electromagnetic transients in power systems, The University of British Columbia, Vancouver, 2010.
  • Robert Vartanian, Permanent Magnet Assisted Synchronous Reluctance Machine (PMa-SynRM) Design and Performance Analysis for Fan and Pump Applications, Doctoral dissertation at Texas A & M University, 2014.
  • Xiao Chen, Jiabin Wang, Bhaskar Sen, Panagiotis Lazari, Tianfu Sun, A High-Fidelity and Computationally Efficient Model for Interior Permanent-Magnet Machines Considering the Magnetic Saturation, Spatial Harmonics, and Iron Loss Effect, IEEE, 2015.
  • I. M. Canay, Causes of Discrepancies on Calculation of Rotor Quantities and Exact Equivalent Diagrams of the Synchronous Machine, IEEE, 1969.
  • Alberto Berzoy, Ahmed A. S. Mohamed, Osama Mohammed, Complex-Vector Model of Interturn Failure in Induction Machines for Fault Detection and Identification, IEEE, 2016.
  • Liwei Wang, Juri Jatskevich, Steven D. Pekarek, Modeling of Induction Machines Using a Voltage-Behind-Reactance Formulation, IEEE, 2008.
  • Emil Levi, Radu Bojoi, F. Profumo, Hamid Toliyat, Multiphase induction motor drives - A technology status review, IET Electric Power Applications, 2007.