Schwarzschild Embedding Module¶
Class for Utility functions for Schwarzschild Embedding surface to implement gravitational lensing:
- class einsteinpy.hypersurface.schwarzschildembedding.SchwarzschildEmbedding(M)[source]¶
Bases:
object
Class for Utility functions for Schwarzschild Embedding surface to implement gravitational lensing
- r_init¶
- Type:
m
Constructor Initialize mass and embedding initial radial coordinate in appropiate units in order to render the plots of the surface in finite grid. The initial r is taken to be just greater than schwarzschild radius but it is important to note that the embedding breaks at r < 9m/4.
- Parameters:
M (kg) – Mass of the body
- gradient(r)[source]¶
Calculate gradient of Z coordinate w.r.t r to update the value of r and thereby get value of spherical radial coordinate R.
- radial_coord(r)[source]¶
Returns spherical radial coordinate (of the embedding) from given schwarzschild coordinate.
- get_values(alpha)[source]¶
Obtain the Z coordinate values and corrosponding R values for range of r as 9m/4 < r < 9m.