Ansys Learning Forum › Forums › Discuss Simulation › Photonics › FDTD Lumerical question › Reply To: FDTD Lumerical question
March 1, 2023 at 6:53 am
Chrysovalantis Avraam
Subscriber
Hi to everyone.
I am trying to design a Bragg grating using only the script editor. I want to perform a parameter sweep for the grating period (also using a script).
The grating period is not listed in the objects list so to be able to perform the sweep.
The code below is incorrect. Can anyone help me with this? Thank you.
For example:
  Â
 Â
GratingPeriod=1e-6;Â Â Â Â Â Â Â Â Â Â Â Â Â
addsweep;
setsweep("sweep", "name", "gratperiod");
setsweep("gratperiod", "type", "Ranges");
addsweep("parameter","GratingPeriod");
Â
Â