11.1.12.16. Simulator

class PySpice.Spice.Simulator.Simulator[source]

Bases: object

Base class to implement a simulator.

DEFAULT_SIMULATOR = 'ngspice-shared'

Define the default simulator

SIMULATOR = None
SIMULATORS = ('ngspice', 'ngspice-shared', 'ngspice-subprocess', 'xyce', 'xyce-serial', 'xyce-parallel')
customise(simulation)[source]

Customise the simulation

classmethod factory(*args, **kwargs)[source]

Factory to instantiate a simulator.

By default, it instantiates the simulator defined in DEFAULT_SIMULATOR, however you can set the simulator using the simulator parameter.

Available simulators are:

  • ngspice alias for shared

  • ngspice-shared DEFAULT

  • ngspice-subprocess

  • xyce alias for serial

  • xyce-serial

  • xyce-parallel

Return a PySpice.Spice.Simulator subclass.

run(simulation)[source]

Run the simulation and return the waveforms.

simulation(circuit, **kwargs)[source]

Create a new simulation for the circuit.

Return a PySpice.Spice.Simulation instance`