#### Description

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
with 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

##### Note

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

#### Plot the following variable(s)

`smr.abs_vs[1]`

against `epsilon`

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

against `epsilon`

:
electromagnetic torque against current angle
`phi`

against `epsilon`

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

against `epsilon`

: rotor
displacement angle against current angle

Generated at 2020-04-08T01:39:33Z by OpenModelicaOpenModelica
1.16.0~dev-268-gc5be668 using GenerateDoc.mos