NgSpice Options Help

How do you use the simulation options in a simulation? For example how does one call up any of the options in chapter 15.1 of the NgSpice users guide.

Say I want to change the transient solver to METHOD=‘Gear’ how would I?

Figured it out, plus a few other examples

simulator = circuit.simulator(temperature=25, nominal_temperature=25)
simulator.initial_condition(node1=0.0)
simulator.options(reltol=1e-3)
simulator.options(‘method=gear’)
simulator.save([‘in’, ‘out’])

1 Like