caphe.run

caphe.run(spice_netlist, debug=False, progress_bar=False, verbose=False)

Executes a circuit simulation based on a parsed SPICE netlist.

This function extracts simulation parameters (such as temperature and wavelength sweep ranges) from the netlist’s analysis section, and computes the S-matrix using the Caphe circuit solver.

Parameters:
spice_netlistSpiceNetlist

The parsed SPICE netlist object containing models, subcircuits, and simulation commands.

debugboolean, optional

When True, run all models in Python mode. That means they are run in pure Python, allowing you to debug your model more easily.

progress_barbool, optional

Whether to display a progress bar during simulation. Defaults to False.

verbose: boolean, optional

Whether or not to display information about the simulated circuit. Defaults to False.

Returns:
SMatrix1DSweep

An object containing the simulated S-matrix data, sweep parameter values (wavelengths), and port mapping information.