sim_get_results
Read simulation results from an .sdf file to extract wave samples, min/max/first/last statistics, and AC magnitude/phase, filtered by analysis, wave, or run.
Instructions
Read a simulation's results: every wave, with sampled points.
Reads the .sdf that sim_run saved (the last one by default). Each wave comes with its unit, point count, min/max/first/last over every point, and up to max_points samples evenly spaced from first to last. An AC wave reports magnitude and phase in degrees against frequency. The sweep variable (time, frequency, the swept source) is marked independent.
Args: results_document: path of a .sdf; empty uses the last sim_run. analysis: one analysis by name ("Transient Analysis", "AC Analysis", "Operating Point", "DC Sweep", ...); empty returns all. waves: wave names to keep, e.g. ["v(out)", "i(v1)"]; empty keeps all. max_points: samples per wave; 0 returns statistics only. all_runs: a document run more than once holds every run; by default only the latest run of each analysis is returned.
Returns: Dict with results_document and analyses: a list of {analysis, waves: [...]}, or an error naming what is missing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waves | No | ||
| all_runs | No | ||
| analysis | No | ||
| max_points | No | ||
| results_document | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||