modelSMPM_MTPA

Test example: PermanentMagnetSynchronousMachine, investigating maximum torque per Amps

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

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:

  • phi_v = angle of voltage phasor
  • phi_i = angle of current phasor
  • phiphi_v - phi_i = angle between voltage and current phasor
  • theta = rotor displacement angle
  • epsilon = phi - theta = current angle

Simulate for 1 second and plot (versus angle epsilon):

  • smpmQS.tauElectrical: machine torque
  • smpmQS.abs_vs[1]: machine phase voltage magnitude
  • phi: phase angle between voltage and current phasor
Note

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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
SI.VoltageVNominal100Nominal RMS voltage per phase
SI.FrequencyfNominal50Nominal frequency
SI.Frequencyf50Actual frequency
SI.TimetRamp1Frequency ramp
SI.TorqueTLoad181.4Nominal load torque
SI.TimetStep1.2Time of load torque step
SI.InertiaJLoad0.29Load's moment of inertia
SI.AngularVelocitywNominal2*pi*fNominal/smpmData.pNominal angular velocity
BooleanpositiveRangefalseUse positive range of angles, if true
Modelica.Electrical.Machines.Utilities.ParameterRecords.SM_PermanentMagnetDatasmpmDataSynchronous machine data

Components

TypeNameDefaultDescription
SI.AnglethetarotorAngleQS.rotorDisplacementAngleRotor displacement angle, quasi-static
SI.Anglephi_iModelica.Math.wrapAngle(smpmQS.arg_is[1], positiveRange)Angle of current
SI.Anglephi_vModelica.Math.wrapAngle(smpmQS.arg_vs[1], positiveRange)Angle of voltage
SI.AnglephiModelica.Math.wrapAngle(phi_v - phi_i, positiveRange)Angle between voltage and current
SI.AngleepsilonModelica.Math.wrapAngle(phi - theta, positiveRange)Current angle
Magnetic.QuasiStatic.FundamentalWave.BasicMachines.SynchronousMachines.SM_PermanentMagnetsmpmQS
Modelica.Mechanics.Rotational.Sources.ConstantSpeedquadraticSpeedDependentTorqueQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarMachineQS
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundgroundMQS
Magnetic.QuasiStatic.FundamentalWave.Utilities.MultiTerminalBoxterminalBoxQS
Magnetic.QuasiStatic.FundamentalWave.Utilities.CurrentControllercurrentControllerQS
Modelica.Mechanics.Rotational.Sensors.AngleSensorangleSensorQS
Modelica.Electrical.QuasiStatic.Polyphase.Sources.ReferenceCurrentSourcereferenceCurrentSourceQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarQS
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundgroundeQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.ResistorresistorQS
Magnetic.QuasiStatic.FundamentalWave.Sensors.RotorDisplacementAnglerotorAngleQS
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.CurrentQuasiRMSSensorcurrentRMSSensorQS
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.VoltageQuasiRMSSensorvoltageQuasiRMSSensorQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarMQS
Modelica.ComplexBlocks.Sources.ComplexRotatingPhasorrotSource
Modelica.ComplexBlocks.ComplexMath.ComplexToRealtoReal