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
- GALIH RIDHO UTOMO
- g4lihru@students.unnes.ac.id
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.4.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnpbem_mie-0.1.4.tar.gz.
File metadata
- Download URL: mnpbem_mie-0.1.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b106ed5fdd69ccc2ef571d7616938b662aa1bda19b87a8a7cdfa079ad40b51
|
|
| MD5 |
4007a9af440e1c734a77f30edea08818
|
|
| BLAKE2b-256 |
e7f5ef2bac716d1c11d7a7ab3d045cf27503876119126886d0665dce0ba2a53e
|
File details
Details for the file mnpbem_mie-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mie-0.1.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
334b933a4fc3fc21a102f5abc55ba9fb8cdd9ab4290fca4840f477cf3ab4dd04
|
|
| MD5 |
87ea96585e151e98c3c3915a6c9f87ab
|
|
| BLAKE2b-256 |
c2bf7407317b7e4b17a35db52cbf60168a1d43e6437b19c3ebb2cb6e8f9e7abe
|