Sweep Settings
  • Sweep

Sweep Settings

This section describes the settings related to parameter sweeps.

Parameter sweeps are typically used to determine the impact of specific parameters on simulation results, which facilitates the identification of optimal parameter solutions or critical structural parameters, aligning with the desired objectives. During the sweep process, the software runs simulations based on the target values specified in a parameter sweep and finally saves the project files and results generated from each simulation. Users are allowed to view all result data after the sweep process is completed and select the best values according to their specific needs. With the help of pre-processing and post-processing scripts, the software enables more complex parameter sweeps during model creation.

Sweep Settings

To add a parameter sweep, you can switch from the Objects tree to the Optimizations and sweeps, right-click a blank area on the page, and select Create new parameter sweep. After addition, right-click on the added sweep and select Edit to enter the editing interface, where specific settings can be configured as follows:

General Settings

The General tab allows users to define the name for a sweep. Note that multiple sweeps with the same name are forbidden under a single project.

Name Description
Name Define the name for a sweep.

Simulation Method

The Simulation method tab displays the solver currently in active.

Name Description
Active solver Display the solver that is currently active.

Computing Resources

The Resources tab is used to configure computing resources, and allows users to select optimal computing resources for sweeps based on their computer specifications.

Name Description
Maximum simulation threads of parallel The maximum number of threads for parallel execution, which is used to set the number of simulation models that can run simultaneously.

Parameters

The Parameters tab allows users to set the sweep parameter table. Please note that when setting up a non-nested parameter sweep, multiple parameters added simultaneously must have the same number of sample points.

Name Description
Parameters type Ranges: The sweep range is defined from the start value to the stop value, and all sweep values within the sweep range are linearly spaced. Values: The user is allowed to define each sweep point, and the sweep values within the sweep range can be non-linear.
Number of points Set the number of data points for a specific parameter in the current sweep.
Name The user-defined name for a sweep parameter.
Parameters Select the parameters to be swept.
Type The type of the selected parameter.
Start/Stop When Ranges is selected as Parameters type, set initial value of the parameter range.
Value_1, Value_2, ... When Values is selected as Parameters type, set each parameter value.
Units Set a unit for any parameter type with a unit.
Add Add a parameter.
Remove Remove a parameter.

Results

The Results tab allows users to set the attributes associated with results.

Name Description
Name Define the name of a result.
Result The swept result.
Vector operation Post-process the result (e.g., summing and averaging).
Add Add a result.
Remove Remove a result.

Run Sweep

To run a parameter sweep, you need to right-click the added sweep and click Run.

View Results

After the sweep process is completed, you can right-click the finished sweep and click Data visualizer to view the sweep results.

Case: Bandstructure of 2D Square Lattice

Photonic Crystal (PC) is a dielectric structure with a periodic variation in its permittivity. This periodic variation prevents light at specific frequencies from propagating in the PC to form a photonic band-gap. In this case, a sweep for different Bloch wave vectors has been performed in order to obtain the mode that lasts stably under each wave vector. For details, see Band Analysis.