IdealTransformer

Ideal transformer core with or without magnetization

    IdealTransformer

Library

Modelica/Electrical/Analog/Ideal

Description

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

IdealTransformer_0

NameLabelDescriptionData TypeValid Values

mo_n

n

Turns ratio primary:secondary voltage

Scalar

mo_considerMagnetization

considerMagnetization

Choice of considering magnetization

Scalar

true
false

mo_Lm1

Lm1

Magnetization inductance w.r.t. primary side

Scalar

IdealTransformer_1

NameLabelDescriptionData TypeValid Values

mo_v1

v1

v1

Structure

mo_v1/fixed

fixed

Cell of scalars

true
false

mo_v1/start

start

Cell of scalars

mo_v2

v2

v2

Structure

mo_v2/fixed

fixed

Cell of scalars

true
false

mo_v2/start

start

Cell of scalars

mo_i1

i1

i1

Structure

mo_i1/fixed

fixed

Cell of scalars

true
false

mo_i1/start

start

Cell of scalars

mo_i2

i2

i2

Structure

mo_i2/fixed

fixed

Cell of scalars

true
false

mo_i2/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

p1

implicit

Positive electrical pin of port 1

input

1

n1

implicit

Negative electrical pin of port 1

output

1

p2

implicit

Positive electrical pin of port 2

input

2

n2

implicit

Negative electrical pin of port 2

output

2