Park transform
Rotates a stationary-frame (α, β) pair into a frame turning at the input angle: with the electrical rotor angle it gives d and q. Feed −θ to rotate back.
- signal
- Modelica Standard Library
- 5 ports
parkLibraryControlDescription
Rotates a stationary-frame (α, β) pair into a frame turning at the input angle (the Modelica library rotator). With the electrical rotor angle θe, d is the flux-aligned component and q the one 90° ahead of it: for motor currents, flux-producing and torque-producing.
Uses the d-axis-aligned convention: at theta = 0, the d axis coincides with α. The same block rotates back: feed it −θe to turn d, q voltage commands into α, β.
Example
Clarke and Park transforms Balanced three-phase signals become a rotating α, β pair, then constant d and q, and go back out through a controlled three-phase source.
Also in this example:ConstantSine waveClockGainClarke transformInverse Clarke transformGroundControlled 3-phase voltage3-phase resistorStar point3-phase current sensor
Ports
Inputs 3
-
α
alphaα axis, typically from Clarke transform.
-
β
betaβ axis.
-
θe
thetaElectrical rotor angle θe, in radians (mechanical angle times pole pairs).
Outputs 2
-
d
idd axis.
-
q
iqq axis.
Equations
id = alpha · cos(theta) + beta · sin(theta) iq = −alpha · sin(theta) + beta · cos(theta)
Implementation
Modelica.Electrical.Machines.SpacePhasors.Blocks.RotatorAssumptions and limitations
- Uses theta as given: no angle estimation, filtering, or sensor delay.
Tips
- Feed theta from an Angle sensor on the rotor through a Gain of the pole pairs. A mechanical angle gives wrong d/q values unless the machine has one pole pair.
- For the inverse rotation, negate theta with Unary minus.
Used in
These larger examples use it too. Open them from Examples in the app.
- PMSM · Field-oriented control
See also
Select a block in Gradara and press F1 to open its page offline.