Documentation Home Page OPAL-RT Schematic Editor Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This block implements a doubly-fed induction machine (DFIM)

The DFIM block implements a three-phase induction machine (asynchronous machine) with an accessible wound rotor model with resolvers and encoders. The machine can operate in both motoring mode, when the mechanical torque is positive, and generating mode when the mechanical torque is negative.

Model Formulation

Q-d Transformation

The 3-phase to q-d transformation and the inverse used for the model are:

The induction machine model uses the rotor as a reference, thus the angle of theta_r.

Induction Machine Electrical Model

Induction machine models in state-space framework are based on magnetic fluxes. The state variables and winding currents (as the outputs) can be represented as follows:

where the coefficient matrices are as follows:

and

The Induction Machine is modeled in rotor reference frame so ω=ωr.

In the model, all the rotor parameters and variables are seen from the stator distinguished by a prime sign. The stator to rotor turn ratio (Nsr) is applied as follows to transfer input three-phase rotor voltage to the stator side, and transfer back the output three-phase rotor current measurements to the rotor side:  

The electrical torque is calculated as follows:

Mechanical Model

The equation of the mechanical model in torque mode is expressed as follows:


where ωm is the rotor speed, Te is the electromagnetic torque, Tm is the torque command, Fv is the viscous friction coefficient, J is the inertia and Ts the time step. There is a dead-zone implementation with the static friction torque, if the electromagnetic doesn't exceed the static friction torque, the speed remains zero.

In speed mode, the rotor speed is directly set to the speed command ωrc.

Resolver Encoder Model

The equations of the resolver encoder can be expressed as follows:


where θres is the resolver angle, θmec is the mechanical angle of the machine, θoffset is the angle offset, Rpp is the Number of pole pairs of the resolver and Rk are the resolver sine cosine gains.

Parameters and Measurements

The DFIM's parameters and measurements are separated in 4 different tabs, Electrical, Mechanical, Resolver and Encoder.

Electrical Parameters and Measurements

SymbolNameDescriptionUnitType
RsStator resistanceStator winding resistance of phase a, b, and cΩEdit-input
LlsStator leakage inductanceStator winding leakage inductance of phase a, b, and cHEdit-input
Rr'Rotor resistanceEquivalent rotor winding resistance referred to the stator of phase a, b, and cΩEdit-input
Llr'Rotor leakage inductance Equivalent rotor winding leakage inductance referred to the stator of phase a, b, and cHEdit-input
LmMutual inductanceStator-rotor mutual (magnetizing) inductance of phase a, b, and cHEdit-input
ppNumber of pole pairsNumber of pole pairsN/AEdit-input
isStator phase currentsStator currents measured at phases a, b and cAMeasurement
isdqStator dq currentsStator currents in dq frameAMeasurement
ΦsdqStator dq fluxesStator fluxes in dq frameWbMeasurement
VsdqStator dq voltagesStator voltages in dq frameVMeasurement
ir'Rotor phase currentsRotor equivalent phase a, b, and c currents, referred to the statorAMeasurement
irdqRotor dq currentsRotor currents in dq frame, referred to the statorAMeasurement
Φrdq'Rotor dq fluxesRotor fluxes in dq frame, referred to the statorWbMeasurement

Vrdq

Rotor dq voltagesRotor voltages in dq frame, referred to the statorVMeasurement
RsnSnubber resistanceResistances of the snubber on phase A, B and CΩInput
CsnSnubber capacitanceCapacitance of the snubber on phase A, B and CFInput

Mechanical Parameters and Measurements

SymbolNameDescriptionUnitType
JRotor inertiaMoment of inertia of the rotorkg*m2Input
FvViscous friction coefficientViscous frictionN*m*s/radInput
FsStatic friction torqueStatic frictionN*mInput
ctrlMechanical control modeControl mode of the mechanical model. Has two possible values: speed or torque. In speed mode, the mechanical model is bypassed and the speed command is sent directly. In torque mode, the torque command is used to measure the speed using the mechanical parameters of the machine.
Input
TTorque commandTorque command sent to the mechanical modelN*mInput
ωrcRotor speed commandSpeed command sent to the mechanical modelrpmInput
ωrRotor speedSpeed of the rotorrpmMeasurement
TeElectromagnetic torqueTorque measured at the rotorN*mMeasurement
θ0Initial rotor angleRotor position at time t = 0°Input
θRotor angleRotor position from 0 to 360 degrees°Measurement

Resolver Parameters and Measurements

SymbolNameDescriptionUnitType
RenEnable resolverWhether or not to enable the resolverN/AInput
RscResolver feedback signalsThe two two-phase windings producing a sine and cosine feedback current proportional to the sine and cosine of the angle of the motorN/AMeasurement
RppNumber of resolver pole pairsNumber of pole pairs of the resolverN/AInput
RdirDirection of the sensor rotationDirection in which the sensor is turning, either clockwise or counterclockwiseN/AInput
RθAngle offset Δθ ( Sensor-  Rotor )Angle offset between the resolver and the rotor position from 0 to 360 degrees°Input
RkResolver sine cosine gainsThe sine/cosine modulation output sine/cosine component amplitude. Default value are 1, 0, 0 and 1N/AInput
EtypeExcitation source typeThe source from which the excitation of the resolver is generated. Can either be AC, which is generated inside the FPGA with the specified frequency, DC, which is generated with a 90° from the rotor and External, which is generated from outside the modelN/AInput
EfExcitation frequencyFrequency of the excitation when in AC modeHzInput
EsrcExcitation sourceSource of the external excitation source when in External modeN/AInput
EtsExcitation time shiftThis parameter is used to compensate the time offset between the carrier generation's input in the system and modulated signals' outputsInput

OPAL-RT's resolver models are based off of the following sets of equations:

(1)
(2)

Where Sin.Sin, Sin.Cos, Cos.Sin, and Cos.Cos represent gains that are applied to simulate a non-ideal resolver.  To simulate an ideal resolver, set the Sin.Sin and Cos.Cos gains to 1, set the Sin.Cos and Cos.Sin gains to 0, set the pp to 1, and set the θOffset to 0.  This results in the following equations:

(3)
(4)

Encoder Parameters and Measurements

SymbolNameDescriptionUnitType
EncenEnable encoderWhether or not to enable the encoderN/AInput
QABZA B Z encoder signalsA B and Z signals of the encoderN/AMeasurement
QpprNumber of pulses per revolutionNumber of pulses in one full revolution of the encoderN/AInput

Qdir

Direction of the sensor rotationDirection in which the sensor is turning, either clockwise or counterclockwiseN/AInput
θoffsetAngle offset Δθ ( Sensor - Rotor )Angle offset between the encoder and the rotor position from 0 to 360 degrees°Input

Visualization of Resolver Encoder Parameters effects

Number of resolver pole pairs affects the number of electrical turns per mechanical turns. On the left figure, the number of resolver pole pairs is 2, on the right figure, the number of resolver pole pairs is 4.

Resolver sine cosine gains affect the sine ( first axe ) and cosine ( second axe ) modulation output. Default values set to 1, 0, 0, 1 make it so the sine modulation has a sine form and the cosine modulation has a cosine form. If set to 0, 1, 1, 0, the sine modulation would have a cosine and the cosine modulation would have a sine form.

Excitation frequency, in AC excitation source type, affects the frequency of the carrier signal. We can see the time step highlighted in red. ( Figure 3 is a zoomed in view of Figure 2 )

Number of pulses per revolution (Qppr) defines how many times signals A and B pulse between two Z pulses ( one full rotation ).

Direction of the sensor rotation describes if A leads B ( Clockwise ) or if B leads A ( Counterclockwise )

Electrical ports

  • This block has six electrical ports, the three terminals of the stator on the left side and three terminals of the rotor on the right side.


  • No labels