This example investigates the maximum torque per amps (MTPA) of a quasi static permanent magnet synchronous machine. The machines is operated at constant speed. The current magnitude is kept constant and the current angle is rotated from 0 to 360 degrees within the simulation period of one second.

In this simulation the angle is the following angles are calculated:

`phiv`

= angle of voltage phasor`phii`

= angle of current phasor`phis = phiv - phii`

= angle between voltage and current phasor`theta`

= rotor displacement angle`epsilon = phis - theta`

= current angle

The intention is to compare the results of the following simulation models in one plot:

- SMPM_MTPA1: machine data smpmData1
- SMPM_MTPA2: machine data smpmData2

The resistors connected to the terminals of the windings of the quasi static machine model are necessary to numerically stabilize the simulation.

`smpm.abs_vs[1]`

against`epsilon`

: RMS phase voltage against current angle`smpm.tauElectrical`

against`epsilon`

: electromagnetic torque against current angle`phis`

against`epsilon`

: phase angle between voltage and current phasor against current angle`theta`

against`epsilon`

: rotor displacement angle against current angle

Generated at 2020-07-10T01:54:44Z by OpenModelicaOpenModelica 1.16.0~dev-541-gfd2d61b using GenerateDoc.mos