Skip to main content

Mie and Rayleigh scattering approximations for spherical particles.

Project description

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.5.tar.gz (2.7 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.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mnpbem_mie-0.1.5.tar.gz
  • Upload date:
  • Size: 2.7 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.5.tar.gz
Algorithm Hash digest
SHA256 7b2500a320026156f7a5f52a80479239fcf535356e2de51fb387b57e555a79d7
MD5 47e44968ffc77c621729593446dfc5dd
BLAKE2b-256 9aedbb0faa0398d57ac9dd34ad6f303bf932294f29c4c03ce5101e07d41b2ce1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mnpbem_mie-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4caec99f983683fde731d8972dc4f3a6d2b4119dac9081bf6d5f051c866f80e6
MD5 b303d588e96051fffe6a42d7d9ab2770
BLAKE2b-256 55552da3b8a5c2c307140a642a0f612a4ff1a9f7646492991678391cc45a1fe8

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