get_sweep#

SetupQ3D.get_sweep(name=None)[source]#

Get the frequency sweep object of a given sweep.

Parameters:
namestr, optional

Name of the sweep. The default is None, in which case the first sweep is used.

Returns:
ansys.aedt.core.modules.solve_sweeps.SweepQ3D or
ansys.aedt.core.modules.solve_sweeps.SweepMatrix

Examples

>>> from ansys.aedt.core import Q3d
>>> q3d = Q3d()
>>> setup = q3d.create_setup()
>>> sweep = setup.create_frequency_sweep(name="Sweep1")
>>> sweep.add_subrange("LinearCount",0,10,1,"Hz")
>>> sweep.add_subrange("LogScale",10,1E8,100,"Hz")
>>> sweep = setup.get_sweep("Sweep1")
>>> q3d.release_desktop(True, True)