Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Optimization script writing › Reply To: Optimization script writing
Hi Afroditi,
Thank you very much for answering my question. My question is described in a detail in the figure below:
For example on the left, if I want have incidence including many wavelength such as three wavelength R, G, and B. I want to optimize the grating parameters to reach the following goal:
Â
When the light hits the grating, I hope all the energy of blue light can flow into its positive first diffraction order, at the same time, the red and green light will completely pass the grating without any energy loss, namely all the energy will flow to their 0th diffraction orders.
Â
How to write such an optimization scripts for that?
Â
Thank you very much and appreciated !
Â
Best,
Bailin