create_linear_step_sweep#

SetupHFSS.create_linear_step_sweep(unit='GHz', start_frequency=0.1, stop_frequency=2.0, step_size=0.05, name=None, save_fields=True, save_rad_fields=False, sweep_type='Discrete')#

Create a Sweep with a specified frequency step.

Parameters:
unitstr

Unit of the frequency. For example, "MHz or "GHz".

start_frequencyfloat, optional

Starting frequency of the sweep. The default is 0.1.

stop_frequencyfloat, optional

Stopping frequency of the sweep. The default is 2.0.

step_sizefloat, optional

Frequency size of the step. The default is 0.05.

namestr, optional

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

save_fieldsbool, optional

Whether to save the fields. The default is True.

save_rad_fieldsbool, optional

Whether to save the radiating fields. The default is False.

sweep_typestr, optional

Whether to create a "Discrete",``”Interpolating”`` or "Fast" sweep. The default is "Discrete".

Returns:
ansys.aedt.core.modules.solve_sweeps.SweepHFSS or bool

Sweep object if successful, False otherwise.

References

>>> oModule.InsertFrequencySweep

Examples

Create a setup named "LinearStepSetup" and use it in a linear step sweep named "LinearStepSweep".

>>> setup = hfss.create_setup("LinearStepSetup")
>>> linear_step_sweep = setup.create_linear_step_sweep(name="LinearStepSweep",
...                                                   unit="MHz", start_frequency=1.1e3,
...                                                   stop_frequency=1200.1, step_size=153.8)
>>> type(linear_step_sweep)
<class 'from ansys.aedt.core.modules.setup_templates.SweepHFSS'>