SimulationSetup#

class pyedb.grpc.database.simulation_setup.simulation_setup.SimulationSetup(pedb, core: ansys.edb.core.simulation_setup.simulation_setup.SimulationSetup)#

Overview#

cast

Cast a core SimulationSetup to PyEDB SimulationSetup.

add_sweep

Add a HFSS frequency sweep.

clear_sweeps

Clear all frequency sweeps from the simulation setup.

id

Unique ID of the EDB object.

is_null

Check if the simulation setup is null.

name

Get or set the name of the simulation setup.

position

Get or set the position of the simulation setup.

sweep_data

Get the sweep data associated with the simulation setup.

setup_type

Get the type of the simulation setup.

Import detail#

from pyedb.grpc.database.simulation_setup.simulation_setup import SimulationSetup

Property detail#

property SimulationSetup.id: int#

Unique ID of the EDB object.

Returns:
int

Simulation setup ID.

property SimulationSetup.is_null: bool#

Check if the simulation setup is null.

Returns:
bool

True if the simulation setup is null, False otherwise.

property SimulationSetup.name: str#

Get or set the name of the simulation setup.

Returns:
str

Simulation setup name.

property SimulationSetup.position: int#

Get or set the position of the simulation setup.

Returns:
int

Simulation setup position.

property SimulationSetup.sweep_data: list[pyedb.grpc.database.simulation_setup.sweep_data.SweepData]#

Get the sweep data associated with the simulation setup.

Returns:
list[SweepData]

List of sweep data objects.

property SimulationSetup.setup_type: str#

Get the type of the simulation setup.

Returns:
str

Simulation setup type.

Attribute detail#

SimulationSetup.core#

Method detail#

SimulationSetup.cast()#

Cast a core SimulationSetup to PyEDB SimulationSetup.

SimulationSetup.add_sweep(name=None, distribution='linear', start_freq='0GHz', stop_freq='20GHz', step='10MHz', discrete=False, frequency_set=None) pyedb.grpc.database.simulation_setup.sweep_data.SweepData | None#

Add a HFSS frequency sweep.

This method was refactored to reduce complexity. The behaviour is compatible with the previous implementation: it accepts either a legacy frequency_set or single-sweep parameters.

Returns:
SweepData | None

The newly added sweep when single sweep parameters are used, or None when frequency_set is provided (legacy multi-sweep behavior).

SimulationSetup.clear_sweeps()#

Clear all frequency sweeps from the simulation setup.