pingspice.examples.boost.Switching(Sim)
class documentation
Part of pingspice.examples.boost
(View In Hierarchy)
I run a warmed-up switching simulation for a switchmode boost converter.
Class Variable | timeWarp | The thermal timewarp. |
Method | setup | You can implement this in your subclass to do setup stuff before I call my tran object. |
Method | plot | You must implement this in your subclass to plot results. |
Inherited from Sim:
Class Variable | Nc | The number of columns in the Matplotlib Figure that shows
results. |
Class Variable | Nr | The number of rows in the Matplotlib Figure that shows
results. |
Class Variable | fastWarmup | Set True to use an initial fast warmup. |
Class Variable | N_ts | Set > 1 if convergence problems; that will increase circuit ts vs that of TRAN timestep |
Instance Variable | M | Set to a multiple of 1 to do decimation on the output, i.e., have internal Ngspice timestep be that multiple of the nominal time between samples produced. |
Instance Variable | name | The name to use for my circuit. |
Instance Variable | names | A list of Ngspice result vector names to obtain. |
Instance Variable | t0 | The time to start obtaining simulation results. |
Instance Variable | t1 | The end time for the simulation. |
Class Method | setArgs | All instances will share the same command-line args, analysis Config object
cfg, SwitchmodeTools
object smct, and CircuitBuilder
object cb. |
Method | __init__ | Sim() |
Method | dutyCycles | Property: Start and end duty cycle, as floats from 0-1. |
Method | tranArgs | Property: A list with the arguments to the TRAN instance call
that follow the reference to an NgspiceRunner
instance. |
Method | vectorsFile | Property: The name of an .npz file for saving or loading a
transient analysis with my name. |
Method | tran | Performs a transient analysis from my time t0 to time t1. |
Method | __call__ | Call an instance of a subclass of me to run a transient simulation, plot
the results as defined by your plot method,
and return the (deferred) Vectors_Ngspice
object. |
def
setup(self):
overrides pingspice.examples.boost.Sim.setup
You can implement this in your subclass to do setup stuff before I call my tran object.
def
plot(self, rp):
overrides pingspice.examples.boost.Sim.plot
You must implement this in your subclass to plot results.