add_sweep#

SetupHFSS.add_sweep(name: str = None, sweep_type: str = 'Interpolating', **props) SweepHFSS | bool#

Add a sweep to the project.

Parameters:
namestr, optional

Name of the sweep. The default is None, in which case a name is automatically assigned.

sweep_typestr, optional

Type of the sweep. The default is "Interpolating".

**propsOptional context-dependent keyword arguments can be passed

to the sweep setup

Returns:
ansys.aedt.core.modules.solve_sweeps.SweepHFSS

Sweep object.

References

>>> oModule.InsertFrequencySweep

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> setup = hfss.create_setup()
>>> setup.add_sweep()