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.2.tar.gz
(2.8 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.2.tar.gz.
File metadata
- Download URL: mnpbem_mie-0.1.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a951734bb2b5b99f4d206f5e92775af8401404823b5d3587ea0b7fdf4fd7bd4
|
|
| MD5 |
266810415e620c0a0ef0e6057108f3bf
|
|
| BLAKE2b-256 |
549f6dccd0fdeebe5bb670a4980b60fde5064d6340eac0616e8cebd5dcee8bf2
|
File details
Details for the file mnpbem_mie-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mnpbem_mie-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ced8700f24e7f9cc6cb88c2c015860bc845dc1795fe2f4f7c2f13292df2cf7
|
|
| MD5 |
a42a0dcdc146bcdcf533e77d162ebede
|
|
| BLAKE2b-256 |
ebe06ec790690d1f9b0569300853109992609a609b35b452014cd5fcbaecc30a
|