pingspice.lib.passive.Lsi(Include)
class documentation
Part of pingspice.lib.passive
(View In Hierarchy)
Simulation-friendly Inductor, as an included chunk of netlist.
Note: This is included for explanatory purposes, but you can just
specify a ts keyword in a f.L
call to do the same thing
much more easily.
I have a small amount of parallel capacitance added, just enough to limit unit voltage rise time to simulation step time ts if there is a discontinuous change in current. I also have just enough parallel resistance added to keep LC at critical damping, so there isn't any ringing.
You use me something like this:
... Lsi(f, 1, 2, ts=10E-9, L=1E-6) f.R(2, 0, 1E3) Lsi(f, 2, 3, ts=10E-9, L=1.5E-6) f.R(3, 0, 2E3) ...
You can't alter subcircuit parameters, so this is used for analysis.param.ParameterFinder
setups instead of Lss
. Also, it
produces less netlist lines and recursion for just one device instance.
Method | setup | Included circuit definition. |
Inherited from NodeStuff (via Include):
Instance Variable | shunts | A dict of current sensing V elements with the pairs of nodes they connect. |
Class Variable | debug | A Bag that gets set
True for all instances to log info about each setup
call. |
Class Method | autoName | Undocumented |
Method | setupResults | Undocumented |
Method | fill | Undocumented |
Method | nodeCheck | Call with the circuit building tool f and a sequence of
nodes provided to this Include or
Subcircuit . |
Method | rawNetlist | Get lines of a raw netlist from a search hierarchy of possible sources. |
Method | shunt | Call to insert a current-measuring shunt and add an entry to my Elements
baton's dict of shunts. |
Method | raw | See Elements.raw . |
Method | iNode | See Elements.iNode . |
Method | ground | See Elements.ground . |
Method | sca | See Elements.sca . |
Method | sca6 | See Elements.sca6 . |
Class Method | _libDir | Undocumented |
Method | _strippedLines | Undocumented |
Method | _call_setup | Calls my setup
method (almost always your override of that method, actually) and processes
any return value. |
Inherited from NodeStuff (via Include):
Instance Variable | shunts | A dict of current sensing V elements with the pairs of nodes they connect. |
Class Variable | debug | A Bag that gets set
True for all instances to log info about each setup
call. |
Class Method | autoName | Undocumented |
Method | setupResults | Undocumented |
Method | fill | Undocumented |
Method | nodeCheck | Call with the circuit building tool f and a sequence of
nodes provided to this Include or
Subcircuit . |
Method | rawNetlist | Get lines of a raw netlist from a search hierarchy of possible sources. |
Method | shunt | Call to insert a current-measuring shunt and add an entry to my Elements
baton's dict of shunts. |
Method | raw | See Elements.raw . |
Method | iNode | See Elements.iNode . |
Method | ground | See Elements.ground . |
Method | sca | See Elements.sca . |
Method | sca6 | See Elements.sca6 . |
Class Method | _libDir | Undocumented |
Method | _strippedLines | Undocumented |
Method | _call_setup | Calls my setup
method (almost always your override of that method, actually) and processes
any return value. |
Included circuit definition.
Override this to define your own method for constructing part of a
netlist, using the Elements
object provided as f. Why use f? Because it's short and a
conveniently typed letter on the keyboard.
As with Subcircuit.setup
,
your override method can return a dict of attribute names and values to set
in my instance.