Electronic – LTSpice – Inductance simulation

inductanceltspice

Welcome back on this subject :

I would like to simulate an inductance which varies linearly in function of the current which flows through it. Suppose :
$$L(t) = I_{L}(t)$$
In the simulation for simplicity I used a current source which has a slope of current equal to :
$$\frac{dI_{L}(t)}{dt} = 1$$
So :
$$U_{L}(t) = L(t)\frac{dI_{L}(t)}{dt} = L(t) = I_{L}(t)$$

Finally the expression of the Flux for L should be :
$$Flux(t) = x^2/2$$

Refere to this link for the expression of the flux : LTspice – Simulation of a variable inductance

So here is the simulation :
enter image description here

And here are the result :
enter image description here

What is weird to me is that I have to add a minus sign in the expression of the flux of the inductance. Why ?

Thank you very much.

Best Answer

Inductors have phase in LTspice. If you rotate the inductor 180°, you will no longer need to multiply by -1.

It can also be helpful to use the inductor symbol with a phasing dot. Here is the correct orientation that will remove the need for multiplying by -1:

enter image description here