Skip to content

yu2C/MieDipole

 
 

Repository files navigation

MieDipole (Python)

Python implementation of Generalized Mie Theory for a spherical scatterer illuminated by an electric dipole source.

Ported from the MATLAB codebase on the main branch (yu-py branch).

Reference: Lee & Hsu, J. Phys. Chem. Lett. 2020, 11, 6796–6804. DOI

Quick Start

git clone -b yu-py https://github.com/yu2C/MieDipole.git
cd MieDipole
uv sync
uv run python main.py

Project Structure

├── main.py              Entry point
├── Functions/           Core Python modules
├── InputFiles/          JSON / CSV inputs
├── benchmark/           Reference data & regression baselines
├── tests/               pytest suite
├── docs/                Example figures
└── archive/             Development history

Example output

Tests

uv run pytest tests/ -v

Branches

Branch Language
main MATLAB (original)
yu-py Python (this branch)

Citation

@article{Lee2020,
    author  = {Lee, Ming-Wei and Hsu, Liang-Yan},
    journal = {J. Phys. Chem. Lett.},
    volume  = {11}, number = {16}, pages = {6796--6804}, year = {2020},
    doi     = {10.1021/acs.jpclett.0c01989}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TeX 56.9%
  • MATLAB 43.1%