Ideal transformer

Ideal transformer with turns ratio n: v1 = n·v2 and i2 = −n·i1, with no magnetizing inductance.

  • electrical
  • Modelica Standard Library
  • 4 ports
  • 1 parameter
BlockIdeal transformerKindidealTransformerLibraryElectrical

Description

An ideal transformer with turns ratio n: voltages scale by n and currents by 1/n, with no losses, leakage, or magnetizing current. It passes DC as well as AC.

Example

Transformers and a saturating inductor A coupled-inductor and an ideal transformer on a 10 V sine, and an inductor that saturates as its current rises.

10 V 50 HzCoupled inductorsLoad 10 kΩv coupledGroundGround (coupled)10 V 50 Hz (ideal)Ideal transformerLoad 100 Ωv idealGround (ideal)Ground (ideal out)1 A/sCurrent sourceSaturating inductorv LGround (saturating)
In Gradara, select a Ideal transformer block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:Voltage sensorGroundRampResistorSaturating inductorTransformer (coupled)AC voltageControlled current

Ports

Conserving terminals 4

  • 1+p1

    Primary positive pin. Current into p1 is the primary current i1.

  • 1−n1

    Primary negative pin.

  • 2+p2

    Secondary positive pin. Current into p2 is the secondary current i2.

  • 2−n2

    Secondary negative pin.

Parameters

  • Turns ration2

    ≥ 0

    Turns ratio, primary to secondary: v1 / v2. Use a positive value; n = 2 steps the voltage down by half.

Equations

Modelica
v1 = p1.v − n1.v, i1 = p1.i, p1.i + n1.i = 0
v2 = p2.v − n2.v, i2 = p2.i, p2.i + n2.i = 0
v1 = n · v2
i2 = −n · i1

Implementation

Modelica Standard Library 4.1.0Modelica.Electrical.Analog.Ideal.IdealTransformer
MSL documentation

Assumptions and limitations

  • No magnetizing inductance: the MSL option for it is turned off and not exposed, so the block also transforms DC.
  • No leakage inductance, winding resistance, or saturation.

Tips

  • Each side needs its own path to Ground if the two circuits are otherwise separate.

Used in

These larger examples use it too. Open them from Examples in the app.

  • 480 VAC → 24 VDC flyback

See also

Select a block in Gradara and press F1 to open its page offline.