In Lumerical MODE EME, we can simulate the behaviour of devices with multi-mode ports, e.g., injecting both fundamental TE and fundamental TM (e.g., polarization splitter rotator), by choosing user select modes, then shift-selecting multiple modes.
We are wondering how one can achieve this in a script? Presently, we have a complete simulation that is scripted, except for the mode selection has to be done by hand for all the ports.
Same question for FDTD Ports.
Thank you
Lukas