Ansys Learning Forum Forums Discuss Simulation Photonics Lumerical help, dielectric slab waveguide Reply To: Lumerical help, dielectric slab waveguide

Amrita Pati
Ansys Employee

Hi Marton,

I think the change in RIs are not being taken to account in the parameter sweep. I will ask you to add two parameters to the strcture group (let's call them index and index2), which will be the RIs of layer_2 and layer_4. Note that their "Type" is "Number". Then in the "Script" tab of the structure group, add the following lines of code:

setnamed("layer_2","index",index1);
setnamed("layer_4","index",index2);

 

Then go to the Parameter sweep and add index1 and index2 as the parameters of the sweep. The screenshots of the three steps are below:

 

Let me know if this doesn't help.

 

Regards,
Amrita