EinsteinPy - Making Einstein possible in Python¶
EinsteinPy is an open source pure Python package dedicated to problems arising in General Relativity and relativistic physics, such as goedesics plotting for Schwarzschild space-time model, calculation of Schwarzschild radius for any mass given. Features like visualisation of geodesics of curved black holes and 3D visualisations are some of the features which are planned. It is released under the MIT license.
View source code of EinsteinPy!
Key features of EinsteinPy are:
Geometry analysis and trajectory calculation in vaccum solutions of Einstein’s field equations
Schwarzschild space-time
Kerr space-time
Kerr-Newman space-time
Various utilities related to above geometry models
Schwarzschild Radius
Event horizon and ergosphere for Kerr black hole
Maxwell Tensor and electromagnetic potential in Kerr-Newman space-time
And much more!
Symbolic Calculation of various quantities in GR
Christoffel Symbols
Riemann Curvature Tensor
Simplification of symbolic expressions
Static Geodesic Plotting
Coordinate conversion with unit handling
Spherical/Cartesian Coordinates
Boyer-Lindquist/Cartesian Coordinates
And more to come!
Einsteinpy is developed by an open community. Release announcements and general discussion take place on our mailing list and chat.
The source code, issue tracker and wiki are hosted on GitHub, and all contributions and feedback are more than welcome. You can test EinsteinPy in your browser using binder, a cloud Jupyter notebook server:
EinsteinPy works on recent versions of Python and is released under the MIT license, hence allowing commercial use of the library.
from einsteinpy.plotting import StaticGeodesicPlotter
a = StaticGeodesicPlotter(mass)
a.plot(r,v)
Contents¶
- Getting started
- User guide
- Jupyter notebooks
- Visualizing advance of perihelion of a test particle in Schwarzschild space-time
- Symbolically Understanding Christoffel Symbol and Riemann Curvature Tensor using EinsteinPy
- Analysing Earth using EinsteinPy!
- Visualizing frame dragging in Kerr space-time
- Visualizing event horizon and ergosphere of Kerr black hole
- What’s new
- EinsteinPy API