Skip to content
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

Mie / Rayleigh threshold overridden #17

Open
esqt opened this issue Mar 4, 2021 · 0 comments
Open

Mie / Rayleigh threshold overridden #17

esqt opened this issue Mar 4, 2021 · 0 comments

Comments

@esqt
Copy link

esqt commented Mar 4, 2021

Hello,

According to the documentation, the function AutoMieQ should give the possibility to automatically switch to the Rayleigh approximation when x = pi*diameter/wavelength is below a given threshold. However, to my understanding, the function MieQ overrides this threshold if it is below 0.05 :

elif x<=0.05:
return RayleighMieQ(m, wavelength, diameter, nMedium, asDict)

From the documentation, I wouldn't even expect the two lines above to be in the MieQ function.

Also, I found that a threshold of 0.05 sometimes leads to significant errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant