create_linear_count_sweep#

Hfss3dLayout.create_linear_count_sweep(setup, unit, start_frequency, stop_frequency, num_of_freq_points, name=None, save_fields=True, save_rad_fields_only=False, sweep_type='Interpolating', interpolation_tol_percent=0.5, interpolation_max_solutions=250, use_q3d_for_dc=False)#

Create a sweep with the specified number of points.

Parameters:
setupstr

Name of the setup to attach to the sweep.

unitstr

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

start_frequencyfloat

Starting frequency of the sweep.

stop_frequencyfloat

Stopping frequency of the sweep.

num_of_freq_pointsint

Number of frequency points in the range.

namestr, optional

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

save_fieldsbool, optional

Whether to save fields for a discrete sweep only. The default is True.

save_rad_fields_onlybool, optional

Whether to save only radiated fields if save_fields=True. The default is False.

sweep_typestr, optional

Type of the sweep. Options are "Fast", "Interpolating", and "Discrete". The default is "Interpolating".

interpolation_tol_percentfloat, optional

Error tolerance threshold for the interpolation process. The default is 0.5.

interpolation_max_solutionsint, optional

Maximum number of solutions to evaluate for the interpolation process. The default is 250.

use_q3d_for_dcbool, optional

Whether to use Q3D to solve the DC point. The default is False.

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

Sweep object if successful, False otherwise.

References

>>> oModule.AddSweep