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

Name Description
Modelica.Electrical.Machines.Utilities.ParameterRecords ParameterRecords Parameter records
Modelica.Electrical.Machines.Utilities.VfController VfController Voltage-Frequency-Controller
Modelica.Electrical.Machines.Utilities.ToDQ ToDQ Transform instantaneous stator inputs to rotor fixed space phasor
Modelica.Electrical.Machines.Utilities.FromDQ FromDQ Transform rotor fixed space phasor to instantaneous stator quantities
Modelica.Electrical.Machines.Utilities.DQToThreePhase DQToThreePhase Transforms dq to three-phase
Modelica.Electrical.Machines.Utilities.DQCurrentController DQCurrentController Current controller in dq coordinate system
Modelica.Electrical.Machines.Utilities.SinCosEvaluation SinCosEvaluation Evaluation of the signals of a sin-cos-resolver
Modelica.Electrical.Machines.Utilities.SwitchYD SwitchYD Y-D-switch
Modelica.Electrical.Machines.Utilities.SwitchYDwithArc SwitchYDwithArc Y-D-switch with arc
Modelica.Electrical.Machines.Utilities.TerminalBox TerminalBox Terminal box Y/D-connection
Modelica.Electrical.Machines.Utilities.MultiTerminalBox MultiTerminalBox 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.DcBrakeSettings DcBrakeSettings Setting for DC current braking
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".
By setting parameter EconomyMode=true, Voltage rises quadratically with frequency which means flux,torque and loss reduction for fan and pump drives.
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]
EconomyModeEconomy mode: voltage quadratic dependent on frequency

Connectors

NameDescription
y[nout]Connector of Real output signals

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

Transform instantaneous stator inputs to rotor fixed space phasor

Information

The polyphase input values u[m] are transformed to the corresponding space phasor which is rotated to the rotor fixed reference system, using the provided mechanical rotor angle phi. The output are the resulting d and q components of the space phasor arranged in one vector y[2].

See also

FromDQ

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

Parameters

NameDescription
ninNumber of inputs
noutNumber of outputs
mNumber of phases
pNumber of pole pairs

Connectors

NameDescription
u[nin]Connector of Real input signals
y[nout]Connector of Real output signals
phi[rad]

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

Transform rotor fixed space phasor to instantaneous stator quantities

Information

The d and q components of a space phasor u[2] are rotated back to the stator fixed reference system, using the provided mechanical rotor angle phi. The output are the instantaneous polyphase values y[m].

See also

ToDQ

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

Parameters

NameDescription
ninNumber of inputs
noutNumber of outputs
mNumber of phases
pNumber of pole pairs

Connectors

NameDescription
u[nin]Connector of Real input signals
y[nout]Connector of Real output signals
phi[rad]

Modelica.Electrical.Machines.Utilities.DQToThreePhase Modelica.Electrical.Machines.Utilities.DQToThreePhase

Transforms dq to three-phase

Information

Transforms dq currents or voltages to three-phase currents or voltages.

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

Inputs d and q can be given either as peak values (useRMS=false) or as RMS (useRMS=true). The correction by factor √2 is done automatically.

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

Parameters

NameDescription
mNumber of phases
pNumber of pole pairs
useRMSIf true, inputs dq are multiplied by sqrt(2)
noutNumber of outputs

Connectors

NameDescription
y[nout]Connector of Real output signals
dd-component
qq-component
phiRotor angle [rad]

Modelica.Electrical.Machines.Utilities.DQCurrentController Modelica.Electrical.Machines.Utilities.DQCurrentController

Current controller in dq coordinate system

Information

Simple Current controller

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

Inputs d and q can be given either as peak values (useRMS=false) or as RMS (useRMS=true). The correction by factor √2 is done automatically. The measured currents iActual[m] are assumed to be instantaneous values.

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
useRMSIf true, inputs dq are multiplied by sqrt(2)
fsNominalNominal frequency [Hz]
VsOpenCircuitOpen circuit RMS voltage per phase @ fsNominal [V]
RsStator resistance per phase [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
idReference of d-current
iqReference of q-current
phiRotor angle [rad]
iActual[m]Measured three-phase currents [A]

Modelica.Electrical.Machines.Utilities.SinCosEvaluation Modelica.Electrical.Machines.Utilities.SinCosEvaluation

Evaluation of the signals of a sin-cos-resolver

Information

The sin-cos-resolver provides four tracks:

All four tracks have the same amplitude and the same offset > amplitude. Offset is used to detect loss of a track. To remove offset, (minus sine) is subtracted from (sine) and (minus cosine) from (cosine), resulting in a cosine and a sine signal with doubled amplitude but without offset.

Interpreting cosine and sine as real and imaginary part of a phasor, one could calculate the angle of the phasor (i.e., transform rectangular coordinates to polar coordinates). This is not very robust if the signals are superimposed with some noise. Therefore the phasor is rotated by an angle that is obtained by a controller. The controller aims at imaginary part equal to zero. The resulting angle is continuous, i.e. differentiating the angle results in 2*π*frequency. If desired, the angle can be wrapped to the interval ]-π, +π].

If the sin-cos-resolver provides one period of the tracks during a rotation of 2π/p, the result is the angle with respect to one pole pair and can be directly used for field oriented control.

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

Connectors

NameDescription
u[4]Signal from sin-cos-resolver
phiAngle [rad]
wAngular velocity [rad/s]

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.
Note there is a delay between opening star connection and closing delta connection, respectively opening delta connection and closing star connection.

Parameters

NameDescription
mNumber of phases
RonClosed switch resistance [Ohm]
GoffOpened switch conductance [S]
delayTimeTime delay [s]

Connectors

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

Modelica.Electrical.Machines.Utilities.SwitchYDwithArc Modelica.Electrical.Machines.Utilities.SwitchYDwithArc

Y-D-switch with arc

Information

Star-Delta-switch with arc when switch opens.
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.
Note there is a delay between opening star connection and closing delta connection, respectively opening delta connection and closing star connection.

Parameters

NameDescription
mNumber of phases
RonClosed switch resistance [Ohm]
GoffOpened switch conductance [S]
delayTimeTime delay [s]
V0Initial arc voltage [V]
dVdtArc voltage slope [V/s]
VmaxMax. arc voltage [V]

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

This model represents the internal connections of the terminal box of an electric machine. The parameter terminalConnection is used to switch between star (terminalConnection = "Y") and delta (terminalConnection = "D") connection. The (single-phase) connector starPoint is only available if star connection is selected.

Parameters

NameDescription
mNumber of phases
terminalConnectionChoose "Y" for star or "D" for delta connection

Connectors

NameDescription
plug_spTo be connected with positive stator plug
plug_snTo be connected with negative stator plug
plugSupplyTo be connected with grid
starpointStar point

Modelica.Electrical.Machines.Utilities.MultiTerminalBox Modelica.Electrical.Machines.Utilities.MultiTerminalBox

Terminal box Y/D-connection

Information

This model represents the internal connections of the terminal box of an electric machine. The parameter terminalConnection is used to switch between star (terminalConnection = "Y") and delta (terminalConnection = "D") connection. The star point is a plug with mSystem = Electrical.Polyphase.Functions.numberOfSymmetricBaseSystems(m) phases, representing the star points of each base system; see Modelica.Magnetic.FundamentalWave.UsersGuide.Polyphase.

Parameters

NameDescription
mNumber of phases
terminalConnectionChoose "Y" for star or "D" for delta connection

Connectors

NameDescription
plug_spTo be connected with positive stator plug
plug_snTo be connected with negative stator plug
plugSupplyTo be connected with grid
starpointStar point

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

Rheostat which is shortened after a given time

Information

Switched rheostat, used for starting 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 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.DcBrakeSettings Modelica.Electrical.Machines.Utilities.DcBrakeSettings

Setting for DC current braking

Information

Lets the user choose the layout, and determines the necessary DC current for DC current braking of an induction machine.

The icon shows the four layout variants. Phases with half the current are depicted with half the line thickness, phases with zero current are depicted with dashed line.

Parameters

NameDescription
INominalNominal RMS current per phase [A]
layoutBraking connection layout
Results
terminalConnectionTerminal connection
connect3Connect 3rd terminal
IdcDC braking current [A]
is[3]Phase currents [A]

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 [V.A]
VsNominalNominal stator voltage per phase [V]
fsNominalNominal stator frequency [Hz]
IeOpenCircuitOpen circuit excitation current @ nominal voltage and frequency [A]
effectiveStatorTurnsEffective number of stator turns
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 per phase in d-axis [H]
LmqMain field inductance per phase 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 [V.A]
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 Thu Oct 1 16:07:42 2020.