Closed mfreer closed 1 year ago
The particle size is too large for DDA. ADDA uses 10 dipoles per wavelength inside the particle (see https://github.com/adda-team/adda/blob/master/doc/manual.pdf). So the number of dipoles for a 50 micrometer particle, 0.532 micrometer wavelength, and index 1.59 would be more than 10^9, which is leading to the memory allocation error. If you need to simulate arbitrarily shaped particles this large, you may have to look into an approximate solution.
Hello,
I'm starting to build a code with the aim to simulate sets of arbitrarily-shaped particles using HoloPy, so I've been proceeding with the assumption that I will eventually use the DDA functionality in HoloPy. Unfortunately, I'm running to an issue when I try to run a test with a sphere (see example code below):
Running that code, I get an ArrayMemoryError from Numpy with the following Traceback:
Am I running into this issue due to an unreasonably large scatterer or detector grid, or is something else going on?
Thanks in advance for any guidance you can provide!