run_transient
Inject a .tran command into a copy of a SPICE netlist to run a transient simulation. Save time and voltage data to a .npz file.
Instructions
Run a transient simulation on a SPICE netlist.
Injects a .tran <step_time> <stop_time> <start_time> command into a
temporary copy of the netlist (does not modify the original).
Results are saved to a .npz file next to the netlist. Load with: data = np.load('netlist_tran.npz') time = data['time_s'] vout = data['v(out)']
For sweeping a component value or parameter across multiple transient runs in parallel, use run_sweep(analysis_cmd=".tran step stop") instead.
Args: netlist_path: Absolute path to the netlist file step_time: Time step with SPICE suffix, e.g. "1n", "10u", "1m" stop_time: Simulation end time, e.g. "1m", "100u" start_time: Time at which to start saving data (default "0")
Returns: JSON summary with data_file path, time range, and trace names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netlist_path | Yes | ||
| step_time | Yes | ||
| stop_time | Yes | ||
| start_time | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |