modelIdealTransformer

Ideal transformer core with or without magnetization

Extends from Modelica.Electrical.Analog.Interfaces.TwoPort (Component with two electrical ports, including current).

Information

The ideal transformer is a two-port circuit element; in case of Boolean parameter considerMagnetization = false it is characterized by the following equations:

i2 = -i1*n;
v2 =  v1/n;

where n is a real number called the turns ratio. Due to this equations, also DC voltages and currents are transformed - which is not the case for technical transformers.

In case of Boolean parameter considerMagnetization = true it is characterized by the following equations:

im1  = i1 + i2/n "Magnetizing current w.r.t. primary side";
psim1= Lm1*im1   "Magnetic flux w.r.t. primary side";
v1 = der(psim1)  "Primary voltage";
v2 = v1/n        "Secondary voltage";

where Lm denotes the magnetizing inductance. Due to this equations, the DC offset of secondary voltages and currents decrement according to the time constant defined by the connected circuit.

Taking primary L1sigma and secondary L2ssigma leakage inductances into account, compared with the basic transformer the following parameter conversion can be applied (which leads to identical results):

L1 = L1sigma + M*n "Primary inductance at secondary no-load";
L2 = L2sigma + M/n "Secondary inductance at primary no-load";
M  = Lm1/n         "Mutual inductance";

For the backward conversion, one has to decide about the partitioning of the leakage to primary and secondary side.

Parameters

TypeNameDefaultDescription
RealnTurns ratio primary:secondary voltage
BooleanconsiderMagnetizationfalseChoice of considering magnetization
SI.InductanceLm1Magnetization inductance w.r.t. primary side

Connectors

TypeNameDefaultDescription
PositivePinp1 (from FourPin)Positive electrical pin of port 1
NegativePinn1 (from FourPin)Negative electrical pin of port 1
PositivePinp2 (from FourPin)Positive electrical pin of port 2
NegativePinn2 (from FourPin)Negative electrical pin of port 2

Components

TypeNameDefaultDescription
SI.Voltagev1 (from FourPin)Voltage drop of port 1 (= p1.v - n1.v)
SI.Voltagev2 (from FourPin)Voltage drop of port 2 (= p2.v - n2.v)
SI.Currenti1 (from FourPin)Current flowing from pos. to neg. pin of port 1
SI.Currenti2 (from FourPin)Current flowing from pos. to neg. pin of port 2

Revisions

  • June 3, 2009 magnetisation current added by Anton Haumer
  • 1998 initially implemented by Christoph Clauss