get_sweep#
- Setup3DLayout.get_sweep(sweepname=None)[source]#
Return frequency sweep object of a given sweep.
- Parameters:
- sweepname
str
,optional
Name of the sweep. the default is
None
which returns the first sweep.
- sweepname
- Returns:
Examples
>>> h3d = Hfss3dLayout() >>> setup = h3d.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")