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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Inductance | L1 | Primary inductance | |
| Modelica.Units.SI.Inductance | L2 | Secondary inductance | |
| Modelica.Units.SI.Inductance | M | Coupling inductance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.PositivePin | pin_p1 | Primary positive pin | |
| Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.PositivePin | pin_p2 | Secondary positive pin | |
| Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.NegativePin | pin_n1 | Primary negative pin | |
| Modelica.Electrical.QuasiStatic.SinglePhase.Interfaces.NegativePin | pin_n2 | Secondary negative pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.AngularVelocity | omega | der(pin_p1.reference.gamma) | Angular velocity of reference frame |
| Modelica.Units.SI.ComplexVoltage | v1 | pin_p1.v - pin_n1.v | Voltage drop of side 1 |
| Modelica.Units.SI.ComplexCurrent | i1 | pin_p1.i | Current into side 1 |
| Modelica.Units.SI.ComplexVoltage | v2 | pin_p2.v - pin_n2.v | Voltage drop of side 2 |
| Modelica.Units.SI.ComplexCurrent | i2 | pin_p2.i | Current into side 2 |
| Modelica.Units.SI.Voltage | abs_v1 | Modelica.ComplexMath.abs(v1) | Magnitude of complex voltage v1 |
| Modelica.Units.SI.Angle | arg_v1 | Modelica.ComplexMath.arg(v1) | Argument of complex voltage v1 |
| Modelica.Units.SI.Current | abs_i1 | Modelica.ComplexMath.abs(i1) | Magnitude of complex current i1 |
| Modelica.Units.SI.Angle | arg_i1 | Modelica.ComplexMath.arg(i1) | Argument of complex current i1 |
| Modelica.Units.SI.ActivePower | P1 | Modelica.ComplexMath.real(v1*Modelica.ComplexMath.conj(i1)) | Active power, side 1 |
| Modelica.Units.SI.ReactivePower | Q1 | Modelica.ComplexMath.imag(v1*Modelica.ComplexMath.conj(i1)) | Reactive power, side 1 |
| Modelica.Units.SI.ApparentPower | S1 | Modelica.ComplexMath.abs(v1*Modelica.ComplexMath.conj(i1)) | Magnitude of complex apparent power, side 1 |
| Modelica.Units.SI.Voltage | abs_v2 | Modelica.ComplexMath.abs(v2) | Magnitude of complex voltage v2 |
| Modelica.Units.SI.Angle | arg_v2 | Modelica.ComplexMath.arg(v2) | Argument of complex voltage v2 |
| Modelica.Units.SI.Current | abs_i2 | Modelica.ComplexMath.abs(i2) | Magnitude of complex current i2 |
| Modelica.Units.SI.Angle | arg_i2 | Modelica.ComplexMath.arg(i2) | Argument of complex current i2 |
| Modelica.Units.SI.ActivePower | P2 | Modelica.ComplexMath.real(v2*Modelica.ComplexMath.conj(i2)) | Active power, side 2 |
| Modelica.Units.SI.ReactivePower | Q2 | Modelica.ComplexMath.imag(v2*Modelica.ComplexMath.conj(i2)) | Reactive power, side 2 |
| Modelica.Units.SI.ApparentPower | S2 | Modelica.ComplexMath.abs(v2*Modelica.ComplexMath.conj(i2)) | Magnitude of complex apparent power, side 2 |