Package Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines
Synchronous machine examples

Information

This icon indicates a package that contains executable examples.

Extends from Modelica.​Icons.​ExamplesPackage (Icon for packages containing runnable examples).

Package Contents

NameDescription
SMEE_GeneratorElectrical excited synchronous machine operating as generator
SMPM_CurrentSourceTest example: PermanentMagnetSynchronousMachine fed by current source
SMPM_MainsPermanent magnet synchronous machine operated at mains with step torque load
SMPM_MTPATest example: PermanentMagnetSynchronousMachine, investigating maximum torque per Amps
SMPM_OpenCircuitTest example: PermanentMagnetSynchronousMachine with inverter
SMR_CurrentSourceTest example: Synchronous reluctance machine fed by current source

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMPM_OpenCircuit
Test example: PermanentMagnetSynchronousMachine with inverter

Information

This example compares a time transient and a quasi static model of a permanent magnet synchronous machine. The machines are operated at constant mechanical angular velocity.

Simulate for 0.1 second and plot (versus time):

Note

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

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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
SM_PermanentMagnetDatasmpmData Machine data

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMPM_Mains
Permanent magnet synchronous machine operated at mains with step torque load

Information

This example compares a time transient and a quasi static model of a permanent magnet synchronous machine. The machines start with zero load and synchronous speed. At time tStep the machines are loaded with nominal torque.

Simulate for 1 second and plot (versus time):

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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
Frequencyf50Supply frequency
VoltageV112.3Supply voltage
TorqueT_Load181.4Nominal load torque
TimetStep0.5Time of load torque step
InertiaJ_Load0.29Load inertia
SM_PermanentMagnetDatasmpmData Machine data

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMPM_CurrentSource
Test example: PermanentMagnetSynchronousMachine fed by current source

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

Note

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

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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
VoltageVNominal100Nominal RMS voltage per phase
FrequencyfNominalsmpmData.​fsNominalNominal frequency
Frequencyf50Actual frequency
TimetRamp1Frequency ramp
TorqueTLoad181.4Nominal load torque
TimetStep1.2Time of load torque step
InertiaJLoad0.29Load's moment of inertia
SM_PermanentMagnetDatasmpmData Machine data

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMPM_MTPA
Test example: PermanentMagnetSynchronousMachine, investigating maximum torque per Amps

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:

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

Note

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

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

Parameters

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

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMEE_Generator
Electrical excited synchronous machine operating as generator

Information

This example compares a time transient and a quasi static model of a electrically excited synchronous machine. The electrically excited synchronous generators are connected to the grid and driven with constant speed. Since speed is slightly smaller than synchronous speed corresponding to mains frequency, rotor angle is very slowly increased. This allows to see several characteristics dependent on rotor angle.

Simulate for 30 seconds and plot versus rotorAngle|rotorAngleQS.rotorDisplacementAngle:

Since the rotor slip is very low the transient and quasi static electro magnetic torque are practically equal.

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

Parameters

TypeNameDefaultDescription
Integerm3Number of stator phases
VoltageVsNominal100Nominal RMS voltage per phase
FrequencyfsNominalsmeeData.​fsNominalNominal frequency
AngularVelocitywModelica.SIunits.Conversions.from_rpm(1499)Nominal speed
CurrentIe19Excitation current
CurrentIe010Initial excitation current
Anglegamma00Initial rotor displacement angle
SynchronousMachineDatasmeeData Machine data

Model Modelica.​Magnetic.​QuasiStatic.​FundamentalWave.​Examples.​BasicMachines.​SynchronousMachines.​SMR_CurrentSource
Test example: Synchronous reluctance machine fed by current source

Information

This example compares a time transient and a quasi static model of a synchronous reluctance 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):

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

Parameters

TypeNameDefaultDescription
Integerm3Number of phases
VoltageVNominal100Nominal RMS voltage per phase
FrequencyfNominalsmrData.​fsNominalNominal frequency
Frequencyf50Actual frequency
TimetRamp1Frequency ramp
TorqueTLoad181.4Nominal load torque
TimetStep1.2Time of load torque step
InertiaJLoad0.29Load's moment of inertia
SM_ReluctanceRotorDatasmrData