For saturation, you might start with something like this:
- Saturable Core Model, copied from:
- _SPICE Models For Power Electronics_, Meares and Hymowitz.
- .SUBCKT INDSAT 1 2 PARAMS: VSEC=1e-4 LMAG=1e-5 LSAT=1e-7 FEDDY=1e6 F1 1 2 VM1 1 G2 2 3 1 2 1 E1 4 2 3 2 1 VM1 4 5 0 RX 3 2 1E12 CB 3 2 {VSEC/500} IC=0 RB 5 2 {LMAG*500/VSEC} RS 5 6 {LSAT*500/VSEC} VP 7 2 250 VN 2 8 250 D1 6 7 DCLAMP D2 8 6 DCLAMP .MODEL DCLAMP D(CJO={3*VSEC/(6.28*FEDDY*500*LMAG)} VJ=25) .ENDS
It might be reasonable to add some sort of current steering function to the input, so that it has hysteresis.
Typical usage of this model is: specify the PARAMS as for one winding of a transformer, then build the rest of the transformer using ideal transformers and leakage inductors.
Playing funny business with the core geometry (orthogonal loops of core, CM/diff winding arrangements) might be possible using two of these and appropriate coupling, or may need additional modeling, I'm not sure.
Tim
--
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: http://seventransistorlabs.com
"Piotr Wyderski" wrote in message news:n2uksv$l4$1@node2.news.atman.pl...
Jim Thompson wrote:
> "VControlledCap.zip" on that same page may give you further
> information on how to make a voltage-controlled inductor.
Thank you. It doesn't solve my problem, but at least I know where
to start. In the case of a resistor it is very simple, but the
solution does not apply to the remaining passive components. Why
is it so damn hard?
My goal is to simulate magamps in the far future, but after
the initial experience with the saturable core reactor I am
not even sure that LTSpice is the correct tool. Do you know
of something better suited for this task and still free, as
it is pure hobby?
Best regard, Piotr