get_sweep#

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

Return 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.SweepHFSS or
ansys.aedt.core.modules.solve_sweeps.SweepMatrix

Examples

>>> hfss = Hfss()
>>> setup = hfss.get_setup('Pyaedt_setup')
>>> sweep = setup.get_sweep('Sweep1')
>>> sweep.add_subrange("LinearCount",0,10,1,"Hz")
>>> sweep.add_subrange("LogScale",10,1E8,100,"Hz")