Setting LTSpice Transformer Model Specs

Ian0

Joined Aug 7, 2020
13,097
Connect your transformer to the mains and measure the primary current. Or, if you have a datasheet, use the value for the off-load primary current.
From that, calculate its impedance.
Measure the primary resistance.
Calculate Xpri = √(Zpri^2-Rpri^2)
From the mains frequency, work out the inductance.
This is the inductance to use for the primary.
You can specify the winding resistance as the resistance of the inductor, or you can add a separate resistor in series.
(I use the resistor in series, as the inductor symbol doesn't show its series resistance on the schematic)
Then calculate the secondary inductance as Lpri/(turnsratio)^2
Include a SPICE command that sets K=1
If you have the transformer to hand, and an inductance meter, short out the secondary and measure the primary inductance.
This is the leakage inductance. Add an inductor of this value in series with the primary. I find it much more satisfactory that calculating a value of K in the 0.99 region.

You could simply measure the primary inductance with the inductance meter, but the value is usually to high for the inductance meter, and also varies with current.
 

Thread Starter

maker_2023

Joined Nov 20, 2023
199
Connect your transformer to the mains and measure the primary current. Or, if you have a datasheet, use the value for the off-load primary current.
From that, calculate its impedance.
Measure the primary resistance.
Calculate Xpri = √(Zpri^2-Rpri^2)
From the mains frequency, work out the inductance.
This is the inductance to use for the primary.
You can specify the winding resistance as the resistance of the inductor, or you can add a separate resistor in series.
(I use the resistor in series, as the inductor symbol doesn't show its series resistance on the schematic)
Then calculate the secondary inductance as Lpri/(turnsratio)^2
Include a SPICE command that sets K=1
If you have the transformer to hand, and an inductance meter, short out the secondary and measure the primary inductance.
This is the leakage inductance. Add an inductor of this value in series with the primary. I find it much more satisfactory that calculating a value of K in the 0.99 region.

You could simply measure the primary inductance with the inductance meter, but the value is usually to high for the inductance meter, and also varies with current.
Thanks IanO
 

Ian0

Joined Aug 7, 2020
13,097
Hi,
Check the 2nd simulation file primary value in post #2. 1Henry

E
Thanks. I thought the second picture was just the thumbnail of the first.
1 H is a sizeable transformer, about 2kVA.
(just measured a 1100VA EI type at 1.77H)
toroids will be higher
 

ericgibbs

Joined Jan 29, 2010
21,391
hi maker,
Watch this video, it shows how to measure the actual values of a transformer that you may have on the bench and then transform those values into an LTSpice asc file.

About 7 minutes in from the start, it shows the method.

Also, it covers the general design of transformers
E

 

eetech00

Joined Jun 8, 2013
4,704
hi maker,
Watch this video, it shows how to measure the actual values of a transformer that you may have on the bench and then transform those values into an LTSpice asc file.

About 7 minutes in from the start, it shows the method.

Also, it covers the general design of transformers
E

I watched part of it and its kinda sketchy...I don't recommend.
 

ericgibbs

Joined Jan 29, 2010
21,391
I watched part of it and its kinda sketchy...I don't recommend.
Hi,
I do not agree, I recommend it.
That guy 'Fesz' knows what he is talking about, I have used that method a number of times, and it works just fine.

' its kinda sketchy', what sort of professional analysis is that supposed to be.?

Instead of dismissing someone other person's work, let's see what you have to offer that will help the TS.

E
 

Thread Starter

maker_2023

Joined Nov 20, 2023
199
hi maker,
Watch this video, it shows how to measure the actual values of a transformer that you may have on the bench and then transform those values into an LTSpice asc file.

About 7 minutes in from the start, it shows the method.

Also, it covers the general design of transformers
E

Excellent video! Thanks E.

One last question. If I hover over the schematic, none of the voltages or currents are displayed.
Why is that?

M
 
Last edited:

Ian0

Joined Aug 7, 2020
13,097
Measuring the inductance with an inductance meter doesn’t give anywhere near the right value. For instance, the 1100VA transformer which had a magnetisation current of 400mA at 240V had a measured inductance about a factor of 10 too low.
I was taught to measure leakage inductance by shorting out the secondary and adjusting the primary voltage with a variable so that the normal working current flows. At that point the leakage inductance can be derived from the primary voltage.

Putting a power analyser on the transformer primary with the secondary open circuit will give a power factor of almost but not quite zero (φ ≈ 90°) If you obtain the exact phase of the current, you can also calculate the resistive component of the magnetisation current, which is due to the core loss, and add that as a resistance in parallel to the magnetisation inductance.
 
Top