Ansys Learning Forum › Forums › Discuss Simulation › Photonics › app is crashing › Reply To: app is crashing
April 4, 2024 at 4:09 pm
ashish.singh
Subscriber
so here for example
 adddipole;
set("name", "SPE");Â
set("y", 0);
set("z", gold+ sio2 + gaas+ (inas / 2));Â
set("amplitude", 1);
set("theta", 90);
set("phi", 0);
set("center wavelength", cen_w);Â
set("wavelength span", w_span);Â
addtogroup("::model");Â
Â
cen_w is a variable at 1300nm but after running the script it comes around 1280nm. which significantly affects my model's cause of change in refractive index. also, could you give me an example of optimization where I can use my variables from the script for optimization?