Geodesic module¶
In differential geometry, a geodesic is a curve representing in some sense the shortest path between two points in a surface.
-
class
einsteinpy.geodesic.Geodesic(body, end_lambda, step_size=0.001, time=<Quantity 0. s>, metric=<class 'einsteinpy.metric.schwarzschild.Schwarzschild'>)[source]¶ Class for defining geodesics of different geometries.
- Parameters
body (Body) – Test particle for which geodesics is to be calculated.
end_lambda (float) – Lambda(proper time in seconds) where iterations will stop
step_size (float, optional) – Size of each increment in proper time. Defaults to
1e-3.time (s, optional) – Time of start, Defaults to 0 seconds.
a (m, optional) – Spin factor of massive body. Should be less than half of schwarzschild radius.
q (C, optional) – Charge on the massive body
parent (Body, optional) – The parent object of the body.
metric (Schwarzschild or Kerr or KerrNewman, optional) – Class of the spacetime metric in which geodesics are to be calculated. Defaults to
Schwarzschild.