This macro is used to find the rotor angle for t=0s in order to align it with the magnetic induction generated in the airgap by the reference phase (e.g., phase A). It is applied to radial synchronous machines in skewed transient magnetic application.

Note: For more details about this macro, consult this additional document


  • Number of pole pairs of the machine
  • Number of pole pairs represented
  • Stator periodicity
  • Current sources corresponding to electrical phases (the first one becomes the reference phase)
  • The rotor mechanical set
  • The stator mechanical set


  • New variable (parameter defined by a formula) called POS_INI which contains the desired initial rotor angle for t=0s (in degree)