set_export_touchstone#
- Hfss3dLayout.set_export_touchstone(file_format: str | None = 'TouchStone1.0', enforce_passivity: bool | None = True, enforce_causality: bool | None = False, use_common_ground: bool | None = True, show_gamma_comments: bool | None = True, renormalize: bool | None = False, impedance: float | None = 50.0, fitting_error: float | None = 0.5, maximum_poles: int | None = 1000, passivity_type: str | None = 'PassivityByPerturbation', column_fitting_type: str | None = 'Matrix', state_space_fitting: str | None = 'IterativeRational', relative_error_tolerance: bool | None = True, ensure_accurate_fit: bool | None = False, touchstone_output: str | None = 'MA', units: str | None = 'GHz', precision: int | None = 11) bool#
Set or disable the automatic export of the touchstone file after completing frequency sweep.
- Parameters:
- file_format
str,optional Touchstone format. Available options are:
"TouchStone1.0", and"TouchStone2.0". The default is"TouchStone1.0".- enforce_passivitybool,
optional Enforce passivity. The default is
True.- enforce_causalitybool,
optional Enforce causality. The default is
False.- use_common_groundbool,
optional Use common ground. The default is
True.- show_gamma_commentsbool,
optional Show gamma comments. The default is
True.- renormalizebool,
optional Renormalize. The default is
False.- impedance
float,optional Impedance in ohms. The default is
50.0.- fitting_error
float,optional Fitting error. The default is
0.5.- maximum_poles
int,optional Maximum number of poles. The default is
10000.- passivity_type
str,optional Passivity type. Available options are:
"PassivityByPerturbation","IteratedFittingOfPV","IteratedFittingOfPVLF", and"ConvexOptimization".- column_fitting_type
str,optional Column fitting type. Available options are:
"Matrix", “Column”`, and “Entry”`.- state_space_fitting
str,optional State space fitting algorithm. Available options are:
"IterativeRational", “TWA”`, and “FastFit”`.- relative_error_tolerancebool,
optional Relative error tolerance. The default is
True.- ensure_accurate_fitbool,
optional Ensure accurate impedance fit. The default is
False.- touchstone_output
str,optional Touchstone output format. Available options are:
"MA"for magnitude and phase indeg,"RI"for real and imaginary part, and"DB"for magnitude indBand phase indeg.- units
str,optional Frequency units. The default is
"GHz".- precision
int,optional Touchstone precision. The default is
11.
- file_format
- Returns:
- bool
Truewhen successful,Falsewhen failed.
References
>>> oTool.SetExportTouchstoneOptions
Examples
>>> from ansys.aedt.core import Hfss3dlayout >>> layout = Hfss3dlayout() >>> layout.export_touchstone_on_completion() >>> layout.export_touchstone_on_completion()