The overall simulated circuit, including connecting wires and a duty cycle control voltage source.

For the sake of simplicity and avoiding a non-convergence nightmare, the ground for this circuit is the perfect simulation ground (node 0). Some realism is sacrificed for this, of course, because the copper foil used as a ground plane in the actual circuit has non-zero impedance and that lumps of that impedance are present between leads of components ostensibly connected to "ground."

Note: There are two additional nodes in the circuit that will be examined and post-simulation analysis: 'amps_in' and 'amps_out'. These nodes are not included in my constructor arguments because those are passed on as-is to the Boost subcircuit. It doesn't matter what additional nodes are defined in my setup method and whether they are examined or not, because all nodes in an Include are considered "public."

There are two purposes of defining nodes in a constructor, or as a class attribute nodes, of an Include. The first is to pass them on to the setup method as arguments following the circuit-building tool f. That makes it convenient to define local variables in the method. See analysis.capacitance.FastChargeCap and analysis.capacitance.Initializer for examples.

The second purpose is to allow pingspice to check that all the predefined nodes are actually connected. An exception is raised if any node defined in the constructor or nodes class attribute are not connected in some way by the setup method. This is valuable because failure to do so can result in some Ngspice convergence problems that are very difficult to troubleshoot.

Class Variable L_out Parasitic inductance of output resistor (if present).
Instance Variable thermal A dict containing entries that define some temperatures, all in degrees C: 'ambient'; 'tca0-mosfet' (initital MOSFET case temp); 'tca0-diode' (initital diode case temp).
Instance Variable dc0 Starting duty cycle.
Instance Variable dc1 Ending duty cycle.
Instance Variable tt Transition time (seconds) from dc0 to dc1.
Instance Variable ti The time you should set aside for my initialization of MOSFET and diode case temperatures at the beginning of your TRAN simulation. (Read-only.)
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.
L_out =
Parasitic inductance of output resistor (if present).
thermal =
A dict containing entries that define some temperatures, all in degrees C: 'ambient'; 'tca0-mosfet' (initital MOSFET case temp); 'tca0-diode' (initital diode case temp).
dc0 =
Starting duty cycle.
dc1 =
Ending duty cycle.
tt =
Transition time (seconds) from dc0 to dc1.
ti =
The time you should set aside for my initialization of MOSFET and diode case temperatures at the beginning of your TRAN simulation. (Read-only.)
def setup(self, f, *nodes):

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.

API Documentation for pingspice, generated by pydoctor at 2021-09-18 08:41:11.