modelSMPM_CurrentSource

Test example: PermanentMagnetSynchronousMachine fed by current source

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

Information

This example compares a time transient and a quasi-static model of a permanent magnet synchronous machine. The machines are fed by a current source. The current components are oriented at the magnetic field orientation and transformed to the stator fixed reference frame. This way the machines are operated at constant torque. The machines start to accelerate from standstill.

Simulate for 2 seconds and plot (versus time):

  • smpm|smpmQS.wMechanical: machine speed
  • smpm|smpmQS.tauElectrical: machine torque
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.FrequencyfNominalsmpmData.fsNominalNominal 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
Modelica.Electrical.Machines.Utilities.ParameterRecords.SM_PermanentMagnetDatasmpmDataSynchronous machine data

Components

TypeNameDefaultDescription
SI.AnglethetaQSrotorAngleQS.rotorDisplacementAngleRotor displacement angle, quasi-static
SI.AnglethetarotorAngle.rotorDisplacementAngleRotor displacement angle, transient
Magnetic.FundamentalWave.BasicMachines.SynchronousMachines.SM_PermanentMagnetsmpm
Modelica.Electrical.Polyphase.Sources.SignalCurrentsignalCurrent
Modelica.Electrical.Polyphase.Basic.Starstar
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Machines.Utilities.DQToThreePhasedqToThreePhase
Modelica.Blocks.Sources.Constantiq
Modelica.Blocks.Sources.Constantid
Modelica.Electrical.Polyphase.Sensors.VoltageQuasiRMSSensorvoltageQuasiRMSSensor
Modelica.Electrical.Polyphase.Basic.StarstarM
Modelica.Electrical.Analog.Basic.GroundgroundM
Modelica.Electrical.Machines.Utilities.MultiTerminalBoxterminalBox
Modelica.Electrical.Machines.Sensors.RotorDisplacementAnglerotorAngle
Modelica.Mechanics.Rotational.Sensors.AngleSensorangleSensor
Modelica.Mechanics.Rotational.Components.InertiainertiaLoad
Modelica.Mechanics.Rotational.Sources.QuadraticSpeedDependentTorquequadraticSpeedDependentTorque
Modelica.Electrical.Polyphase.Sensors.CurrentQuasiRMSSensorcurrentRMSsensor
Magnetic.QuasiStatic.FundamentalWave.BasicMachines.SynchronousMachines.SM_PermanentMagnetsmpmQS
Modelica.Mechanics.Rotational.Components.InertiainertiaLoadQS
Modelica.Mechanics.Rotational.Sources.QuadraticSpeedDependentTorquequadraticSpeedDependentTorqueQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarMachineQS
Modelica.Electrical.QuasiStatic.SinglePhase.Basic.GroundgroundMQS
Magnetic.QuasiStatic.FundamentalWave.Utilities.MultiTerminalBoxterminalBoxQS
Magnetic.QuasiStatic.FundamentalWave.Utilities.CurrentControllerdqToThreePhaseQS
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
Sensors.RotorDisplacementAnglerotorAngleQS
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.CurrentQuasiRMSSensorcurrentRMSSensorQS
Modelica.Electrical.QuasiStatic.Polyphase.Sensors.VoltageQuasiRMSSensorvoltageQuasiRMSSensorQS
Modelica.Electrical.QuasiStatic.Polyphase.Basic.StarstarMQS
Modelica.Electrical.Polyphase.Basic.StarstarMachine