-
Hello, I receive unexpected results in specific cases with the Bruggemann EMA. I want to model some kind of roughness, means I use air as the host material and a metal as the guest. The returned material however has negative extinction coefficient. It seems to me that in these cases the unphysical root of the BEMA equation is chosen. The code illustrating this behavior is here:
As examples I have chosen two metals: Au as a standard and Rh as this comes close to my use case. For both, negative k is returned by pyelli, although I would choose the other root as the "physical" solution. Also for Au f=0.1 one can see that sometimes the returned solution jumps between root1 and root2, which seems reasonable due to consistency but still seems to be the "unphysical" result. Interestingly, for Si the behaviour is as I would expect it. Is this a problem in the algorithm or is there a generel problem in using the BEMA with metals? Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey Martin, thank you for the detailed report. I will have a look and try to find out what is going wrong. It may not be the most stable implementation to find the correct root. It could be helpful if you can tell me which version of Numpy you are using. I will come back to you when i know more. Best |
Beta Was this translation helpful? Give feedback.
To ping you as well. We have released a new version of pyelli, which includes the fixed Berreman EMA.
Thank you very much for pointing out the issue.