Hi all

I have an inquiry regarding the evanescent waveguide coupler example: https://kb.lumerical.com/en/pic_passive_waveguide_couplers_evanescent.html

Here, one can export a JPEG of 100 repeated propagation image of E^2, intensity of E field using the script: waveguide_couplers.lsf

I am wondering how I can modify the script so that I can export TE mode propagation and TM mode propagation separately. It seems that the information is embedded in “mode1” but the current script compiles the E-intensity at default to iterate. Can I change this to Ey or Hy to iterate instead? So far, my attempt didn’t seem to make that change.

At the end, I get a JPEG image of 100-repeated propagation. I need to compare the coupling length of TE, TM mode to find the intersection point (coupling length) to make polarization-independent waveguide. Obviously, doing that over a picture isn’t as accurate as having line-curves. The output on lumerical currently only shows E_temp which is an individual component not the whole complied one. Can you recommend an example or script I can follow to take the final JPEG image to analyze on MATLAB?

I am relatively new to this, so any concrete help will be greatly appreciated.

Thank you