Codes for electromagnetic scattering by spheres
Codes for electromagnetic scattering by spheres  this article list codes for electromagnetic scattering by a homogeneous sphere, layered sphere, and cluster of spheres. Some of the source codes may be available on [1].
Contents
Solution techniques
Majority of existing codes for calculation of electromagnetic scattering by a single sphere is based on Mie theory which is an analytical solution of Maxwell's equations in terms of infinite series. Other approximations to scattering by a single sphere include: Debye series, ray tracing (geometrical optics), ray tracing including the effects of interference between rays, Airy theory, Rayleigh scattering, diffraction approximation. There are many phenomena related to light scattering by spherical particles such as resonances, surface waves, plasmons, nearfield scattering. Even though Mie theory offers convenient and fast way of solving light scattering problem by homogeneous spherical particles, there are other techniques, such as discrete dipole approximation, FDTD, Tmatrix, which can also be used for such tasks. ^{[1]}
Classification
The compilation contains information about the electromagnetic scattering by spherical particles, relevant links, and applications.^{[2]}
Codes for electromagnetic scattering by a single homogeneous sphere
Year  Name  Authors  References  Language  Short Description 

1983  BHMIE  Craig F. Bohren and Donald R. Huffman  ^{[1]}  "Mie solutions" (infinite series) to scattering, absorption and phase function of electromagnetic waves by a homogeneous sphere.  
2002  MiePlot ^{[3]}  Philip Laven  ^{[4]}  Visual Basic  MiePlot offers the following mathematical models for the scattering of light by a sphere: Mie solutions, Debye series, ray tracing (based on geometrical optics), ray tracing including the effects of interference between rays, Airy theory, Rayleigh scattering, diffraction, surface waves. In addition to singlewavelength calculations, MiePlot can also perform calculations for a number of wavelengths, thus approximating a continuous spectrum (such as sunlight) to produce simulations of atmospheric optical effects such as rainbows, coronas and glories. 
2003  Mie_Single etc.  Gareth Thomas and Don Grainger  ^{[5]}  IDL  The SubDepartment of Atmospheric Oceanic and Planetary Physics in the University of Oxford maintains an archive of Mie scattering routines for both single spheres and populations of particles in which sizes follow a lognormal distribution. Code is also available for calculating the analytical derivatives of Mie scattering (i.e. the derivative of the extinction and scattering coefficients, and the intensity functions with respect to size parameter and complex refractive index). The routines are written in IDL, but a Fortranbased DLM version (which substantially reduces runtime) of the singlesphere code is also available. 
Codes for electromagnetic scattering by a layered sphere
Algorithmic literature includes several contributions ^{[6]} ^{[7]} ^{[8]} ^{[9]}
Year  Name  Authors  Ref  Language  License  Short Description  

1981  DMILAY  Owen B. Toon and T. P. Ackerman  ^{[8]}  Fortran  No license specified but open source (public domain)  Scattering by a stratified sphere (a particle with a spherical core surrounded by a spherical shell).
Code dates from 1968 available here:^{[10]} 

1983  BHCOAT  Craig F. Bohren and Donald R. Huffman  ^{[1]}  Fortran  No specified but open source (public domain via ^{[1]})  "Mie solutions" (infinite series) to scattering, absorption and phase function of electromagnetic waves by a homogeneous concentring shells.  
1993  IFCS, LSCCS  Thomas Kaiser and G. Schweiger  ^{[11]}  Fortran  Unknown  Computes an internal field inside a coated sphere and the scattered field of a sphere with 0, 1 or 2 coatings.  
1997  BART ^{[12]}  A. Quirantes  ^{[13]}  Fortran  Open source (own license)  Based on the Aden–Kerker theory to calculate lightscattering properties for coated spherical particles  
2004  MjcLscCoatSph^{[14]}  M. Jonasz  GUI/Windows  Proprietary / closed source  This program calculates the scattering, absorption, and attenuation parameters, as well as the angular scattering patterns of a single coated sphere according to AdenKerker theory.  
2007  L. Liu, H. Wang, B. Yu, Y. Xu, J. Shen  ^{[15]}  C  Unknown  Light scattering by a coated sphere (extinction efficiency, scattering efficiency, light scattering intensity)  
2009  scattnlay^{[16]}  O Pena and U Pal  ^{[17]}  C  GPLv2 (see paper)  Light scattering from a multilayered sphere based on the algorithm by W Yang.^{[18]} Very robust and stable, slower than Toon and Ackerman. 
Codes for electromagnetic scattering by cluster of spheres
Year  Name  Authors  References  Language  Short Description 

19982003  GMM  Yulin Xu and Bo A. S. Gustafson  ^{[19]}  Fortran  Codes which calculate exactly electromagnetic scattering by an aggregate of spheres in a single orientation or at an average over individual orientations. 
2013  MSTM  D. W. Mackowski  ^{[20]}  Fortran  Codes which calculate exactly electromagnetic scattering by an aggregate of spheres and spheres within spheres for complex materials. Works in parallel as well. 
2015  py_gmm  G. Pellegrini  ^{[21]}  Python + Fortran  A Python + Fortran 90 implementation of the Generalized Multiparticle Mie method, especially suited for plasmonics and near field computation. 
Relevant scattering codes
External links
 Scatterlib  Google Code repository of light scattering codes
See also
 Computational electromagnetics
 Light scattering by particles
 List of atmospheric radiative transfer codes
 Optical properties of water and ice
 Mie theory
References
 ↑ ^{1.0} ^{1.1} ^{1.2} ^{1.3} Bohren, Craig F. and Donald R. Huffman, Absorption and scattering of light by small particles, New York : Wiley, 1998, 530 p., ISBN 0471293407, ISBN 9780471293408 (second edition)
 ↑ T. Wriedt, Light scattering theories and computer codes, Journal of Quantitative Spectroscopy and Radiative Transfer, 110, 833843, 2009.
 ↑ The MiePlot program can be downloaded from http://www.philiplaven.com/mieplot.htm
 ↑ Philip Laven, "Simulation of Rainbows, Coronas, and Glories by use of Mie Theory", Applied Optics Vol. 42, 3, 436444 (January 2003) plus various other published papers (all available at http://www.philiplaven.com/Publications.html).
 ↑ Grainger, R.G., J. Lucas, G.E. Thomas, G. Ewan, "The Calculation of Mie Derivatives", Appl. Opt., 43(28), 53865393, 2004. http://dx.doi.org/10.1364/AO.43.005386
 ↑ Mackowski, D.W., Altenkirch, R. A., & Menguc, M. P. (1990). Internal absorption cross sections in a stratified sphere. Applied Optics, 29(10), 1551–1559.
 ↑ Yang, W. (2003). Improved recursive algorithm for light scattering by a multilayered sphere. Applied Optics, 42(9), 1710–1720.
 ↑ ^{8.0} ^{8.1} Toon, O. B., and Ackerman, T. P. (1981). Algorithms for the calculation of scattering by stratified spheres. Applied Optics, 20(20), 3657–3660.
 ↑ L. Liu, H. Wang, B. Yu, Y. Xua, J. Shen, Improved algorithm of light scattering by a coated sphere, China Particuology 5 (2007) 230–236.
 ↑ http://www.atmos.washington.edu/~ackerman/Mie_code/rtpmie.ackerman.dmiess.f
 ↑ T. Kaiser and G. Schweiger, Stable algorithm for the computation of Mie coefficients for scattered and transmitted fields of a coated sphere Comput. Phys. 1993, 7, 682686.
 ↑ /http://www.ugr.es/~aquiran/ciencia/codigos/bart.f
 ↑ A Quirantes and A V Delgado, The scattering of light by a suspension of coated spherical particles: effects of polydispersity on cross sections, J. Phys. D: Appl. Phys. 30 (1997) 2123–2131.
 ↑ http://www.mjcopticaltech.com/Products/LscCoatSphHelp.htm
 ↑ L. Liu, H. Wang, B. Yu, Y. Xu, J. Shen, Improved algorithm of light scattering by a coated sphere, China Particuology, 5, 230236, 2007
 ↑ http://cpc.cs.qub.ac.uk/cpc/cgibin/showversions.pl/?catid=AEEY&usertype=toolbar&deliverytype=view
 ↑ O Pena and U Pal, Scattering of EM radiation by a multilayer sphere, Computer Physics Communications, 180, 23482354, 2009
 ↑ W Yang, Improved recursive algorithm for light scattering by a multilayered sphere, Applied Optics, Vol. 42, No. 9, 2003
 ↑ Yulin Xu , Bo A.S. Gustafson, A generalized multiparticle Miesolution: further experimental verification, Journal of Quantitative Spectroscopy & Radiative Transfer 70 (2001) 395–419
 ↑ http://www.eng.auburn.edu/users/dmckwski/scatcodes/
 ↑ https://github.com/gevero/py_gmm