Create look up table from TM project of Flux dq, Ld, Lq and torque versus Id, Iq and rotor position.

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


  • n Current sources
  • Select mobile mechanical set
  • Select fixed mechanical set
  • Max RMS value for Id
  • Number of values for Id (odd)
  • Number of poles
  • Number of pole pairs represented in geometry (0.5 for one pole)
  • Number of stator periodicities
  • Choose with or without rotor position dependency (no iron losses in fast)
  • Choose if you want to enhance computation time (inaccurate iron losses in this workflow)
  • Number of steps in 1/n_phases of the electric period (if Yes at 9)
  • Period for rotation (in degrees)
  • Motor Viscous Damping and Moment of Inertia (For System computation in Activate/PSIM, can be set to 0 if unused)


  • Create a result OML file with name created from the initial file (*_res.oml)
  • It will also include more data such as phase resistance, end winding inductance, electric period and initial rotor position plus possibility to display values in Compose
  • If compose environment variable has been set, a .mat file including all the look up table data will be generated automatically.