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

Kernel dies when particle is much bigger than wavelength #10

Open
Optdesign opened this issue Jul 10, 2017 · 3 comments
Open

Kernel dies when particle is much bigger than wavelength #10

Optdesign opened this issue Jul 10, 2017 · 3 comments
Labels

Comments

@Optdesign
Copy link

Hi, I am running into a problem when i try and create a scatterer with a diameter that is ~40x larger than the wavelength. Is this a bug?

@josephhardinee
Copy link
Contributor

The underlying fortran code can become unstable when presented with very large particles. It's a known issue of the code. There has been some discussion between various people about fixing it, but not sure anyone has had the time to take it on.

@dmoisseev
Copy link

You could increase value of the attribute ndgs in the Scatterer class. By default ndgs=2, try increasing it to 100 (play around with this value). This attribute controls convergence of the T-matrix computations.

@jleinonen
Copy link
Owner

jleinonen commented Jun 18, 2020

I'll comment now on this long-standing issue since there hasn't been any progress: Unfortunately this is a problem with the core Fortran code that PyTMatrix uses (a code originally from NASA GISS).

The best solution to this problem would be to rewrite the T-Matrix core in Python/NumPy. This would also eliminate the compiling problems that many people have had with PyTMatrix. However, this is a serious effort and I don't really expect to have the time to do it in the foreseeable future, especially as my own career is gravitating away from scattering. I'll leave this issue open just in case some brave soul wants to tackle it.

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

No branches or pull requests

4 participants