Main Content

Choose Blocks to Model Transformers

The Simscape™ and Simscape Electrical™ libraries include several blocks that can model the same transformer device. For example, the Mutual Inductor, Ideal Transformer, and Nonlinear Transformer blocks all model two electromagnetically-coupled windings. However, these blocks make different modeling assumptions. To choose the right block for your application you need to understand these assumptions and how they impact the block behavior as a function of frequency.

Compare Equations

To understand the differences between blocks that model transformers, it is useful to compare the equations that they use. In this section, you first derive a generalized transfer function for a magnetic domain representation of a two-winding component and some simplified approximations for idealized cases. Then, you compare the magnetic equations to the electrical equations that different transformer blocks use. This analysis focuses on two-winding components but some of the key points extend to three-winding components.

For a brief summary of the differences between transformer models, the blocks that use these models, and guidance on when to use each block, see Choose the Right Block.

Generalized Magnetic Circuit

This figure shows the generalized magnetic equivalent circuit for a two-winding transformer.

Equivalent magnetic circuit for a two-winding transformer. A Fundamental Reluctance block along the closed loop between the primary and secondary windings models the core reluctance. Two additional Fundamental Reluctance blocks, in parallel with the primary and secondary windings, model the leakage reluctances.

The Electromagnetic Converter blocks, labeled Primary electromagnetic converter and Secondary electromagnetic converter, represent the two windings that connect the electrical and magnetic circuits. In this orientation, these blocks follow the winding configuration that all transformer blocks use, in which a positive-going voltage on the primary winding results in a positive-outgoing current on the secondary winding.

These equations define the behavior of the primary and secondary winding.

F1=N1i1(1)
F2=N2i2(2)
v1i1r1=N1dϕ1dt(3)
v2i2r2=N2dϕ2dt(4)

The equations have these block parameter values:

  • r1 is the primary ohmic resistance.

  • r2 is the secondary ohmic resistance.

  • N1 is the number of turns on the primary winding.

  • N2 is the number of turns on the secondary winding.

The equations have these variables in the magnetic and electrical domain:

  • Φ1 is the flux flowing into the north terminal of the primary electromagnetic converter.

  • Φ2 is the flux flowing into the north terminal of the secondary electromagnetic converter.

  • F1 is the magnetomotive force (MMF) across the north and south terminals of the primary electromagnetic converter.

  • F2 is the MMF across the north and south terminals of the secondary electromagnetic converter.

  • i1 is the current flowing into the positive terminal of the primary electromagnetic converter.

  • i2 is the current flowing into the positive terminal of the secondary electromagnetic converter.

  • v1 is the voltage across the positive and negative terminals of the primary electromagnetic converter.

  • v2 is the voltage across the positive and negative terminals of the secondary electromagnetic converter.

The Fundamental Reluctance blocks, labeled R1, R2, and Rc, represent magnetic reluctances which exhibit a drop in MMF when a magnetic flux 𝜙 flows through them. The leakage reluctances, R1 and R2, represent the part of the flux that the electromagnetic converter generates that does not flow around the main magnetic path. These blocks represent a loss of coupling between the two connected electrical circuits. The reluctance Rc is the core reluctance. These parameter values describe the magnetic behavior of the Fundamental Reluctance blocks:

  • R1 is the primary leakage reluctance.

  • R2 is the secondary leakage reluctance.

  • Rc is the core reluctance.

A smaller value of Rc means that a smaller MMF creates a given level of flux linkage between the two windings. This smaller MMF means that a smaller current creates the same level of flux linkage, because MMF is equal to the current multiplied by the number of turns on the winding.

Now, consider Kirchoff's equations. Summing the MMFs around the main magnetic path gives

N1i1Rcϕ1+N2i2=0.(5)

Summing the fluxes at the primary electromagnetic converter north terminal gives:

ϕ=ϕ1+N1i1R1=0,(6)
where Φ is the flux flowing through the core reluctance Rc from the north terminal to the south terminal. Summing the fluxes at the secondary electromagnetic converter north terminal gives
ϕ=ϕ2+N2i2R2=0.(7)

Now, consider the input-output behavior. Suppose you apply a voltage V to the primary winding and short circuit the secondary winding. Noting that v1 = V and v2 = 0, and using equations 3–7, you can derive this expression for the secondary winding current:

i2=N1N2R1R2sN12N22(R1+R2+Rc)s2+(N12R1R2r2+N12R2Rcr2+N22R1Rcr1)s+R1R2Rcr1r2V,(8)

where s is the Laplace transform variable. The numerator of this equation is zero for s = 0, which implies no transmission of DC inputs, as you would expect for mutual coupling.

Equation 8 is the general case transfer function. You can simplify this expression for idealized cases when:

  • The core reluctance is very small — There is low opposition to magnetic flux around the main magnetic path.

  • The leakage reluctance is very large — There is a large opposition to magnetic flux outside of the main magnetic path.

Small Core Reluctance.  If the core reluctance Rc is small enough that you can neglect it, the equivalent magnetic circuit simplifies to:

Equivalent magnetic circuit for a two-winding transformer with negligible core reluctance. Two Fundamental Reluctance blocks, in parallel with the primary and secondary windings, model the leakage reluctances.

Equation 8 simplifies to

i2=N1N2N12N22(R1+R2)R1R2s+N12r2V.

For direct current, s is equal to zero and this equation further simplifies to

i2r2=N2N1V.

This equation is the ideal transformer equation. This equation does not depend on R1 and R2.

If R1 and R2 are very large, the R1+R2R1R2 term becomes very small. If you also neglect this term, equation 8 becomes the ideal transformer equation at all frequencies.

Large Leakage Reluctances.  Now, consider the case where the core reluctance Rc is not small and the leakage reluctances are very large. The equivalent magnetic circuit simplifies to:

Equivalent magnetic circuit for a two-winding transformer with infinite leakage reluctances. A Fundamental Reluctance block along the closed loop between the primary and secondary windings models the core reluctance.

Divide the numerator and denominator of equation 8 by R1R2 to give

i2=N1N2sN12N22(R1+R2+Rc)s2R1R2+(N12r2+N12Rcr2R1+N22Rcr1R2)s+Rcr1r2V.

If you neglect the small terms in the denominator, this equation simplifies to

i2=N1N2sN12r2s+Rcr1r2V.

In this case, DC does not transmit at any frequency due to the s on the numerator. There is also a first-order time constant with a value that only depends on the core reluctance and primary electromagnetic converter parameters,

τ=Rcr1N12.

Summary.  An analysis of the equivalent magnetic circuit of a two-winding transformer provides insight into understand the differences between blocks that model two-winding transformers in the electrical domain:

  • If the core reluctance Rc is very small, power transmits at DC. This transmission can be an issue for some circuits because it effectively adds a ground path that does not exist in the real system.

  • If the leakage reluctances R1 and R2 are very large, power does not transmit at DC. Each winding presents an impedance with an associated time constant to the connected circuit.

  • If the core reluctance is very small and the leakage reluctances R1 and R2 are very large, the transformer behaves like an ideal transformer.

Mutual Inductor Block

These equations define the behavior of the Mutual Inductor block, without perfect coupling:

v1i1r1=L1di1dt+Mdi2dt(9)
v2i2r2=L2di2dt+Mdi1dt,(10)
where
M=kL1L2,(11)

and k is the coupling factor. This parameter represents the coupling between the electrical and magnetic circuits, not the magnetic coupling between the primary and the secondary. Hence, k relates to leakage reluctance.

These equations must represent identical behavior to the generalized magnetic circuit (equations 3–7). The magnetic domain has three extra equations for the magnetic domain and you have three more variables to solve for: Φ1, Φ2, and Φ. By comparing the electrical and magnetic equations, you can deduce these relationships between the parameters.

L1=N12(1Rc+1R1)

L2=N22(1Rc+1R2)

k=1(1+RcR1)(1+RcR2)

The defining electrical equations (equations 9, 10, and 11) are valid only for magnitudes of k that are less than one. When the magnitude of the coupling factor is precisely one, there must be just one differential equation, but equations 9 and 10 define two equations. To understand why this is, you need to revisit the magnetic domain equations. Assuming that the leakage reluctances R1 and R2 are very large, which corresponds to k = 1, equations 5–7 simplify to:

N1i1+Rcϕ1+N2i2=0

ϕ1=ϕ2.

Using these equations along with equations 3 and 4, you get the ideal transformer equation relating input and output voltages:

v1i1r1v2i2r2=N1N2.

Differentiate the first equation to give

N1di1dt+Rcdϕ1dt+N2di2dt=0.

Eliminate Φ1 from this equation using equation 3 to give

N1di1dt+Rc(v1i1r1)N1+N2di2dt=0.

Now, rearrange this equation to give

v1i1r1v2i2r2=L1L2.

Hence, the two electrical domain equations for the perfect coupling case, with k = 1, are:

v1i1r1v2i2r2=L1L2(12)
v1i1r1=L1di1dt+L1L2di2dt.(13)

Both sets of electrical equations, equations 9–10 and 12–13, are consistent with the magnetic equations.

The Mutual Inductor block:

  • Isolates the two windings electrically, providing no path for DC.

  • Presents an inductive impedance to each of the circuits connected to the windings.

  • Presents an impedance of L1 at the primary, if the secondary is open circuit.

  • Presents an impedance of L2 at the secondary, if the primary is open circuit.

In the case of perfect coupling, there is only one differential equation and associated time constant.

Changing k without changing L1 and L2 corresponds to reducing leakage only and does not change the properties of the core magnetic path. To set the coefficient of coupling to one while retaining the correct low-frequency behavior, blocking DC, use the Mutual Inductor block in the Simscape Foundation library and select the Perfect coupling - no leakage parameter.

Standard Transformer Equations and the Ideal Transformer Block

The standard transformer equations make the simplifying assumption that the main magnetic path in the transformer has negligible reluctance. Hence, the core reluctance Rc is zero and the equivalent magnetic circuit simplifies to:

Equivalent magnetic circuit for a standard two-winding transformer model which has negligible core reluctance. Two Fundamental Reluctance blocks, in parallel with the primary and secondary windings, model the leakage reluctances.

Equations 5, 6, and 7 simplify to:

ϕ2=ϕ1+N1i1R

F1=F2,

where R=R1R2R1+R2.

Differentiate the equation for Φ2 to give

dϕ2dt=dϕ1dt+N1Rdi1dt.

Eliminate Φ1 and Φ2 from this equation using equations 3 and 4 to give

(v2i2r2)N2=(v1i1r1)N1+N1Rdi1dt.

Rearrange this equation to give:

v2i2r2=N2N1(v1i1r1N12Rdi1dt).

Substituting for F1 and F2 in the F1 = -F2 equation using equations 1 and 2 gives

N1i1=N2i2.

These last two equations are the standard transformer equations. This figure shows the equivalent electrical circuit:

Equivalent electrical circuit for a standard two-winding transformer model which has negligible core reluctance. An Inductor block connects to the primary winding positive terminal of an Ideal Transformer block.

where LT=N12(R1+R2)R1R2.

The Ideal Transformer block does not model leakage inductance LT. This simplification gives just these two equations:

N1i1=N2i2

v2i2r2v1i1r1=N2N1.

The equivalent magnetic circuit simplifies to:

Equivalent magnetic circuit for a two-winding transformer with negligible core reluctance and infinite leakage reluctance. The primary and secondary windings connect in a closed loop with no Fundamental Reluctance blocks.

To summarize:

  • The standard transformer equations neglect core reluctance. In Simscape, neglecting the core reluctance is equivalent to modeling the transformer by connecting an Inductor block to the primary winding positive terminal of an Ideal Transformer block.

  • Standard transformer models do not isolate the two connected circuits electrically, providing a path for DC. This path is nonphysical and creates a ground path that does not exist in practice.

  • The results of standard transformer models differ from those of mutual inductor models when one winding is open-circuit and you perform an impedance test on the other. Standard transformer models present an infinite impedance, whereas mutual inductor models present a finite impedance.

  • The Ideal Transformer block uses a special case of the standard transformer equations that does not model leakage inductance.

Nonlinear Transformer Block

The Nonlinear Transformer block represents a transformer with a nonideal core. This figure shows an equivalent electrical circuit.

Equivalent electrical circuit for the Nonlinear transformer block. Resistor and Inductor blocks connect in series with the primary and secondary winding positive terminals of an Ideal Transformer block. A Resistor and Nonlinear Inductor block connect in parallel with the primary terminals of the Ideal Transformer block.

In this diagram:

  • r1 is the primary winding resistance.

  • L2 is the primary leakage inductance.

  • r2 is the secondary winding resistance.

  • L2 is the secondary leakage inductance.

  • rm is the magnetization resistance.

  • Lm is the magnetization inductance.

The Nonlinear Transformer block models the core reluctance from the magnetizing inductance Lm. The input impedance for an open-circuit secondary is the sum of the primary leakage and magnetizing inductances. The Nonlinear Transformer block does not transmit DC because Lm behaves like a short circuit at DC, shorting the primary winding.

Choose the Right Block

This table summarizes the analysis of the magnetic and electrical equations, grouping transformer blocks into three sets of models: mutual inductors, ideal transformers, and nonlinear transformers. Use this table to decide which model you need.

ModelBlockLibraryModels Core ReluctanceTransmits DCInput Impedance for Open-Circuit SecondaryApplications
Mutual inductorsMutual InductorSimscape Foundation libraryYesNoL1Audio, RF, and switching power converters when the impedance of the mutual inductor plays a part in correct circuit operation.
Mutual InductorSimscape Electrical library
Three-Winding Mutual InductorSimscape Electrical library
Ideal transformersIdeal TransformerSimscape Foundation libraryNoYesInfiniteAC power and power converters. These blocks do not support analysis of when one of the windings disconnects from its circuit.
Ideal Transformer with an Inductor connected to the primary winding positive terminalSimscape Foundation library
Nonlinear transformersNonlinear TransformerSimscape Electrical libraryYesNoL1 + LmAC power and power converters
Three-Winding Nonlinear TransformerSimscape Electrical library

For more information about the Mutual Inductor and Ideal Transformer blocks in the Simscape Foundation library and their equivalent magnetic circuits, see A Comparison of the Mutual Inductor and Ideal Transformer Library Blocks.

Mutual Inductors Models

This table compares blocks that use mutual inductor models. Use this table to choose a block and option for the Perfect coupling - no leakage parameter. This choice depends on the number of windings your transformer has, whether you need to model winding leakage, and whether you need hardware-in-the-loop (HIL) testing.

BlockLibraryNumber of WindingsPerfect coupling - no leakage Parameter ValueModels Winding LeakageGood for HIL (Avoids Fast Time Constants)
Mutual InductorSimscape Foundation libraryTwoOffYesNo, if k is close to 1
OnNoYes
Mutual InductorSimscape Electrical libraryTwoN/AYesNo, if k is close to 1
Three-Winding Mutual InductorSimscape Electrical libraryThreeOffYesNo, if k is close to 1
OnNoYes

The Mutual Inductor block in the Simscape Foundation library and the Three-Winding Mutual Inductor block support perfect coupling. To set the coefficients of coupling to one while retaining the correct low-frequency behavior, blocking DC, select the Perfect coupling - no leakage parameter. If you need to simulate ideal coupling for a two-winding mutual inductor model, use the Mutual Inductor block in the Simscape Foundation library.

The Mutual Inductor block in the Simscape Electrical library models an equivalent series resistance and a parallel leakage path of the primary and secondary winding, which the Mutual Inductor block in the Simscape Foundation library does not. The Simscape Electrical block also has optional models for tolerances, faults, and operating limits.

Ideal and Nonlinear Transformer Models

This table compares blocks that use ideal and nonlinear transformer models. Use this table to choose a block depending on whether you need to model winding leakage and whether you need HIL testing.

BlockLibraryNumber of WindingsModels Winding LeakageGood for HIL (Avoids Fast Time Constants)
Ideal TransformerSimscape Foundation libraryTwoNoYes
Ideal Transformer with an Inductor connected to the primary winding positive terminalSimscape Foundation libraryTwoYesNo, if the ratio of leakage inductance to the connected circuit impedance is small compared to the sample time.
Nonlinear TransformerSimscape Electrical libraryTwoYesNo, if the ratio of leakage inductance to the connected circuit impedance is small compared to the sample time.
Three-Winding Nonlinear TransformerSimscape Electrical libraryThreeYesNo, if the ratio of leakage inductance to the connected circuit impedance is small compared to the sample time.

See Also

| | | |

Topics