SimulationSetup#
- class pyedb.grpc.database.simulation_setup.simulation_setup.SimulationSetup(pedb, core: ansys.edb.core.simulation_setup.simulation_setup.SimulationSetup)#
Overview#
Cast a core SimulationSetup to PyEDB SimulationSetup. |
|
Add a HFSS frequency sweep. |
|
Clear all frequency sweeps from the simulation setup. |
Unique ID of the EDB object. |
|
Check if the simulation setup is null. |
|
Get or set the name of the simulation setup. |
|
Get or set the position of the simulation setup. |
|
Get the sweep data associated with the simulation setup. |
|
Get the type of the simulation setup. |
Import detail#
from pyedb.grpc.database.simulation_setup.simulation_setup import SimulationSetup
Property detail#
- 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:
strSimulation setup name.
- property SimulationSetup.position: int#
Get or set the position of the simulation setup.
- Returns:
intSimulation 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.
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|NoneThe 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.