create_single_point_sweep#

SetupQ3D.create_single_point_sweep(unit='GHz', freq=1.0, name=None, save_single_field=True, save_fields=False)[source]#

Create a sweep with a single frequency point.

Parameters:
unitstr, optional

Unit of the frequency. The default is "GHz".

freqfloat, list, optional

One or more frequencies for creating distinct single points. The default is 1.0.

namestr, optional

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

save_single_fieldbool, list, optional

Whether to save the fields of the single point. The default is True. If a list is specified, the length must be the same as the frequency length.

save_fieldsbool, optional

Whether to save the fields for all points and subranges defined in the sweep. The default is False.

Returns:
pyaedt.modules.SolveSweeps.SweepQ3D or bool

Sweep object if successful, False otherwise.

References

>>> oModule.InsertFrequencySweep

Examples

Create a setup named "SinglePointSetup" and use it in a single point sweep named "SinglePointSweep". >>> from pyaedt import Q3d >>> q3d = Q3d() >>> setup = q3d.create_setup(“SinglePointSetup”) >>> single_point_sweep = setup.create_single_point_sweep( … name=”SinglePointSweep”, … unit=”MHz”, freq=1.1e3) >>> type(single_point_sweep) >>> q3d.release_desktop(True, True)