modelDCPM_Drive

Test example: drive with 2 permanent magnet DC machines

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

Information

This example demonstrates how to use a coupling to implement a drive consisting if two permanent magnet DC machines. Note that dcpm1 is turning in the positive direction, whereas dcpm2 is turning in the opposite direction. This is evident by comparing speedSensor1.w and speedSensor2.w. Therefore, the armature of dcpm2 is connected reversed to the source.

Machine dcpm1 starts the drive with a voltage ramp up to half of no-load speed, the armature of dcpm2 is not connected. Since the induced voltage of dcpm2 is the same as that of dcdcInverter2, the switch is closed without any transient. After that, the armature voltage of dcpm2 is slightly increased, causing dcpm2 to drive as motor and dcpm1 to brake as generator. Therefore, the speed coupling.w increases.

Note that in stationary operation the battery only delivers the losses of both machines, since power is exchanged directly between both machines. Only during short time spans with transient operation power is delivered back to the battery, which is the case after accelerating the whole drive when angular velocity settles. An additional energy storage between the battery and the inverters (like a large capacitor or a super capacitor) would help to avoid such situations and to smooth possible current spikes.

Parameters

TypeNameDefaultDescription
Utilities.ParameterRecords.DcPermanentMagnetDatadcpmDataDC machine data

Components

TypeNameDefaultDescription
Machines.BasicMachines.DCMachines.DC_PermanentMagnetdcpm1
BasicMachines.DCMachines.DC_PermanentMagnetdcpm2
Utilities.Couplingcoupling
ControlledDCDrives.Utilities.DcdcInverterdcdcInverter1
ControlledDCDrives.Utilities.DcdcInverterdcdcInverter2
Modelica.Blocks.Sources.Rampramp1
Blocks.Sources.Rampramp2
Analog.Ideal.IdealClosingSwitchswitch
Blocks.Sources.BooleanStepbooleanStep
Analog.Sensors.MultiSensormultiSensor
Analog.Sources.ConstantVoltageconstantVoltage
Analog.Basic.Resistorresistor
Analog.Basic.Groundground
Mechanics.Rotational.Sensors.SpeedSensorspeedSensor1
Mechanics.Rotational.Sensors.SpeedSensorspeedSensor2