Skip to content

Mie / Rayleigh threshold overridden #17

@esqt

Description

@esqt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions