Ideal transformer

electrical.ideal_transformer

Lossless transformer with turns ratio N1/N2: v1 = ratio v2 and the power into one side leaves the other.

Ports

NameDomain
p1electrical
n1electrical
p2electrical
n2electrical

Parameters

NameUnitDefaultRangeDescription
ratio110 to ∞Turns ratio N1/N2

Variables

NameUnit
v1V
v2V
i1A
i2A

Equations

v1 = p1.v - n1.v
v2 = p2.v - n2.v
0 = p1.i + n1.i
0 = p2.i + n2.i
i1 = p1.i
i2 = p2.i
v1 = ratio * v2
i2 = -ratio * i1