Ansys Learning Forum Forums Discuss Simulation Photonics How to do nested parameter sweep using lumerical script? Reply To: How to do nested parameter sweep using lumerical script?

Guilin Sun
Ansys Employee

If the source and the monitor are inside the analysis group, you should be able to find it through sweep utility:

Parameter sweep utility

However you will need to set parameters for them, eg the wavelength, or incident angle and use script to assign the parameters to them. Please refer to this example:

Metamaterial parameter extraction - Smith

However your script is to run it through script (you have "run", but not set the sweep yet).

Please refer the above links and modify your script significantly. You need to set up the sweep in the sweep utility.

When you sweep wavelength, make sure the simulation bandwidth is chosen in order to have the mesh and material fitting:

Make sure PML thickness (muber of layers multiplied by mesh size in front of PML) is proper to absorb light striking on it. 

Â