Skip to main content

Mie and Rayleigh scattering approximations for spherical particles.

Project description

mnpbem-mie

PyPI version Python versions Publish mnpbem-mie

mnpbem-mie provides Rayleigh-limit scattering formulas for small spherical particles.

Implemented Formulations

Polarizability:

$$ \alpha = 4\pi a^3\frac{\varepsilon_p-\varepsilon_m}{\varepsilon_p+2\varepsilon_m} $$

Wave number in medium:

$$ k = \frac{2\pi}{\lambda}\sqrt{\varepsilon_m} $$

Cross sections:

$$ C_{\mathrm{ext}} = k,\mathrm{Im}(\alpha),\quad C_{\mathrm{sca}} = \frac{|k|^4}{6\pi}|\alpha|^2,\quad C_{\mathrm{abs}} = C_{\mathrm{ext}}-C_{\mathrm{sca}} $$

Implementation

  • Rayleigh model: src/mnpbem_mie/rayleigh.py

Dependencies

  • numpy>=1.24

Installation

pip install mnpbem-mie

Example

Runnable example:

  • examples/basic_usage.py

Run:

python examples/basic_usage.py

Author

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

mnpbem_mie-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnpbem_mie-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file mnpbem_mie-0.1.1.tar.gz.

File metadata

  • Download URL: mnpbem_mie-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mnpbem_mie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 89691dfeceb1d28c03076ed1f2c8fdf8bb6da3d44da432e3a797c4a1fd044b00
MD5 69e166c2d453f93369bebfac98dbb56c
BLAKE2b-256 2e31e8aa0607daee34d8d915e8ddcdaa102483142795ca0aba90d40afafaea9c

See more details on using hashes here.

File details

Details for the file mnpbem_mie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mnpbem_mie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mnpbem_mie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88452ef3b8f8fb2acd3831fca10b93e8e8aa69e4425ac44c81269f95c63e6783
MD5 ec3a8e7c55111048b252ed635b19ea87
BLAKE2b-256 0b54738d63182dc03b8f434d03ce3e92122b9ee84a000ae532a3f011782b74f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page