Overlap Calculations in MODE (code)



I would like to share my own code for calculationg the overlap matrix between differente modes (usefull for ploting effective index).

In the code OverlapCalculations.lsf (1.2 KB) I describe how this calculation is done and in SingleWaveguide2D.lsf (1.8 KB) there is a simple example of a 1D waveguide (MODE script).

*I prefer to use scripts for my own designs since it offers a quick back to default, in case we change too much.

Best regards.