Modelica.Electrical.Machines.Utilities

Library with auxiliary models for testing

Information


This package contains utility components for testing examples.

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

Package Content

NameDescription
Modelica.Electrical.Machines.Utilities.ParameterRecords ParameterRecords Parameter records
Modelica.Electrical.Machines.Utilities.VfController VfController Voltage-Frequency-Controller
Modelica.Electrical.Machines.Utilities.CurrentController CurrentController Current controller
Modelica.Electrical.Machines.Utilities.VoltageController VoltageController Current controller
Modelica.Electrical.Machines.Utilities.ToDQ ToDQ  
Modelica.Electrical.Machines.Utilities.FromDQ FromDQ  
Modelica.Electrical.Machines.Utilities.SwitchYD SwitchYD Y-D-switch
Modelica.Electrical.Machines.Utilities.TerminalBox TerminalBox Terminal box Y/D-connection
Modelica.Electrical.Machines.Utilities.SwitchedRheostat SwitchedRheostat Rheostat which is shortened after a given time
Modelica.Electrical.Machines.Utilities.RampedRheostat RampedRheostat Rheostat with linearly decreasing resistance
Modelica.Electrical.Machines.Utilities.SynchronousMachineData SynchronousMachineData Computes machine parameter from usual datasheet
Modelica.Electrical.Machines.Utilities.TransformerData TransformerData Calculates Impedances from nominal values

Modelica.Electrical.Machines.Utilities.VfController Modelica.Electrical.Machines.Utilities.VfController

Voltage-Frequency-Controller

Information


Simple Voltage-Frequency-Controller.
Amplitude of voltage is linear dependent (VNominal/fNominal) on frequency (input signal "u"), but limited by VNominal (nominal RMS voltage per phase).
m sine-waves with amplitudes as described above are provided as output signal "y".
The sine-waves are intended to feed a m-phase SignalVoltage.
Phase shifts between sine-waves may be chosen by the user; default values are (k-1)/m*pi for k in 1:m.

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

Parameters

NameDescription
noutNumber of outputs
mNumber of phases
orientation[m]Orientation of phases [rad]
VNominalNominal RMS voltage per phase [V]
fNominalNominal frequency [Hz]
BasePhaseCommon phase shift [rad]

Connectors

NameDescription
uConnector of Real input signal
y[nout]Connector of Real output signals

Modelica.Electrical.Machines.Utilities.CurrentController Modelica.Electrical.Machines.Utilities.CurrentController

Current controller

Information


Simple Current-Controller.

The desired rms values of d- and q-component of the space phasor current in rotor fixed coordinate system are given by inputs "id_rms" and "iq_rms". Using the given rotor position (input "phi"), the correct three-phase currents (output "i[3]") are calculated. They can be used to feed a current source which in turn feeds an induction machine.

Extends from Modelica.Blocks.Interfaces.MO (Multiple Output continuous control block).

Parameters

NameDescription
pNumber of pole pairs
noutNumber of outputs

Connectors

NameDescription
y[nout]Connector of Real output signals
id_rms 
iq_rms 
phi 

Modelica.Electrical.Machines.Utilities.VoltageController Modelica.Electrical.Machines.Utilities.VoltageController

Current controller

Information


Simple Voltage-Controller

The desired rms values of d- and q-component of the space phasor current in rotor fixed coordinate system are given by inputs "id_rms" and "iq_rms". Using the given rotor position (input "phi"), the actual threephase currents are measured and transformed to the d-q coordinate system. Two PI-controller determine the necessary d- and q- voltages, which are transformed back to threephase (output "y[3]"). They can be used to feed a voltage source which in turn feeds a permanent magnet synchronous machine.

Note: No care is taken for current or voltage limiting, as well as for field weakening.

Extends from Modelica.Blocks.Interfaces.MO (Multiple Output continuous control block).

Parameters

NameDescription
pNumber of pole pairs
fsNominalNominal frequency [Hz]
VsOpenCircuitOpen circuit RMS voltage per phase @ fsNominal [V]
RsStator resistance per phase at TOperational [Ohm]
LdInductance in d-axis [H]
LqInductance in q-axis [H]
decouplingUse decoupling network
noutNumber of outputs

Connectors

NameDescription
y[nout]Connector of Real output signals
id_rms 
iq_rms 
phi 
iActual[3] 

Modelica.Electrical.Machines.Utilities.ToDQ Modelica.Electrical.Machines.Utilities.ToDQ

Information


Threepase values u[3] are transformed to the corresponding spacePhasor which is rotated to the rotor-fixed coordinate system, using the provided mechanical rotor angle phi. The ouput is the rsulting d- / q- components y[2].

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Parameters

NameDescription
pNumber of pole pairs

Connectors

NameDescription
y[2]Connector of Real output signals
phi 
u[3]Connector of Real input signals

Modelica.Electrical.Machines.Utilities.FromDQ Modelica.Electrical.Machines.Utilities.FromDQ

Information


The d- / q- components u[2] are rotated back to the stator-fixed coordinate system, using the provided mechanical rotor angle phi. The output is the result of the back-transformation to threephase values y[3].

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Parameters

NameDescription
pNumber of pole pairs

Connectors

NameDescription
y[3]Connector of Real output signals
phi 
u[2]Connector of Real input signals

Modelica.Electrical.Machines.Utilities.SwitchYD Modelica.Electrical.Machines.Utilities.SwitchYD

Y-D-switch

Information


Simple Star-Delta-switch.
If control is false, plug_sp and plug_sn are star connected and plug_sp connected to the supply plug.
If control is true, plug_sp and plug_sn are delta connected and they are connected to the supply plug.

Parameters

NameDescription
mNumber of phases

Connectors

NameDescription
plugSupplyTo grid
plug_spTo positive stator plug
plug_snTo negative stator plug
control[m] 

Modelica.Electrical.Machines.Utilities.TerminalBox Modelica.Electrical.Machines.Utilities.TerminalBox

Terminal box Y/D-connection

Information


TerminalBox: at the bottom connected to both machine plugs, connect at the top to the grid as usual,
choosing Y-connection (StarDelta=Y) or D-connection (StarDelta=D).

Parameters

NameDescription
mNumber of phases
terminalConnectionChoose Y=star/D=delta

Connectors

NameDescription
plug_spTo positive stator plug
plug_snTo negative stator plug
plugSupplyTo grid
starpoint 

Modelica.Electrical.Machines.Utilities.SwitchedRheostat Modelica.Electrical.Machines.Utilities.SwitchedRheostat

Rheostat which is shortened after a given time

Information


Switched rheostat, used for starting asynchronous induction motors with slipring rotor:

The external rotor resistance RStart is shortened at time tStart.

Parameters

NameDescription
mNumber of phases
RStartStarting resistance [Ohm]
tStartDuration of switching on the starting resistor [s]

Connectors

NameDescription
plug_pTo positive rotor plug
plug_nTo negative rotor plug

Modelica.Electrical.Machines.Utilities.RampedRheostat Modelica.Electrical.Machines.Utilities.RampedRheostat

Rheostat with linearly decreasing resistance

Information


Ramped rheostat, used for starting asynchronous induction motors with slipring rotor:

The external rotor resistance RStart is reduced to zero, starting at time tStart with a linear ramp tRamp.

Parameters

NameDescription
mNumber of phases
RStartStarting resistance [Ohm]
tStartTime instance of reducing the rheostat [s]
tRampDuration of ramp [s]

Connectors

NameDescription
plug_pTo positive rotor plug
plug_nTo negative rotor plug

Modelica.Electrical.Machines.Utilities.SynchronousMachineData Modelica.Electrical.Machines.Utilities.SynchronousMachineData

Computes machine parameter from usual datasheet

Information


The parameters of the synchronous machine model with electrical excitation (and damper) are calculated from parameters normally given in a technical description, according to the standard EN 60034-4:2008 Appendix C.

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

Parameters

NameDescription
SNominalNominal apparent power [VA]
VsNominalNominal stator voltage per phase [V]
fsNominalNominal stator frequency [Hz]
IeOpenCircuitOpen circuit excitation current @ nominal voltage and frequency [A]
x0Stator stray inductance per phase (approximately zero impedance) [pu]
xdSynchronous reactance per phase, d-axis [pu]
xqSynchronous reactance per phase, q-axis [pu]
xdTransientTransient reactance per phase, d-axis [pu]
xdSubtransientSubtransient reactance per phase, d-axis [pu]
xqSubtransientSubtransient reactance per phase, q-axis [pu]
TaArmature time constant [s]
Td0TransientOpen circuit field time constant Td0' [s]
Td0SubtransientOpen circuit subtransient time constant Td0'', d-axis [s]
Tq0SubtransientOpen circuit subtransient time constant Tq0'', q-axis [s]
Material
TsSpecificationSpecification temperature of stator resistance [K]
TsRefReference temperature of stator resistance [K]
alpha20sTemperature coefficient of stator resistance at 20 degC [1/K]
TrSpecificationSpecification temperature of (optional) damper cage [K]
TrRefReference temperature of damper resistances in d- and q-axis [K]
alpha20rTemperature coefficient of damper resistances in d- and q-axis [1/K]
TeSpecificationSpecification excitation temperature [K]
TeRefReference temperature of excitation resistance [K]
alpha20eTemperature coefficient of excitation resistance [1/K]
Result
RsStator resistance per phase at TRef [Ohm]
LssigmaStator stray inductance per phase [H]
LmdMain field inductance in d-axis [H]
LmqMain field inductance in q-axis [H]
LrsigmadDamper stray inductance in d-axis [H]
LrsigmaqDamper stray inductance in q-axis [H]
RrdDamper resistance in d-axis at TRef [Ohm]
RrqDamper resistance in q-axis at TRef [Ohm]
ReExcitation resistance at TRef [Ohm]
sigmaeStray fraction of total excitation inductance

Modelica.Electrical.Machines.Utilities.TransformerData Modelica.Electrical.Machines.Utilities.TransformerData

Calculates Impedances from nominal values

Information


The parameters of the transformer models are calculated from parameters normally given in a technical description.

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

Parameters

NameDescription
fNominal frequency [Hz]
V1Primary nominal line-to-line voltage (RMS) [V]
C1Choose primary connection
V2Secondary open circuit line-to-line voltage (RMS) @ primary nominal voltage [V]
C2Choose secondary connection
SNominalNominal apparent power [VA]
v_scImpedance voltage drop pu
P_scShort-circuit (copper) losses [W]
Result
nRatio primary voltage (line-to-line) / secondary voltage (line-to-line)
R1Warm primary resistance per phase [Ohm]
L1sigmaPrimary stray inductance per phase [H]
R2Warm secondary resistance per phase [Ohm]
L2sigmaSecondary stray inductance per phase [H]

Automatically generated Mon Sep 23 17:20:32 2013.