CfgSetupAC#

class pyedb.configuration.cfg_setup.CfgSetupAC(/, **data: Any)#

Bases: CfgSetupDC

Base class for AC-style setup payloads with frequency sweeps.

Overview#

append_frequency_sweep

Append a pre-built frequency sweep to this setup.

add_frequency_sweep

Create a frequency sweep and append it to this setup.

Import detail#

from pyedb.configuration.cfg_setup import CfgSetupAC

Attribute detail#

CfgSetupAC.freq_sweep: list[CfgSetupAC.CfgFrequencySweep] | None#

Method detail#

CfgSetupAC.append_frequency_sweep(sweep: CfgFrequencySweep)#

Append a pre-built frequency sweep to this setup.

Parameters:
sweepCfgFrequencySweep

Fully constructed sweep object (e.g. when round-tripping).

Returns:
CfgFrequencySweep

The appended sweep.

CfgSetupAC.add_frequency_sweep(name: str, sweep_type: str = 'interpolation', start=None, stop=None, step_or_count=None, distribution: str = 'linear_count', **kwargs)#

Create a frequency sweep and append it to this setup.

Parameters:
namestr

Sweep name. For backward compatibility a pre-built CfgFrequencySweep is still accepted and forwarded to append_frequency_sweep().

sweep_typestr, optional

"interpolation" (default) or "discrete".

startstr or float, optional

Inline range start frequency, e.g. "1GHz". When given, stop and step_or_count are also required.

stopstr or float, optional

Inline range stop frequency.

step_or_countstr, float or int, optional

Point count ("linear_count", "log_count") or step size ("linear_scale", "log_scale").

distributionstr, optional

Inline range distribution. Default is "linear_count". Aliases such as "log count" or "logcount" are accepted; "single" adds one point at start.

**kwargs

Forwarded to CfgFrequencySweep, e.g. enforce_passivity.

Returns:
CfgFrequencySweep

The newly created sweep.

Examples

>>> hfss.add_frequency_sweep("s1", start="1GHz", stop="20GHz", step_or_count=100)
>>> sw = hfss.add_frequency_sweep("s2")
>>> sw.add_linear_count_frequencies("1GHz", "10GHz", 100)

Classes#

CfgFrequencySweep

Base Pydantic model used by typed configuration payload classes.