modelSMPM_MTPA1

Permanent magnet synchronous machine fed by current source, parameter record SMPM1

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

Information

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

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)

  • 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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
Modelica.Units.SI.VoltageVNominal100Nominal RMS voltage per phase
Modelica.Units.SI.FrequencyfNominal50Nominal frequency
Modelica.Units.SI.Frequencyf50Actual frequency
Modelica.Units.SI.TimetRamp1Frequency ramp
Modelica.Units.SI.TorqueTLoad181.4Nominal load torque
Modelica.Units.SI.TimetStep1.2Time of load torque step
Modelica.Units.SI.InertiaJLoad0.29Load's moment of inertia
Modelica.Units.SI.AngularVelocitywNominal2*pi*fNominal/smpmData1.pNominal angular velocity
BooleanpositiveRangefalseUse positive range of angles, if true
HanserModelica.SynchronousMachines.ParameterRecords.SMPM1smpmData1Data of synchronous machine SMPM_MTPA1
ParameterRecords.SMPM2smpmData2Data of synchronous machine SMPM_MTPA2

Components

TypeNameDefaultDescription
Modelica.Units.SI.AnglethetarotorDisplacementAngle.rotorDisplacementAngleRotor displacement angle, quasi stastic
Modelica.Units.SI.AnglephiiModelica.Math.wrapAngle(smpm.arg_is[1], positiveRange)Angle of current
Modelica.Units.SI.AnglephivModelica.Math.wrapAngle(smpm.arg_vs[1], positiveRange)Angle of voltage
Modelica.Units.SI.AnglephisModelica.Math.wrapAngle(phiv - phii, positiveRange)Angle between voltage and current
Modelica.Units.SI.AngleepsilonModelica.Math.wrapAngle(phis - theta, positiveRange)Current angle
Modelica.Magnetic.QuasiStatic.FundamentalWave.BasicMachines.SynchronousMachines.SM_PermanentMagnetsmpm
Modelica.Mechanics.Rotational.Sources.ConstantSpeedconstantSpeed
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarMachine
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundgroundM
Modelica.Magnetic.QuasiStatic.FundamentalWave.Utilities.MultiTerminalBoxterminalBox
Modelica.Magnetic.QuasiStatic.FundamentalWave.Utilities.CurrentControllercurrentController
Modelica.Mechanics.Rotational.Sensors.AngleSensorangleSensor
Modelica.Electrical.QuasiStatic.Polyphase.Sources.ReferenceCurrentSourcereferenceCurrentSource
Modelica.Electrical.QuasiStatic.Polyphase.Basic.Starstar
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.Groundgrounde
Modelica.Electrical.QuasiStatic.Polyphase.Basic.Resistorresistor
Modelica.Magnetic.QuasiStatic.FundamentalWave.Sensors.RotorDisplacementAnglerotorDisplacementAngle
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.CurrentQuasiRMSSensorcurrentRMSSensor
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.VoltageQuasiRMSSensorvoltageRMSSensor
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarM
Modelica.ComplexBlocks.Sources.ComplexRotatingPhasorrotSource
Modelica.ComplexBlocks.ComplexMath.ComplexToRealtoReal