Electromagnetic scattering of plane wave by a sphere (Mie scattering). The sphere can be magnetic. The surrounding medium can be absorbing and magnetic.
A C++ compiler supporting C++11. The author tested the code using the gcc version 6.2.0.
- Modify the compilation parameters in "Makefile" according to your environment. In particular,please change the "CXX" (= C++ complier).
- Specify the input parameters in "gmie_call.cpp".
- Compilation and linking are performed by make
- Run the executable by ./gmie
Output results are Qsca, Qabs, Qext, and two elements of amplitude scattering matrix (S1, S2). In absorbing medium, Qsca, Qabs, and (S1, S2) are set to NaN, because these parameters are not defined.
Theoretical basis can be found in
- Bohren and Huffman 1983, Absorption and Scatteing of Light by Small Particles, John Wiley & Sons. Inc.
- Kerker et al. 1983, Electromagnetic scattering by magnetic spheres, J.Opt.Soc.Am., vol. 73, 765-767.
- Mischchenko 2007, Electromagnetic scattering by a fixed finite object embedded in an absorbing medium, Optics Express,vol 15, 13188-13202.
Please see LICENSE.txt