Diffraction Simulations - Angular Spectrum Method
Implementation of the Angular Spectrum method in Python to simulate Diffraction Patterns with arbitrary apertures. You can use it for simulating both monochromatic and polychromatic light also with arbitrary spectrums.
How the method and the simulator work is described in this Article. Take a look to the Youtube video to see the animated simulations!
Installation
- Clone repository
- Install requirements via
pip install -r requirements.txt
Examples
To perform the simulations, just run from the folder proyect in the command prompt the corresponding Python scripts:
python hexagon_monochromatic.py
python hexagon_polychromatic.py
python rectangular_grating_small.py
python rectangular_grating.py
python circular_rings.py
python text.py