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:
[CMake](https://cmake.org/install/) (C++ build system)
[Eigen](http://eigen.tuxfamily.org/index.php?title=Main_Page) (C++ linear algebra library)
[GNU Scientific Library (GSL)](https://www.gnu.org/software/gsl/)
GCC and GFORTRAN
Python 3 and pip
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.
Source Distribution
Built Distributions
Hashes for miepy-0.4.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1380f9b1716e32a0d3eebfcf44a7cb3c2365179b6018d7691513d4bb9b0016c |
|
MD5 | 9b33e753cf8a66da4e9c0568489395d7 |
|
BLAKE2b-256 | fec4a3607d1979038fcc4ba94f3e07e9caf2e53c859a576af54c7825fa946293 |
Hashes for miepy-0.4.0-cp37-cp37m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 608b44a5b9b6d6883cbcc1fb5d273063da68c9d30618bb4d987388cc0458647d |
|
MD5 | fa3b90d8fce42a1e5d42037630c148a0 |
|
BLAKE2b-256 | c20a65ec81d8e858b8bbb73c73ffa2e37fe9eddd04e3bc79af3af1c3b4487919 |
Hashes for miepy-0.4.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dca3a24f2f3bd4274077c469f1c1b02af2480a7e18c162c41e08d1abc4882f7 |
|
MD5 | eb31f43975859b3162142c243c8da7b3 |
|
BLAKE2b-256 | 07645196b3dceac65e785c980a4fa2ab4bc01eded27ee9ee7b847f5454471f2a |
Hashes for miepy-0.4.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3328060cd20c415a486273c30de0bcda6667ec0b2ef57ba400d11c77d839303b |
|
MD5 | 001050b37699354de64d0bfe1fd1befa |
|
BLAKE2b-256 | bc710e2995be2ffdc704be691eee79b84985b87fcea4b0f8b411831c2a88d9d9 |
Hashes for miepy-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f3e2fdf5b8041dea75963b63b3cd4b1f3dcd77d2d1b0f7b4238e9cbd5bf1f6 |
|
MD5 | 9e413f2b42bebf4967c9ed50c27566be |
|
BLAKE2b-256 | 142322183c71d224fd211dd53ae252e5b9b6fa2ee0def413a170d1ae64c8df6d |
Hashes for miepy-0.4.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c150fcfb6ac9313c918bd7145fc31df86347ca836cd9e8fbd11d0c45b8ee62 |
|
MD5 | 89975082c1fa2c34970e80b823a663dd |
|
BLAKE2b-256 | 561c82fe489d54dc764a4fd61004d14aafec339b52e80748147fb8719750a79e |