Library with auxiliary models for testing
Extends from Modelica.Icons.UtilitiesPackage (Icon for utility packages).
| Name | Description |
|---|---|
| Parameter records | |
| Voltage-Frequency-Controller | |
| Transform instantaneous stator inputs to rotor fixed space phasor | |
| Transform rotor fixed space phasor to instantaneous stator quantities | |
| Current controller | |
| Voltage controller | |
| Y-D-switch | |
| Terminal box Y/D-connection | |
| Terminal box Y/D-connection | |
| Rheostat which is shortened after a given time | |
| Rheostat with linearly decreasing resistance | |
| Computes machine parameter from usual datasheet | |
| Calculates Impedances from nominal values |
Modelica.Electrical.Machines.Utilities.VfControllerVoltage-Frequency-Controller
Extends from Modelica.Blocks.Interfaces.SIMO (Single Input Multiple Output continuous control block).
| Name | Description |
|---|---|
| nout | Number of outputs |
| m | Number of phases |
| orientation[m] | Orientation of phases [rad] |
| VNominal | Nominal RMS voltage per phase [V] |
| fNominal | Nominal frequency [Hz] |
| BasePhase | Common phase shift [rad] |
| EconomyMode | Economy mode: voltage quadratic dependent on frquency |
| Name | Description |
|---|---|
| y[nout] | Connector of Real output signals |
Modelica.Electrical.Machines.Utilities.ToDQTransform instantaneous stator inputs to rotor fixed space phasor
The multi phase 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].
Extends from Modelica.Blocks.Interfaces.MIMO (Multiple Input Multiple Output continuous control block).
| Name | Description |
|---|---|
| nin | Number of inputs |
| nout | Number of outputs |
| m | Number of phases |
| p | Number of pole pairs |
| Name | Description |
|---|---|
| u[nin] | Connector of Real input signals |
| y[nout] | Connector of Real output signals |
| phi | [rad] |
Modelica.Electrical.Machines.Utilities.FromDQTransform rotor fixed space phasor to instantaneous stator quantities
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 multi phase values y[m].
Extends from Modelica.Blocks.Interfaces.MIMO (Multiple Input Multiple Output continuous control block).
| Name | Description |
|---|---|
| nin | Number of inputs |
| nout | Number of outputs |
| m | Number of phases |
| p | Number of pole pairs |
| Name | Description |
|---|---|
| u[nin] | Connector of Real input signals |
| y[nout] | Connector of Real output signals |
| phi | [rad] |
Modelica.Electrical.Machines.Utilities.CurrentControllerCurrent controller
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 "y[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).
| Name | Description |
|---|---|
| m | Number of phases |
| p | Number of pole pairs |
| nout | Number of outputs |
| Name | Description |
|---|---|
| y[nout] | Connector of Real output signals |
| id_rms | |
| iq_rms | |
| phi | [rad] |
Modelica.Electrical.Machines.Utilities.VoltageControllerVoltage controller
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).
| Name | Description |
|---|---|
| p | Number of pole pairs |
| fsNominal | Nominal frequency [Hz] |
| VsOpenCircuit | Open circuit RMS voltage per phase @ fsNominal [V] |
| Rs | Stator resistance per phase [Ohm] |
| Ld | Inductance in d-axis [H] |
| Lq | Inductance in q-axis [H] |
| decoupling | Use decoupling network |
| nout | Number of outputs |
| Name | Description |
|---|---|
| y[nout] | Connector of Real output signals |
| id_rms | |
| iq_rms | |
| phi | [rad] |
| iActual[m] |
Modelica.Electrical.Machines.Utilities.SwitchYDY-D-switch
| Name | Description |
|---|---|
| m | Number of phases |
| Name | Description |
|---|---|
| plugSupply | To grid |
| plug_sp | To positive stator plug |
| plug_sn | To negative stator plug |
| control[m] |
Modelica.Electrical.Machines.Utilities.TerminalBoxTerminal box Y/D-connection
| Name | Description |
|---|---|
| m | Number of phases |
| terminalConnection | Choose Y=star/D=delta |
| Name | Description |
|---|---|
| plug_sp | To positive stator plug |
| plug_sn | To negative stator plug |
| plugSupply | To grid |
| starpoint |
Modelica.Electrical.Machines.Utilities.MultiTerminalBoxTerminal box Y/D-connection
| Name | Description |
|---|---|
| m | number of phases |
| terminalConnection | Choose Y=star/D=delta |
| Name | Description |
|---|---|
| plug_sp | To positive stator plug |
| plug_sn | To negative stator plug |
| plugSupply | To grid |
| starpoint |
Modelica.Electrical.Machines.Utilities.SwitchedRheostatRheostat which is shortened after a given time
Switched rheostat, used for starting asynchronous induction motors with slipring rotor:
The external rotor resistance RStart is shortened at time tStart.
| Name | Description |
|---|---|
| m | Number of phases |
| RStart | Starting resistance [Ohm] |
| tStart | Duration of switching on the starting resistor [s] |
| Name | Description |
|---|---|
| plug_p | To positive rotor plug |
| plug_n | To negative rotor plug |
Modelica.Electrical.Machines.Utilities.RampedRheostatRheostat with linearly decreasing resistance
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.
| Name | Description |
|---|---|
| m | Number of phases |
| RStart | Starting resistance [Ohm] |
| tStart | Time instance of reducing the rheostat [s] |
| tRamp | Duration of ramp [s] |
| Name | Description |
|---|---|
| plug_p | To positive rotor plug |
| plug_n | To negative rotor plug |
Modelica.Electrical.Machines.Utilities.SynchronousMachineDataComputes machine parameter from usual datasheet
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).
| Name | Description |
|---|---|
| SNominal | Nominal apparent power [V.A] |
| VsNominal | Nominal stator voltage per phase [V] |
| fsNominal | Nominal stator frequency [Hz] |
| IeOpenCircuit | Open circuit excitation current @ nominal voltage and frequency [A] |
| effectiveStatorTurns | Effective number of stator turns |
| x0 | Stator stray inductance per phase (approximately zero impedance) [pu] |
| xd | Synchronous reactance per phase, d-axis [pu] |
| xq | Synchronous reactance per phase, q-axis [pu] |
| xdTransient | Transient reactance per phase, d-axis [pu] |
| xdSubtransient | Subtransient reactance per phase, d-axis [pu] |
| xqSubtransient | Subtransient reactance per phase, q-axis [pu] |
| Ta | Armature time constant [s] |
| Td0Transient | Open circuit field time constant Td0' [s] |
| Td0Subtransient | Open circuit subtransient time constant Td0'', d-axis [s] |
| Tq0Subtransient | Open circuit subtransient time constant Tq0'', q-axis [s] |
| Material | |
| TsSpecification | Specification temperature of stator resistance [K] |
| TsRef | Reference temperature of stator resistance [K] |
| alpha20s | Temperature coefficient of stator resistance at 20 degC [1/K] |
| TrSpecification | Specification temperature of (optional) damper cage [K] |
| TrRef | Reference temperature of damper resistances in d- and q-axis [K] |
| alpha20r | Temperature coefficient of damper resistances in d- and q-axis [1/K] |
| TeSpecification | Specification excitation temperature [K] |
| TeRef | Reference temperature of excitation resistance [K] |
| alpha20e | Temperature coefficient of excitation resistance [1/K] |
| Result | |
| Rs | Stator resistance per phase at TRef [Ohm] |
| Lssigma | Stator stray inductance per phase [H] |
| Lmd | Main field inductance per phase in d-axis [H] |
| Lmq | Main field inductance per phase in q-axis [H] |
| Lrsigmad | Damper stray inductance in d-axis [H] |
| Lrsigmaq | Damper stray inductance in q-axis [H] |
| Rrd | Damper resistance in d-axis at TRef [Ohm] |
| Rrq | Damper resistance in q-axis at TRef [Ohm] |
| Re | Excitation resistance at TRef [Ohm] |
| sigmae | Stray fraction of total excitation inductance |
Modelica.Electrical.Machines.Utilities.TransformerDataCalculates Impedances from nominal values
The parameters of the transformer models are calculated from parameters normally given in a technical description.
Extends from Modelica.Icons.Record (Icon for records).
| Name | Description |
|---|---|
| f | Nominal frequency [Hz] |
| V1 | Primary nominal line-to-line voltage (RMS) [V] |
| C1 | Choose primary connection |
| V2 | Secondary open circuit line-to-line voltage (RMS) @ primary nominal voltage [V] |
| C2 | Choose secondary connection |
| SNominal | Nominal apparent power [V.A] |
| v_sc | Impedance voltage drop pu |
| P_sc | Short-circuit (copper) losses [W] |
| Result | |
| n | Ratio primary voltage (line-to-line) / secondary voltage (line-to-line) |
| R1 | Warm primary resistance per phase [Ohm] |
| L1sigma | Primary stray inductance per phase [H] |
| R2 | Warm secondary resistance per phase [Ohm] |
| L2sigma | Secondary stray inductance per phase [H] |