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 transformerthe 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__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'v1'
'v2'
'i1'
'i2'
'im1'
'psim1'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

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