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
idealTransformerLibraryElectricalDescription
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.
Also in this example:Voltage sensorGroundRampResistorSaturating inductorTransformer (coupled)AC voltageControlled current
Ports
Conserving terminals 4
-
1+
p1Primary positive pin. Current into p1 is the primary current i1.
-
1−
n1Primary negative pin.
-
2+
p2Secondary positive pin. Current into p2 is the secondary current i2.
-
2−
n2Secondary negative pin.
Parameters
-
Turns ratio
n2≥ 0
Turns ratio, primary to secondary: v1 / v2. Use a positive value; n = 2 steps the voltage down by half.
Equations
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.Electrical.Analog.Ideal.IdealTransformerAssumptions 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.