export_fullwave_spice#
- Circuit.export_fullwave_spice(design: str | None = None, setup: str | None = None, is_solution_file: bool | None = False, filename: str | None = None, passivity: bool | None = False, causality: bool | None = False, renormalize: bool | None = False, impedance: int | None = 50, error: float | None = 0.5, poles: int | None = 10000, column_fitting_type: int | None = 0, ss_fitting_algorithm: int | None = 0, passivity_type: int | None = 0, common_ground: bool | None = False, relative_error_tolerance: bool | None = False, ensure_accurate_zfit: bool | None = False) str#
Export a full wave HSpice file using NDE.
- Parameters:
- design
str,optional Name of the design from which export the spice model or the full path to a touchstone file. The default is
Nonein which case active design is be used.- setup
str,optional Name of the setup if an existing design name is provided. The default is
Nonein which case the nominal sweep is used.- is_solution_filebool,
optional Whether it is an imported touchstone file. The default is
Falsewhich means that spice is generated from design.- filename
strorpathlib.Path,optional Full path and name for exporting the output file. The default is
None, in which case the file is exported to the working directory. File extensions can be:.spfor HSpice,.sssfor nexxim state space,.cirfor spectre and.libfor pspice. If no file name is provided then HSpice is used.- passivitybool,
optional Whether to compute the passivity. The default is
False.- causalitybool,
optional Whether to compute the causality. The default is
False.- renormalizebool,
optional Whether to renormalize the S-matrix to a specific port impedance. The default is
False.- impedance
float,optional Impedance value if
renormalize=True. The default is50.- error
float,optional Fitting error. The default is
0.5.- poles
int,optional Number of fitting poles. The default is
10000.- column_fitting_type
int,optional Column fitting type. Default is
0for Entire Matrix. Values are1for 1 column at time or2for 1 entry at time.- ss_fitting_algorithm
int,optional State space fitting algorithm. Default is
0for AutoFast. Values are1for Vector Fast Fit,2for Vector TWA,3for Vector Iterated Rational Fit,4for Auto Accurate.- passivity_type
int,optional Passivity type. Default is
0for Iterated Fitting of passivity violation. Values are1for Convex optimization,2for passivity-by-perturbation and3for iterated fitting for low frequency.- common_groundbool,
optional Whether to use common ground for all ports. The default is
False.- relative_error_tolerancebool,
optional Whether to use relative error tolerance instead of absolute error. The default is
False.- ensure_accurate_zfitbool,
optional Whether to ensure accurate Z fit. The default is
False.
- design
- Returns:
strName of the HSpice file if the export is successful.
References
>>> oDesign.ExportFullWaveSpice