modelTransformer

Transformer with two ports

Information

The transformer is a two port. The left port voltage v1, left port current i1, right port voltage v2 and right port current i2 are connected by the following relation:

| v1 |     | L1   M  |   | i1 |
|    |  =  |         | . |    |
| v2 |     | M    L2 |   | i2 |

L1, L2, and M are the primary, secondary, and coupling inductances respectively.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.InductanceL1Primary inductance
Modelica.Units.SI.InductanceL2Secondary inductance
Modelica.Units.SI.InductanceMCoupling inductance

Connectors

TypeNameDefaultDescription
Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.PositivePinpin_p1Primary positive pin
Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.PositivePinpin_p2Secondary positive pin
Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.NegativePinpin_n1Primary negative pin
Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.NegativePinpin_n2Secondary negative pin

Components

TypeNameDefaultDescription
Modelica.Units.SI.AngularVelocityomegader(pin_p1.reference.gamma)Angular velocity of reference frame
Modelica.Units.SI.ComplexVoltagev1pin_p1.v - pin_n1.vVoltage drop of side 1
Modelica.Units.SI.ComplexCurrenti1pin_p1.iCurrent into side 1
Modelica.Units.SI.ComplexVoltagev2pin_p2.v - pin_n2.vVoltage drop of side 2
Modelica.Units.SI.ComplexCurrenti2pin_p2.iCurrent into side 2
Modelica.Units.SI.Voltageabs_v1Modelica.ComplexMath.abs(v1)Magnitude of complex voltage v1
Modelica.Units.SI.Anglearg_v1Modelica.ComplexMath.arg(v1)Argument of complex voltage v1
Modelica.Units.SI.Currentabs_i1Modelica.ComplexMath.abs(i1)Magnitude of complex current i1
Modelica.Units.SI.Anglearg_i1Modelica.ComplexMath.arg(i1)Argument of complex current i1
Modelica.Units.SI.ActivePowerP1Modelica.ComplexMath.real(v1*Modelica.ComplexMath.conj(i1))Active power, side 1
Modelica.Units.SI.ReactivePowerQ1Modelica.ComplexMath.imag(v1*Modelica.ComplexMath.conj(i1))Reactive power, side 1
Modelica.Units.SI.ApparentPowerS1Modelica.ComplexMath.abs(v1*Modelica.ComplexMath.conj(i1))Magnitude of complex apparent power, side 1
Modelica.Units.SI.Voltageabs_v2Modelica.ComplexMath.abs(v2)Magnitude of complex voltage v2
Modelica.Units.SI.Anglearg_v2Modelica.ComplexMath.arg(v2)Argument of complex voltage v2
Modelica.Units.SI.Currentabs_i2Modelica.ComplexMath.abs(i2)Magnitude of complex current i2
Modelica.Units.SI.Anglearg_i2Modelica.ComplexMath.arg(i2)Argument of complex current i2
Modelica.Units.SI.ActivePowerP2Modelica.ComplexMath.real(v2*Modelica.ComplexMath.conj(i2))Active power, side 2
Modelica.Units.SI.ReactivePowerQ2Modelica.ComplexMath.imag(v2*Modelica.ComplexMath.conj(i2))Reactive power, side 2
Modelica.Units.SI.ApparentPowerS2Modelica.ComplexMath.abs(v2*Modelica.ComplexMath.conj(i2))Magnitude of complex apparent power, side 2