Skip to main content

Python module to solve Maxwell's equations for a cluster of particles using the generalized multiparticle Mie theory (GMMT)

Project description

MiePy is a Python module for the generalized multiparticle Mie theory (GMMT), also known as the aggregate T-matrix method. MiePy solves the electrodynamics of a collection of spherical or non-spherical scatterers with an arbitrary incident source.

Features

  • Non-spherical particles using the T-matrix formulation via the null-field method with discrete sources (NFM-DS). Includes cylinders, spheroids, ellipsoids, cubes and polygonal prisms
  • Arbitrary incident sources (plane waves, Gaussian beams, HG and LG beams, point dipoles) via near-field point matching or far-field integration
  • Periodic boundary conditions with various lattice types (square, hexagonal, etc.) and mirror and discrete rotational symmetries for faster calculations
  • Evaluation of cluster cross-sections and optical force and torque on individual particles
  • OpenMP parallelization for systems with larger numbers of particles

Usage

For examples and use cases, see examples folder.

For full documentation, see docs folder.

Installation

If NumPy is not already installed, it must be installed prior to MiePy’s installation `shell pip install numpy ` Then install MiePy `shell pip install miepy `

To build MiePy from source, first install the required dependencies:

Then, install MiePy using pip `shell pip install miepy --no-binary `

To build the latest development version, clone MiePy and its submodules: `shell git clone https://github.com/johnaparker/miepy.git miepy --recurse-submodules && cd miepy ` and install MiePy using pip `shell pip install . ` Optionally, run the tests to verify correctness: `shell pytest tests `

Sample Output

License

MiePy is licensed under the terms of the GPLv3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for miepy, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size miepy-0.4.0-cp35-cp35m-macosx_10_6_intel.whl (9.3 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size miepy-0.4.0-cp35-cp35m-manylinux1_x86_64.whl (16.2 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size miepy-0.4.0-cp36-cp36m-macosx_10_6_intel.whl (9.3 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size miepy-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (16.2 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size miepy-0.4.0-cp37-cp37m-macosx_10_6_intel.whl (9.3 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size miepy-0.4.0-cp37-cp37m-manylinux1_x86_64.whl (16.2 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size miepy-0.4.0.tar.gz (6.0 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page