Skip to main content

Mie and Rayleigh scattering approximations for spherical particles.

Project description

mnpbem-mie

PyPI version Python versions

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.3.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.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mnpbem_mie-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1c01c60d44425be4a9e209fa617c0095a9f8e23802b761c1d4c6894f1b8a07f4
MD5 523b4ccc4649aea5ad55495e184dec60
BLAKE2b-256 250fd55cbd1823747a1bada8e630e71b5cf1b62fc8f237a6c2f7e8c07d3f6d92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mnpbem_mie-0.1.3-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.10

File hashes

Hashes for mnpbem_mie-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ec5d8622d82ec818df5639261aa870b606aa91c74e90171b0c91de45b5a8fcab
MD5 210b36089763dfe20d0b58d393334a13
BLAKE2b-256 9486c6d0e2afaf27bc62660735d963dd837e75d3f7238bf3e175a0e8ad62c62b

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