Tutorial, Part 2
Does two AC simulations on a single-stage passive RLC lowpass filter using an object-oriented approach. The generated netlist is written to a string instead of a file and re-used for each AC analysis.
Function | analyze | Undocumented |
Class | RLC | I represent an RLC circuit. My make method
defines it, using the baton (an instance of elements.Elements )
that gets passed from a context call to a netlist.Netlist
instance. |
Class | Runner | I run an Ngspice Analysis, constructing a netlist and Plotter. My run
method does an analysis and plots the results. |