modelDCPM_CurrentControlled

Test example: DC with permanent magnet starting with current controller

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

Information

Test example: Permanent magnet DC machine started with current controller
The current controller is parameterized according to absolute optimum. At time 0.1 s a reference current step with height = nominal armature current is applied, causing the DC machine to start, and accelerating inertias.
The machine is loaded by a quadratic speed dependent load torque.
Simulate for 2 seconds and plot (versus time):
  • dcpm.ia: armature current
  • dcpm.wMechanical: motor's speed
  • dcpm.tauElectrical: motor's torque
Default machine parameters of model DC_PermanentMagnet are used.

Parameters

TypeNameDefaultDescription
SI.TorqueTLoadViNominal*dcpmData.IaNominal/dcpmData.wNominalNominal load torque
SI.AngularVelocitywLoaddcpmData.wNominalNominal load torque
SI.InertiaJLoaddcpmData.JrLoad's moment of inertia
SI.ResistanceRaModelica.Electrical.Machines.Thermal.convertResistance(dcpmData.Ra, dcpmData.TaRef, dcpmData.alpha20a, dcpmData.TaNominal)Warm armature resistance
SI.VoltageViNominaldcpmData.VaNominal - Ra*dcpmData.IaNominalNominal induced voltage
SI.TimeTadcpmData.La/RaArmature time constant
SI.TimeTs1e-3Dead time of inverter
SI.ResistancekRa*Ta/(2*Ts)Current controller proportional gain
SI.TimeTiTaCurrent controller integral time constant
SI.MagneticFluxkPhiViNominal/dcpmData.wNominalVoltage constant
Utilities.ParameterRecords.DcPermanentMagnetDatadcpmDataDC machine data

Components

TypeNameDefaultDescription
Machines.BasicMachines.DCMachines.DC_PermanentMagnetdcpm
Blocks.Sources.Stepstep
Modelica.Electrical.Analog.Sources.SignalVoltagesignalVoltage
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Mechanics.Rotational.Components.InertialoadInertia
Mechanics.Rotational.Sources.QuadraticSpeedDependentTorqueloadTorque
Analog.Sensors.CurrentSensorcurrentSensor
Mechanics.Rotational.Sensors.SpeedSensorspeedSensor
Blocks.Continuous.FirstOrderfirstOrder
Blocks.Continuous.LimPIDPID