SPICE-Simulation using LTspice IV
SPICE-Simulation using LTspice IV
SPICE-Simulation using LTspice IV
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Now have a look at the following <strong>SPICE</strong> – Model, <strong>using</strong> the subcircuit „xformer_01“ with its connections<br />
1 / 2 / 3 / 4:<br />
(Lleak is the name for the flux leakage inductances which represent the part of the flux who does not run<br />
through both main inductances leaded by the magnetic core of the transformer. All other circuit elements<br />
correspond to the above diagram):<br />
*<br />
* [1] ---. ||<br />
* ) || .--- [3]<br />
* ) || (<br />
* ) || (<br />
* [2] ---. || .--- [4]<br />
*<br />
.SUBCKT xformer_01 1 2 3 4<br />
*<br />
** Primary<br />
Lleak1 1 20 1mH<br />
Lpri1 20 21 1H<br />
Rpri1 21 2 1<br />
Cpri1 1 2 20pF<br />
*<br />
* *Secondary<br />
Lleak3 3 22 1mH<br />
Lsec1 22 23 1H<br />
Rsec1 23 4 1<br />
Csec1 3 4 20pF<br />
K Lpri1 Lsec1 0.999<br />
.ENDS<br />
Explanation:<br />
Every line starts with the name of the part, followed by the numbers of the nodes between this part is inserted in<br />
the circuit. And at last you find the parts value.<br />
In praxis the magnetic coupling is always below „1“ (due to the flux leakage). So always insert a value smaller<br />
than 1 (here: k = 0.999). Some <strong>SPICE</strong> versions start a protest action if you don’t follow this advice.<br />
Primary and secondary winding use the same number of turns. So you have to enter the same inductance value<br />
to get a 1:1 - transformer.<br />
Note:<br />
The description of the circuit starts always with .SUBCKT …………… and ends with .ENDS<br />
================================================================================<br />
Very important:<br />
a) The finished model is named xformer_01.lib an should be saved in the folder<br />
Programs / LTC / <strong>LTspice</strong><strong>IV</strong> / lib / sub<br />
where all other LTC-<strong>SPICE</strong>-models are already located. Please pay attention to the correct path and the correct<br />
extension when saving this file...…<br />
b) It is impossible to enter the turn ratio! The only possibility is to enter different primary and secondary main<br />
inductances and we’ll handle this in the next project.<br />
================================================================================<br />
36