Ansys Learning Forum Forums Discuss Simulation Photonics Python to lumerical optimization FOM script Reply To: Python to lumerical optimization FOM script

anna.wirth-singh
Ansys Employee

Hello,

There are currently two types of FoM supported by lumopt - one is a mode monitor, and the other is a Field Region monitor. Is your grating structure coupling into a waveguide? If so, it would probably be easiest to use the mode type FoM to optimize the efficiency of your grating. This example is a good starting point for that:

Inverse Design of Grating Coupler (2D) – Ansys Optics

Inverse design of grating coupler (3D) – Ansys Optics

It is probably most straightforward to start with one of these examples and try to adapt it to your application if possible. This waveguide crossing example is also helpful: Inverse design of waveguide crossing – Ansys Optics

If you are not using your grating to couple into a waveguide, then you might be able to use the more general Field Region FoM. Here is an example using that one: Inverse Design of Metasurface Color Router – Ansys Optics

I hope these resources will get you started; please feel free to reply back if you have further questions.

 

Best,

Anna