WOLFRAM SYSTEM MODELER

DCPM_CurrentControlled

Test example: DC with permanent magnet starting with current controller

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (11)

TLoad

Value: ViNominal * dcpmData.IaNominal / dcpmData.wNominal

Type: Torque (N⋅m)

Description: Nominal load torque

wLoad

Value: dcpmData.wNominal

Type: AngularVelocity (rad/s)

Description: Nominal load torque

JLoad

Value: dcpmData.Jr

Type: Inertia (kg⋅m²)

Description: Load's moment of inertia

Ra

Value: Modelica.Electrical.Machines.Thermal.convertResistance(dcpmData.Ra, dcpmData.TaRef, dcpmData.alpha20a, dcpmData.TaNominal)

Type: Resistance (Ω)

Description: Warm armature resistance

ViNominal

Value: dcpmData.VaNominal - Ra * dcpmData.IaNominal

Type: Voltage (V)

Description: Nominal induced voltage

Ta

Value: dcpmData.La / Ra

Type: Time (s)

Description: Armature time constant

Ts

Value: 1e-3

Type: Time (s)

Description: Dead time of inverter

k

Value: Ra * Ta / (2 * Ts)

Type: Resistance (Ω)

Description: Current controller proportional gain

Ti

Value: Ta

Type: Time (s)

Description: Current controller integral time constant

kPhi

Value: ViNominal / dcpmData.wNominal

Type: MagneticFlux (Wb)

Description: Voltage constant

dcpmData

Value:

Type: DcPermanentMagnetData

Description: DC machine data

Components (11)

dcpm

Type: DC_PermanentMagnet

Description: Permanent magnet DC machine

step

Type: Step

Description: Generate step signal of type Real

signalVoltage

Type: SignalVoltage

Description: Generic voltage source using the input signal as source voltage

ground

Type: Ground

Description: Ground node

loadInertia

Type: Inertia

Description: 1D-rotational component with inertia

loadTorque

Type: QuadraticSpeedDependentTorque

Description: Quadratic dependency of torque versus speed

dcpmData

Type: DcPermanentMagnetData

Description: DC machine data

currentSensor

Type: CurrentSensor

Description: Sensor to measure the current in a branch

speedSensor

Type: SpeedSensor

Description: Ideal sensor to measure the absolute flange angular velocity

firstOrder

Type: FirstOrder

Description: First order transfer function block (= 1 pole)

PID

Type: LimPID

Description: P, PI, PD, and PID controller with limited output, anti-windup compensation, setpoint weighting and optional feed-forward