create_discrete_sweep#

Q3d.create_discrete_sweep(setupname, freqstart, freqstop=None, freqstep=None, units='GHz', sweepname=None, savefields=False)[source]#

Create a discrete sweep with a single frequency value.

Parameters:
setupnamestr

Name of the setup that the sweeps belongs to.

freqstartfloat

Starting point for the discrete frequency.

freqstopfloat, optional

Stopping point for the discrete frequency. If None, a single-point sweep is performed.

freqstepfloat, optional

Step point for the discrete frequency. If None, 11 points are created.

unitsstr, optional

Units of the discrete frequency. For example, "MHz" or "GHz". The default is "GHz".

sweepnamestr, optional

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

savefieldsbool, optional

Whether to save fields. The default is False.

Returns:
SweepMatrix

Sweep option.

References

>>> oModule.InsertSweep