schwarzschild module

This module contains the class, defining Schwarzschild Spacetime:

class einsteinpy.metric.schwarzschild.Schwarzschild(coords, M)[source]

Bases: BaseMetric

Class for defining Schwarzschild Geometry

Constructor

Parameters:
  • coords (*) – Coordinate system, in which Metric is to be represented

  • M (Quantity) – Mass of gravitating body, e.g. Black Hole

metric_covariant(x_vec)[source]

Returns Covariant Schwarzschild Metric Tensor in chosen Coordinates

Parameters:

x_vec (array_like) – Position 4-Vector

Returns:

Covariant Schwarzschild Metric Tensor in chosen Coordinates Numpy array of shape (4,4)

Return type:

ndarray