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:
designstr, optional

Name of the design from which export the spice model or the full path to a touchstone file. The default is None in which case active design is be used.

setupstr, optional

Name of the setup if an existing design name is provided. The default is None in which case the nominal sweep is used.

is_solution_filebool, optional

Whether it is an imported touchstone file. The default is False which means that spice is generated from design.

filenamestr or pathlib.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: .sp for HSpice, .sss for nexxim state space, .cir for spectre and .lib for 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.

impedancefloat, optional

Impedance value if renormalize=True. The default is 50.

errorfloat, optional

Fitting error. The default is 0.5.

polesint, optional

Number of fitting poles. The default is 10000.

column_fitting_typeint, optional

Column fitting type. Default is 0 for Entire Matrix. Values are 1 for 1 column at time or 2 for 1 entry at time.

ss_fitting_algorithmint, optional

State space fitting algorithm. Default is 0 for AutoFast. Values are 1 for Vector Fast Fit, 2 for Vector TWA, 3 for Vector Iterated Rational Fit, 4 for Auto Accurate.

passivity_typeint, optional

Passivity type. Default is 0 for Iterated Fitting of passivity violation. Values are 1 for Convex optimization, 2 for passivity-by-perturbation and 3 for 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.

Returns:
str

Name of the HSpice file if the export is successful.

References

>>> oDesign.ExportFullWaveSpice