disordered-photonics / celes

CELES: CUDA-accelerated electromagnetic scattering by large ensembles of spheres
Other
47 stars 18 forks source link

Multiple Radii #1

Closed fragkrag closed 7 years ago

fragkrag commented 7 years ago

Added some code that allows particles to have different radii. It is currently not compatible with the existing preconditioner as the new code requires the newly added 'radiusArray' and existing 'positionArray' to stay in the same order.

'mieCoefficients' goes from a 1D vector to a 2D matrix, with each row containing Mie coefficients for a specific particle radius.

'rightHandSide' and 'masterMatrixMultiply' have been modified to accommodate the 'mieCoefficient' modification and some of the plotting was changed.

-Alan Zhan