# How to Model a Transformer in LTSpice

I am modeling a low voltage single phase electrical distribution system with a step-down transformer using LTSpice (source is 480Vrms step down to 120Vrms). In LTSpice instead of setting the turns ratio, the inductance of the primary and secondary winding is set. However, I cannot find inductance values in low voltage transformer datasheets, and the results of my simulation seem to depend on the actual value of each winding, not only on the ratio.

For example, if I set $L1=16\mu H$ and $L2=1\mu H$ I get the following result for the current through R5 and R4 but if I set $L1=16 H$ and $L2=1 H$ I get the following result for the current through R5 and R4 It makes sense that the magnitude of the current will be different since different L values produce different impedances, so what is the best strategy to model this step-down transformer? Thanks.

• Have you read ltwiki.org/index.php5?title=Transformers ? – PlasmaHH Jan 23 '18 at 16:44
• I wasn't aware of that document, I only read it a few minutes ago but it doesn't seem to answer my question. Thanks for the link though. – user519797 Jan 23 '18 at 17:32
• My apologies if I got this wrong, but it seems to me you don't know much about transformers since you're testing values of micro Henry for a mains transformer. If so, it would be better to stop here and learn some more. If not, @PlasmaHH's comment is a good start (which would make me wonder why you would say the page doesn't seem to answer your question). – a concerned citizen Jan 24 '18 at 7:23

So what is the best strategy to model this step-down transformer?

You have to find something in the data sheet that tells you about the no-load primary current (aka magnetization current). Then you calculate what the primary inductance will be for the voltage stated. It is going to be henries and not micro henries so your 2nd graph appears more reasonable.

Secondary inductance is smaller than primary inductance by turns ratio squared.

• Thanks. For this particular transformer, link, on page 10, I read 52.1A on the primary side at 480Vac for a 25kVA single phase transformer. Would this calculation be correct? $V=IZ=52.1(120\pi)L\Rightarrow L=0.024H$ (I omitted the imaginary unit but these are phasors). – user519797 Jan 23 '18 at 17:30
• Unfortunately no. That is the loaded secondary primary current. I read the pamphlet and I saw nothing in it that tells you what the unloaded secondary primary current is. The correct value will be between 1 henry and 100 henry. Try and find a data sheet for one specific transformer that you might consider. – Andy aka Jan 23 '18 at 17:39

I am modeling a low voltage single phase electrical distribution system with a step-down transformer using LTSpice (source is 480Vrms step down to 120Vrms). In LTSpice instead of setting the turns ratio, the inductance of the primary and secondary winding is set. However, I cannot find inductance values in low voltage transformer datasheets, and the results of my simulation seem to depend on the actual value of each winding, not only on the ratio.

Inductance is a good start but not enough for completely modeling a transformer. There are other things to consider such as:

### Core Material

Transformer cores are typically made from a ferrous material, but this creates problems for modeling because its nonlinear in that it has hysteresis and saturates. LT spice does have a non linear model, but the problem is still relating it to physical parameters. The Jiles Atherton Model is useful for modeling these effects.

Source: Qoura

### Leakage and Mutual Inductance

Because only part of the magnetic field from one coil flows through the other coil, leakage needs to be accounted for in the model, as shown below in the inductors $L_{LP} \text{ and } L_{LS}$ the mutual inductance is the one below. These can be simulated in LT spice.

### Wire Resistance and capacitance

The parasitic resistance of the winding needs to be accounted for, this can be approximated by measuring with an ohm meter. The wire resistance can be modeled as a resistor in parallel with the inductor. There also exists parallel capacitance between all of the winding, which can be modeled as a resistor in parallel. with the transformer inductance. Both the parasitic capacitance and resistance help determine the bandwidth of the transformer. Sometimes you can get an idea of the paraisitcs of the transformer if an impedance vs frequency chart is given.

Source: IRF

Most of these parameters will need to be modeled yourself. The method I used to find inductance is found here. Before simulating one needs to decide which parameters need to be modeled and what level of accuracy the simulation needs to achieve. Because these parameters are typically not available measuring the transformer becomes a necessity.

In most cases the least time consuming thing would be to either use designs that have already been fabricated and tested (Example: by using the DC to DC IC's recommendations which have already been tested). Or by building the circuit and testing it yourself.

If simulation is desired, then a way to reduce time is to find manufacturers of transformers that already have spice models available. There have been a few tools I've seen that can take parameters and generate a spice model, but the physical nature of the transformer (such as wires size and turns ratio) need to be known.

• 1000 views and no rep? cmon... – Voltage Spike May 17 at 21:50

Turns ratio of the transformer is square of impedance ratio. Then there's also the coupling factor of the transformer. With '1' you model an ideal transformer without stray fields, or magnetic losses.

Try the transformer impedance at second side at 1mH and calculate primary impedance by turns ratio. Then multiply both impedance by 100 and you'll notice no change in currents.

• Your first sentence is backwards. – The Photon Jan 23 '18 at 17:11
• True. I've confused square with root. It's been answered in other posts correctly. – gommer Jan 23 '18 at 19:35