Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Utilities for controlled drives

Information

This package contains utilities for controlled drives

Extends from Modelica.Icons.UtilitiesPackage (Icon for utility packages).

Package Content

Name Description
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.PartialControlledDCPM PartialControlledDCPM Partial controlled DC PM drive with H-bridge from battery
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DriveDataDCPM DriveDataDCPM Parameters of a controlled DC permanent magnet drive
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.LimitedPI LimitedPI Limited PI-controller with anti-windup and feed-forward
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.Battery Battery Simple battery model
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DcdcInverter DcdcInverter DC-DC inverter
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.IdealDcDc IdealDcDc Ideal DC-DC inverter
Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.SwitchingDcDc SwitchingDcDc Switching DC-DC inverter

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.PartialControlledDCPM Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.PartialControlledDCPM

Partial controlled DC PM drive with H-bridge from battery

Information

This is a partial model of a controlled DC PM drive.

Electrical power is taken from a battery (constant voltage with inner resistance) and fed to the motor via a DC-DC inverter. The level of detail of the DC-DC inverter may be chosen from ideal averaging or switching. The DC-DC inverter is commanded by the current controller. The current controller is parameterized according to the absolute optimum.

Further reading: Tutorial at the Modelica Conference 2017

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

Parameters

NameDescription
driveData 

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DriveDataDCPM Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DriveDataDCPM

Parameters of a controlled DC permanent magnet drive

Information

Calculates controller parameters of a DC permanent magnet drive: Current controller according to absolute optimum, speed controller according to symmetric optimum.

Extends from Modelica.Icons.Record (Icon for records).

Parameters

NameDescription
Motor
motorDataMotor data
RaArmature resistance at nominal temperature [Ohm]
TaArmature time constant [s]
PNominalNominal mechanical output [W]
tauNominalNominal torque [N.m]
kPhiTorque constant [N.m/A]
w0No-load speed [rad/s]
Load
JLLoad inertia [kg.m2]
Inverter
Armature inverter
fSSwitching frequency [Hz]
VBatDC no-load voltage [V]
TdDead time of inverter [s]
TmfMeasurement filter time constant [s]
TsigmaSum of small time constants [s]
Controller
Limits
VaMaxMaximum Voltage [V]
IaMaxMaximum current [A]
tauMaxMaximum torque [N.m]
wMaxMaximum speed [rad/s]
aMaxMaximum acceleration [rad/s2]
Current controller
kpIProportional gain
TiIIntegral time constant [s]
TsubSubstitute time constant [s]
Speed controller
kpwProportional gain
TiwIntegral time constant [s]
TfwFilter time constant [s]
Position controller
kpPProportional gain

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.LimitedPI Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.LimitedPI

Limited PI-controller with anti-windup and feed-forward

Information

Proportional - Integral - controller with optional feed-forward and limitation at the output.

The integral part can be switched off to obtain a limited P-controller.

The feed-forward gain can either be constant or given by the optional input kFF.

When the output is limited, the controller cannot bring the control error to zero and the integrator will not stop integrating. To avoid this WindUp - effect, an Anti-WindUp loop is implemented: The difference between unlimited and limited output is fed back to the integrator's input.

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Parameters

NameDescription
kGain [1]
useIPI else P
TiIntegral time constant (T>0 required) [s]
Feed-forward
useFFUse feed-forward?
useConstantKFFUse constant feed-forward factor?
KFFFeed-forward gain [1]
Limitation
constantLimitsUse constant limits?
symmetricLimitsUse symmetric limits?
yMaxUpper limit of output
yMinLower limit of output
Initialization
initTypeType of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output)
x_startInitial or guess value of state
y_startInitial value of output

Connectors

NameDescription
uConnector of Real input signal
yConnector of Real output signal
u_mConnector of measured signal
feedForwardConnector of feed-forward signal
kFFConnector of feed-forward factor
yMaxVarConnector of yMax input signal
yMinVarConnector of yMin input signal

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.Battery Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.Battery

Simple battery model

Information

This is a simple model of a DC-source resp. battery, consisting of a constant DC-voltage and an inner resistance.

Parameters

NameDescription
V0No-load voltage [V]
INominalNominal current [A]
RiInner resistance [Ohm]

Connectors

NameDescription
pin_p 
pin_n 

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DcdcInverter Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.DcdcInverter

DC-DC inverter

Information

This is a model of a DC-DC inverter. The level of detail of the DC-DC inverter may be chosen from ideal averaging or switching.

Reference voltage is limited to actual battery voltage.

Battery voltage and motor current are measured.

Parameters

NameDescription
useIdealInverterUse ideal averaging inverter, otherwise switching inverter
fSSwitching frequency [Hz]
TdDead time [s]
TmfMeasurement filter time constant [s]
VMaxMaximum Voltage [V]
Averaging
TiTime constant of integral power controller [s]
Switching
RonTTransistor closed resistance [Ohm]
GoffTTransistor opened conductance [S]
VkneeTTransistor threshold voltage [V]
RonDDiode closed resistance [Ohm]
GoffDDiode opened conductance [S]
VkneeDDiode threshold voltage [V]

Connectors

NameDescription
pin_pBat 
pin_nBat 
pin_pMot 
pin_nMot 
vRef 
vDC 
iDC 
vMot 
iMot 

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.IdealDcDc Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.IdealDcDc

Ideal DC-DC inverter

Information

This is a model of an ideal DC-DC inverter based on a power balance achieved by an integral controller.

Parameters

NameDescription
TdDead time [s]
TiTime constant of integral power controller [s]

Connectors

NameDescription
pin_nBat 
pin_pBat 
pin_nMot 
pin_pMot 
vRef 

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.SwitchingDcDc Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.SwitchingDcDc

Switching DC-DC inverter

Information

This is a model of a switching DC-DC inverter based on a H-bridge.

Parameters

NameDescription
fSSwitching frequency [Hz]
VMaxMaximum Voltage [V]
RonTTransistor closed resistance [Ohm]
GoffTTransistor opened conductance [S]
VkneeTTransistor threshold voltage [V]
RonDDiode closed resistance [Ohm]
GoffDDiode opened conductance [S]
VkneeDDiode threshold voltage [V]

Connectors

NameDescription
pin_nBat 
pin_pBat 
pin_pMot 
pin_nMot 
vRef 
vMax 
Automatically generated Thu Dec 19 17:19:55 2019.