pyMie computes the near and far zone electromagnetic fields of a system in which a dielectric sphere is excited by a fixed source. Almost all the up to date codes available focus entirely on the scattered field properties fields outside a perfectly conducting sphere. This package provides the ability to compute all the far field properties, as well as the full solutions to Maxwell equations anywhere inside or outside the sphere, to arbitrary accuracy. I include Jupyter notebooks to perform various self-consistency tests, such as the comparison of direct formula for scattered field amplitudes to those calculated from a volume integral over the sphere.
kuljitvirk / pymie Goto Github PK
View Code? Open in Web Editor NEWPython implementation of Mie theory to compute electromagnetic fields in the near and far zones along with self-consistency tests in Jupyter Notebooks.
License: GNU General Public License v3.0