Automatically adjusting EME span
I am going through your Lumerical mode example on 1x2 MMI splitter. I would like to do parameter scan to extract the optimal MMI length. I noticed that when I change the MMI device length, the EME setup parameters remain fixed. As a result, the simulation region is no longer optimal (ex: if you increase the MMI core length from 32um to 50um during the parameter sweep, the x min will no longer be at the end of the tapered input waveguide and the simulation results are meaningless.) Is there a way to set the group spans and x min as variables instead of having them fixed?
Following is an illustration of it, as I run parameter sweep, when the MMI length increases to 50 micron, the input ports and cell group 2 length remain fixed, resulting in unphysical results.
Thank you for your help.