Compute images with a gravitational lensing effect by placing masses that act as lenses. A thin lens approximation is used.
For the physics behind the phenomena, you could consult Schneider, P. (2005, July). Gravitational lensing statistics.
code/main.py
: Classes with methods to generate the imagescode/plot_utils.py
: Utility functions for plotting.code/example_usage.ipynb
: Notebook with examples.
Use the /example_usage.ipynb
notebook as a reference.
Numpy and matplotlib should be enough.
Contributions are welcome!
Part of this code was first introduced to me in a course at the master in astrophysics of Universidad de La Laguna (ULL)
Distributed under the MIT License. See LICENSE
for more information.