-
Notifications
You must be signed in to change notification settings - Fork 24
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
error in incoherent example code #25
Comments
I'm getting the same error message. It seems like the imaginary number caused the problem? I have the older version that does not get this error message, but I'm getting the error message "Opacity warning. The imaginary part of the refractive index is clamped to 35i for numerical stability." Any fix on this? |
Hey, |
Hi, @Nerrror , |
The develop branch works for me as well. Thanks! I get a similar warning (pasted below), but as I understand it, this does not affect the computations. Clamping the imaginary refractive index to a high value prevents divide by zero errors and other instabilities.
|
@qizheng-1998 basically, exactly what @RadPlanets describes. The intensity in this layer becomes so low that it creates instabilities when you take this up to e to propagate the wave in the transfer matrix. |
When running example_inc_tmm.py, I get an error
AssertionError: It's not clear which beam is incoming vs outgoing. Weird index maybe?
related to the forward angle check.The other example file (example_tmm) runs without any errors.
Full trace below:
The text was updated successfully, but these errors were encountered: