Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/sage/SageManifolds/SM_Schwarzschild.sagews
Views: 1049
Schwarzschild spacetime
This worksheet demonstrates a few capabilities of SageManifolds (version 0.8) in computations regarding Schwarzschild spacetime.
It is released under the GNU General Public License version 3.
(c) Eric Gourgoulhon, Michal Bejger (2015)
The corresponding worksheet file can be downloaded from here
Spacetime manifold
We declare the Schwarzschild spacetime as a 4-dimensional differentiable manifold:
The spacetime manifold can be split into 4 regions, corresponding to the 4 quadrants in the Kruskal diagram.Let us denote by to the interiors of these 4 regions. and are asymtotically flat regions outside the event horizon; is inside the future event horizon and is inside the past event horizon.
The parameter of the Schwarzschild spacetime is declared as a symbolic variable:
Boyer-Lindquist coordinates
The standard Boyer-Lindquist coordinates (also called Schwarzschild coordinates) are defined on
We naturally introduce two subcharts as the restrictions of the chart to regions and respectively. Since, in terms of the Boyer-Lindquist coordinates, (resp. ) is defined by (resp. ), we set
At this stage, the manifold's atlas has 3 charts:
Three vector frames have been defined on the manifold: the three coordinate frames:
Metric tensor
The metric tensor is defined as follows:
The metric tensor is set by its components in the coordinate frame associated with Schwarzschild coordinates, which is the current manifold's default frame:
As an example, let us consider a vector field defined only on :
Since , it is possible to apply to :
Levi-Civita Connection
The Levi-Civita connection associated with :
Let us verify that the covariant derivative of with respect to vanishes identically:
The nonzero Christoffel symbols of with respect to Schwarzschild coordinates, skipping those that can be deduced by symmetry:
Curvature
The Riemann curvature tensor associated with :
The Weyl conformal tensor associated with :
The Ricci tensor associated with :
Einstein equation
Let us check that the Schwarzschild metric is a solution of the vacuum Einstein equation:
Contrary to the Ricci tensor, the Riemann tensor does not vanish:
The nonzero components of the Riemann tensor, skipping those that can be deduced by antisymmetry:
Since the Ricci tensor is zero, the Weyl tensor is of course equal to the Riemann tensor:
Bianchi identity
Let us check the Bianchi identity :
Let us check that if we turn the first sign into a one, the Bianchi identity does no longer hold:
Kretschmann scalar
Let us first introduce tensor , of components :
and tensor , of components :
The Kretschmann scalar is :
Instead of the above loops, the Kretschmann scalar can also be computed by means of the contract() method, asking that the contraction takes place on all indices (positions 0, 1, 2, 3):
The contraction can also be performed by means of index notations:
Eddington-Finkelstein coordinates
Let us introduce new coordinates on the spacetime manifold: the ingoing Eddington-Finkelstein ones:
The change from Schwarzschild (Boyer-Lindquist) coordinates to the ingoing Eddington-Finkelstein ones:
The manifold's atlas has now 6 charts:
The default chart is 'BL':
The change from Eddington-Finkelstein coordinates to the Schwarzschild (Boyer-Lindquist) ones, computed as the inverse of ch_BL_EF:
At this stage, 6 vector frames have been defined on the manifold: the 6 coordinate frames associated with the various charts:
The default frame is:
The coframes are the duals of the defined vector frames:
If not specified, tensor components are assumed to refer to the manifold's default frame. For instance, for the metric tensor:
The tensor components in the frame associated with Eddington-Finkelstein coordinates in Region I are obtained by providing the frame to the function display():
They are also returned by the method comp(), with the frame as argument:
or, as a schortcut,
Similarly, the metric components in the frame associated with Eddington-Finkelstein coordinates in Region II are obtained by
Note that their form is identical to that in Region I.
Plot of the Boyer-Lindquist coordinates in terms of the Eddington-Finkelstein ones
Let us perform the plot in Region I:
Tetrad of the static observer
Let us introduce the orthonormal tetrad associated with the static observers in Schwarzschild spacetime, i.e. the observers whose worldlines are parallel to the timelike Killing vector in the Region I.
The orthonormal tetrad is defined via a tangent-space automorphism that relates it to the Boyer-Lindquist coordinate frame in Region I:
At this stage, 7 vector frames have been defined on the manifold :
The first vector of the tetrad is the static observer 4-velocity:
As any 4-velocity, it is a unit timelike vector:
Let us check that the tetrad is orthonormal:
Another view of the above result:
or, equivalently,
The expression of the 4-velocity and the vector in terms of the frame associated with Eddington-Finkelstein coordinates:
Contrary to vectors of a coordinate frame, the vectors of the tetrad do not commute: their structure coefficients are not identically zero:
Equivalently, the Lie derivative of one vector along another one is not necessarily zero:
The curvature 2-form associated with the tetrad :
Kruskal-Szekeres coordinates
Let us now introduce the Kruskal-Szekeres coordinates on the spacetime manifold, via the standard transformation expressing them in terms of the Boyer-Lindquist coordinates :
Plot of the Boyer-Lindquist coordinates in terms of the Kruskal ones
We draw the Boyer-Lindquist chart in Region I (red) and Region II (green), with lines of constant being dashed:
We may add to the graph the singularity as a Boyer-Lindquist chart plot with fixed at . Similarly, we add the event horizon as a Boyer-Lindquist chart plot with fixed at :
Plot of the Eddington-Finkelstein coordinates in terms of the Kruskal ones
We first get the change of coordinates by composing the change with :
There are now 9 charts defined on the spacetime manifold:
There are 8 explicit coordinate changes (the coordinate change KS BL is not known in explicit form):
There are 10 vector frames (among which 9 coordinate frames):
There are 16 fields of tangent space automorphisms expressing the changes of coordinate bases and tetrad:
Thanks to these changes of frames, the components of the metric tensor with respect to the Kruskal-Szekeres can be computed by the method display() and are found to be:
The first vector of the orthonormal tetrad expressed on the Kruskal-Szekeres frame:
The Riemann curvature tensor in terms of the Kruskal-Szekeres coordinates:
The curvature 2-form associated to the Kruskal-Szekeres coordinate frame:
Isotropic coordinates
Let us now introduce isotropic coordinates on the spacetime manifold:
The transformation from the isotropic coordinates to the Boyer-Lindquist ones:
At this stage, 11 charts have been defined on the manifold :
12 vector frames have been defined on : 11 coordinate bases and the tetrad :
The components of the metric tensor in terms of the isotropic coordinates are given by
The component can be factorized:
Let us also factorize the other components:
The output of the display() command looks nicer:
Expression of the tetrad associated with the static observer in terms of the isotropic coordinate basis: