Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mie Scattering Simulator

DOI

Code for simulating Mie scattering by nanoparticles.

Quick Start

To try this project out, follow these steps:

  1. Clone the repo

    git clone https://github.com/bfrangi/nanoparticle-scattering.git
    
  2. Navigate to the project folder:

    cd nanoparticle-scattering
    
  3. Install pip. On most Linux systems, this can be done with:

    sudo apt install python3-pip
    
  4. Install virtualenv and create a virtual environment:

    sudo apt install python3-venv
    python3 -m venv .venv
    source .venv/bin/activate
    
  5. Install dependencies:

    pip install -r requirements.txt
    
  6. [Optional] If you want to use LaTeX for plotting, install the texlive package:

    sudo apt-get update
    sudo apt-get install texlive-latex-extra texlive-fonts-extra dvipng

    Note: Using LaTeX for plotting is optional, and slows down the plotting process significantly. It is recommended only for generating publication-quality figures.

Usage

The main simulation scripts are located in the src/ folder. You can run them using Python. For example:

python src/si-intensity-interference.py

These scripts will generate plots and save them in the figures/ folder.

Cite this repository

@misc{bernat_frangi_2025_18069231,
  author       = {Bernat Frangi},
  title        = {Mie Scattering Simulator},
  month        = {Dec},
  year         = {2025},
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.18069231},
  howpublished = {Zenodo},
  url          = {https://doi.org/10.5281/zenodo.18069231},
}

About

Code for simulating Mie scattering by nanoparticles.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages