How do I define a voltage (or current)-dependent inductor in LTSpice? In the case of a resistor I simply write R=100*V(Vkey), but the simulator refuses to accept L=... I don't care about hysteresis, pure reactance is all I want to simulate now. The non-linear effects need to wait.
Bets regards, Piotr
Didn't find your answer? Ask the community — no account required.
J
Jim Thompson
See "Inductor_with_Saturation.zip" on the Device Models & Subcircuits page of my website for the basics of making a variable inductor. This particular model is current dependent but can be adapted to voltage control. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
J
Jim Thompson
"VControlledCap.zip" on that same page may give you further information on how to make a voltage-controlled inductor. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
P
Piotr Wyderski
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
O
o pere o
An inductor gives v=L*di/dt. Now, I suppose you want a box where the proportionality constant is L=L(Vc).
*---i->--| | + | | v |BOX| - | |
*--------| |
The idea is as follows:
Create a circuit where V1=1*di/dt. This means, measure i, copy it with a CCCS to another place, feed it to an 1H inductor and measure the voltage V1 across its terminals.
Copy this voltage to the box port with a VCVS with the desired gain: V= (Ao*Vc+A1*Vc^2+...)*V1 (Assuming a polynomial is ok for you, a POLY statement is the way to go)
You may apply this creatively!
Pere
J
Jim Thompson
That's only because Mike Engelhardt made a special resistor model in LTspice that performs that function.
It's not. "o pere o" is sort of on the right track (Message-ID: )...
Stack an inductor and a voltage-controlled voltage source which has two inputs: the voltage across the inductor and a control input such that the output is K*V(L). Thus acts as an inductor of value (K+1)*L
I'll post a model to my website later today.
...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
J
Jim Thompson
See "VoltageControlledInductor.pdf" on the Device Models & Subcircuits page of my website. ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
J
Jim Thompson
Oooops! Left off 2*pi :-( ...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
T
Tim Williams
For saturation, you might start with something like this:
Saturable Core Model, copied from:
_SPICE Models For Power Electronics_, Meares and Hymowitz.
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
J
Jim Thompson
See... "Inductor_with_Saturation.zip" on the Device Models & Subcircuits page of my website. Highly accurate and easy to fit to measured data. I developed that model a few years ago when I encountered such a beast being used as a spacing sensor for a heavy truck clutch ;-)
So far modeling the hysteresis has evaded me.
...Jim Thompson
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
P
Piotr Wyderski
Jim and all, thank you very much for your help!
Best regards, Piotr
J
Jim Thompson
You are quite welcome! ...Jim Thompson
-- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at
formatting link
| 1962 | I love to cook with wine. Sometimes I even put it in the food.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.