pingspice.analysis.capacitance.FastChargeCap(Include)
class documentation
Part of pingspice.analysis.capacitance
(View In Hierarchy)
A special capacitor that initially has its capacitance effectively cut into a fraction 1/faster so it can be fast-charged for an initial interval of tSwitch seconds:
+--------+ n1 --+---| C_fast |-----+--------------+------------+--------------- n2 | +--------+ | | | | | | | ...|..................|..............|............|............... | | | | | +--------+ | | | | C_norm | | | Lower part | +--------+ | +----+ | only included | | +-->| -|x--+ if faster > 1 | +----+ | +----+ | E | +--| S0 |--- n3 ---+---| S1 |-- n4 --<| +|x--+ | +----+ +----+ +----+ | | x x | | | | | +----|-------------------|---------------------+ | | n5 (1-0-1) n6 (0-1-0)
Construct with two nodes, which are assigned local variables n1
and n2. in my setup
.
Switch S0 momentarily opens up, for tSwitch seconds, to keep C_norm from bogging down the charging of C_fast. During this initial interval, C_norm is supplied with as much current as needed (through switch S1, which momentarily closes during the interval) for its voltage to keep up with that across C_fast. There is an Ngspice limitation to how fast C_norm can be forced to tag along with C_fast, though: The minimum resistance of S1.
Instance Variable | C | The capacitance value. Can be an AV object. |
Instance Variable | faster | The ratio of how much faster the voltage increases if fivi is set. There is no default; if you don't need faster initial charging, you don't want to use me. If faster is equal to 1, only a capacitor (perhaps with V0) will be used. |
Instance Variable | tSwitch | The number of seconds in fast-charge mode before switching to regular mode. |
Instance Variable | t0 | The number of seconds to delay before beginning fast-charge mode (default is zero). |
Instance Variable | V0 | Set to an initial voltage to use the XSPICE capacitance model with an initial voltage. Fast-charging will start from there. |
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.