create_linear_count_sweep#
- Hfss.create_linear_count_sweep(setup: str, unit: str, start_frequency: float, stop_frequency: float, num_of_freq_points: int | None = None, name: str | None = None, save_fields: bool = True, save_rad_fields: bool = False, sweep_type: str = 'Discrete', interpolation_tol: float = 0.5, interpolation_max_solutions: int = 250)#
Create a sweep with a specified number of points.
- Parameters:
- setup
str Name of the setup.
- unit
str Unit of the frequency. For example,
"MHz"or"GHz".- start_frequency
float Starting frequency of the sweep, such as
1.- stop_frequency
float Stopping frequency of the sweep.
- num_of_freq_points
int Number of frequency points in the range. The default is
401forsweep_type = "Interpolating". The defaults are “Fast”`` and5forsweep_type = ""Discrete".- name
str,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_type
str,optional Type of the sweep. Options are
"Fast","Interpolating", and"Discrete". The default is"Discrete".- interpolation_tol
float,optional Error tolerance threshold for the interpolation process. The default is
0.5.- interpolation_max_solutions
int,optional Maximum number of solutions evaluated for the interpolation process. The default is
250.
- setup
- Returns:
ansys.aedt.core.modules.solve_sweeps.SweepHFSSor boolSweep object if successful,
Falseotherwise.
References
>>> oModule.InsertFrequencySweep
Examples
Create a setup named
"LinearCountSetup"and use it in a linear count sweep named"LinearCountSweep".>>> setup = hfss.create_setup("LinearCountSetup") >>> linear_count_sweep = hfss.create_linear_count_sweep( ... setup="LinearCountSetup", ... sweep="LinearCountSweep", ... unit="MHz", ... start_frequency=1.1e3, ... stop_frequency=1200.1, ... num_of_freq_points=1658, ... ) >>> type(linear_count_sweep) <class 'from ansys.aedt.core.modules.setup_templates.SweepHFSS'>