Skip to main content

Mie and Rayleigh scattering approximations for spherical particles.

Project description

mnpbem-mie

Publish mnpbem-mie PyPI status

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

PyPI publication for mnpbem-mie is pending first release.

Track publication status:

Install from repository source:

pip install git+https://github.com/galihru/mnpbem.git#subdirectory=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.0.tar.gz (3.0 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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mnpbem_mie-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 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.0.tar.gz
Algorithm Hash digest
SHA256 6ec5accced347483e1517a58463dcade80c0ee8073b17a2f8cb51d1488da07b4
MD5 94b5eafde0afd1c1962eeaca6fa27849
BLAKE2b-256 a5355dd7b4b514c1576b3166c8b439371701c00308656a6c36a57516cc9e8763

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mnpbem_mie-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a716b59c9a3ce4048cc019170258c16290cfa8efadfa97e5112a12f8f81f019c
MD5 4a569bf949c9079f1d7cc3a8f096781f
BLAKE2b-256 5960d554c07aaffbfa35f86d9837bfc7bff5de8bf822ee7a538ccdb655eac153

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