-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mode solver neff jumps #113
Comments
Hi! By default, once calculated, the solver returns the modes by sorting them using the value of the Have you any code example you would like to share to discuss on it? :) |
Hmm, we directly return the modes in the order Solution: we maybe just sort them ourselves? The real part of the effective refractive index as the key? @KojaAMA @lucasgrjn what do you think? About the example in the docs: I think there is everything alright, as the modes cross they hybridize which leads to a splitting. |
@HelgeGehring @lucasgrjn Thanks for the quick feedback. Regarding the example: generally it seems that the solver finds the eigen number and vectors. But it would be helpful that the sorting works in a way to keep TE or TM fraction consistent since in most cases the interest is to get the quasi-polarization families and experimentally you want to excite one polarization. Maybe the work-around would be to enforce only finding either quasi-TE/TM families. For my example: I will play around with the script and update you with it @lucasgrjn soon. Maybe sorting them ourselves @HelgeGehring would work ,I guess considering both neff & TE fraction might be a good option. |
I don't think it would be correct to keep the TE/TM fractions consistent as modes can hybridize, see for example https://doi.org/10.1038/s41598-020-73936-x Or what do you mean with consistent? I think it should look like in the example in the docs and have the continuous transitions between TE/TM for certain pairs of modes? Experimental I do want to know where they hybridize as the system gets more complicated to describe (especially if we somehow break symmetry). If you keep your polarization constant, the light would at that point couple in both modes. Of course, we could solve simplified equations describing only TE or TM modes, but they would only be approximations and in the area of hybridization just be wrong. For sorting, @KojaAMA do I miss something? What system are you working on? Maybe I'm thinking too much of silicon/silicon nitride waveguides? |
Thanks a lot for the paper, it was a nice read. @HelgeGehring As far as I understand, the modes will be generally hybridized for most structures except infinite slab case. So I expect them to by hybrid modes in my ridge structure. Thanks a lot for your help. |
👍 The solver doesn't necessarily return them right now ordered by the neff. At the moment, we do not enforce a certain ordering, but just return whatever scipy's Did you give it a try to just order by neff? I think that should also produce a nice graph for you and that way it should be perfectly robust. Should we maybe explain the hybridization a bit in the example? |
I encountered an issue when solving for 1st quasi TE&TM modes for different widths. The lines represents different widths. There are jumps in neff (flipping TE fraction). But if we follow the TE fraction guidance, the behavior is monotonic.
maybe somehow similar issue in the example https://helgegehring.github.io/femwell/photonics/examples/vary_width.html
The text was updated successfully, but these errors were encountered: