# Parametric Sweep tool

The simulation tools used to simulate 3D nanostructures (or metamaterials/metasurfaces) usually come with a built-in operation of parametric sweep (or simply sweep). A parametric sweep, as evident by its name, sweeps a particular parameter or a set of parameters to evaluate the results. A parametric sweep tool is probably the most important tool after the design of the nanostructure is complete. This tool saves time as it changes the different design dimensions and calculates the results by itself. A range of the parameter is provided with steps or the number of points that are needed to be evaluated in the given range. For example, if we need to change the length of a rectangle from 150 nm to 200 nm, and calculate the results with every 10 nm increase in length, we can run a sweep with a min length of 150 nm and a maximum length of 200 nm with 6 number of points. A depiction of this parametric sweep is shown with a rectangle in Fig. 1.

For the above mentioned sweep, the software will calculate the desired results results at 6 points from 150-200 nm with 10 nm interval.

## Uses of paramteric sweep

1. The sweep will save time of the user as it will automatically take the change the parameters and run the simulations against the desired results.
2. Sweeps can be used to optimize a structure. The design parameters of the structure are swept between minimum and maximum dimensions and those design dimensions can be selected that give the maximum of the desired results.
3. Another core aspect of the sweep is their ability to give phase of the electric field. Sweeps can be used to calculate the relative phase of transmitted/reflected electric field for the structure at one interval of a sweep to structure at another interval. For example given in Fig. 1, sweep can be employed to find the phase of transmitted/reflected electric field at 150 nm, 160 nm, 170 nm, 180 nm, 190 nm, and 200 nm. Without one point as a reference, some software cannot calculate phase.