How can I set the variation to check cavity properties using Stack Solver script?
I check the Purcell factor and Purcell density in cavity structure (A bottom mirror is PEC, a top mirror is Ag - CRC material, and spacers are Air) using Stack Solver. From that simulation, a dipole source exists between 2 and 3 layers.
I want to know the Purcell Factors varying with a thickness of layer number 2 (10 - 50 nm).
For simulating, I modified the script from https://support.lumerical.com/hc/en-us/articles/360034926513-stackpurcell-Script-command. - stackpurcell-Script command
An original script set thicknesses of layers matrix (8-13 lines) so that I can't handle the thickness of the second layer as a variation. Is there another way to set multilayer geometry as a variable?
Looking forward to your reply and help!