modelCompareTransformers

Transformer circuit to show the magnetization facilities

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example is to demonstrate the behaviour of transformer models. The Basic.Transformer, which consists of mutual coupled inductors, is compared with the ideal transformer model. If the ideal model is used with considerMagnetization=true leakage inductances are taken into account, otherwise not. The example is constructed in such a way that the ideal transformer circuit with considerMagnetization=true shows the same behaviour as the basic transformer.

Simulate until T=50 s with both considerMagnetization=false and considerMagnetization=true of the ideal transformer. Plot in separate windows for comparison:
basicTransformer.p1.v and idealTransformer.p1.v
basicTransformer.p1.i and idealTransformer.p1.i
basicTransformer.p2.v and idealTransformer.p2.v basicTransformer.p2.i and idealTransformer.p2.i

Parameters

TypeNameDefaultDescription
SI.VoltageVdc0.1DC offset of voltage source
SI.VoltageVpeak0.1Peak voltage of voltage source
SI.Frequencyf10Frequency of voltage source
SI.Anglephi0pi/2Phase of voltage source
Realn2Turns ratio primary:secondary voltage
SI.ResistanceR10.01Primary resistance w.r.t. primary side
SI.InductanceL1sigma0.05/(2*pi*f)Primary leakage inductance w.r.t. primary side
SI.InductanceLm110./(2*pi*f)Magnetizing inductance w.r.t. primary side
SI.InductanceL2sigma0.05/(2*pi*f)/n^2Secondary leakage inductance w.r.t. secondary side
SI.ResistanceR20.01/n^2Secondary resistance w.r.t. secondary side
SI.ResistanceRL1/n^2Load resistance
SI.InductanceL1L1sigma + M*nPrimary no-load inductance
SI.InductanceL2L2sigma + M/nSecondary no-load inductance
SI.InductanceMLm1/nMutual inductance

Components

TypeNameDefaultDescription
SI.Voltagev1Bresistor11.n.vPrimary voltage, basic transformer
SI.Currenti1Bresistor11.iPrimary current, basic transformer
SI.Voltagev2Bresistor12.p.vSecondary voltage, basic transformer
SI.Currenti2Bresistor12.iSecondary current, basic transformer
SI.Voltagev1Iresistor21.n.vPrimary voltage, basic transformer
SI.Currenti1Iresistor21.iPrimary current, basic transformer
SI.Voltagev2Iresistor22.p.vSecondary voltage, basic transformer
SI.Currenti2Iresistor22.iSecondary current, basic transformer
Modelica.Electrical.Analog.Sources.SineVoltagesineVoltage1
Modelica.Electrical.Analog.Basic.Groundground11
Modelica.Electrical.Analog.Basic.Resistorresistor11
Modelica.Electrical.Analog.Basic.Resistorresistor12
Modelica.Electrical.Analog.Basic.Resistorload1
Modelica.Electrical.Analog.Basic.Groundground12
Modelica.Electrical.Analog.Sources.SineVoltagesineVoltage2
Modelica.Electrical.Analog.Basic.Groundground21
Modelica.Electrical.Analog.Basic.Resistorresistor21
Modelica.Electrical.Analog.Basic.Inductorinductor21
Modelica.Electrical.Analog.Basic.Inductorinductor22
Modelica.Electrical.Analog.Basic.Resistorresistor22
Modelica.Electrical.Analog.Basic.Resistorload2
Modelica.Electrical.Analog.Basic.Groundground22
Modelica.Electrical.Analog.Basic.TransformerbasicTransformer
Modelica.Electrical.Analog.Ideal.IdealTransformeridealTransformer

Revisions

2009
by Anton Haumer
initially implemented