Instead of writing a scenario, this macro will directly mesh and solve the project to generate the starting of an axial machine.

Note: For more details about this macro, consult this additional document
Note: This macro must be only used AFTER loading INIT_AFIR; it is loaded automatically after loading INIT_AFIR. So, don’t load it directly with a blank project.


  • DEFAULT_MODE: activate or not the default mode
  • PROJECT_NAME: the project in which the simulation will be saved
  • COGGING_TORQUE: establishing or not a meshing that allows more accurate results
  • MASSE_DENSITY_MATERIAL_ROTOR: mass density of the rotor
  • MASSE_DENSITY_MATERIAL_MAGNETS: mass density of the magnets
  • VISCOUS_COEFFICIENT: Indicate the capacity of the mechanic system to generate friction
  • MAX_CURRENT: maximum value of the three-phase system
  • STEP: value at which the rotor position is incremented
  • MAXVALUE: the simulation stops at this position of the rotor
  • MINVALUE: the simulation begins at this position of the rotor
  • GAMMA: control angle
  • NBT: number turn of the coil
  • R: resistivity of the material of the winding
  • MD: mass density of the material of the winding


  • Electrical and mechanical curves of the transitory state at the motor starting