This is a simple Monte Carlo simulation of photons in a medium. The photons are emitted from a point source and travel in a medium with a given refractive index. The photons are scattered by the medium and the simulation stops when the photons are absorbed by the medium.
- Clone the repository and cd into it.
- Create a virtual environment:
python -m venv venv
- Activate the virtual environement:
. venv/bin/activate - Install the module:
pip install . - Run the example:
python examples/example_1.py
- After a few seconds (depending on your system) you should see the simulation result :-).
- python 3.8 or later
- numpy
- matplotlib
- sympy
