tensor
Einstein
compute the covariant components of the Einstein tensor
Calling Sequence
Parameters
Description
Examples
Einstein(g, Ricci, R)
g
-
rank two tensor_type of character 1,1 representing the covariant metric tensor; specifically, gcomptsi,j≔gij
Ricci
rank two tensor_type of character −1,−1 representing the covariant Ricci tensor; specifically, Riccicomptsi,j≔Rij
R
rank zero tensor_type of character [], representing the Ricci scalar (note it is recognized as a 0th rank tensor_type in the tensor package).
Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][EinsteinTensor] and Physics[Einstein] instead.
The resultant tensor_type, Estn say, of this routine is the COVARIANT Einstein tensor, indexed as shown below:
Estncomptsi,j≔Gi,j
The component arrays of both g and Ricci should use the Maple symmetric indexing function. They can be computed using the appropriate routines from the package. The component array of the result uses Maple's symmetric indexing function.
Simplification: This routine uses the `tensor/Einstein/simp` routine for simplification purposes. The simplification routine is applied to each component of result after it is computed. By default, `tensor/Einstein/simp` is initialized to the `tensor/simp` routine. It is recommended that the `tensor/Einstein/simp` routine be customized to suit the needs of the particular problem.
This function is part of the tensor package, and so can be used in the form Einstein(..) only after performing the command with(tensor) or with(tensor, Einstein). The function can always be accessed in the long form tensor[Einstein](..).
Define the coordinate variables and the covariant Schwarzchild metric tensor components.
with⁡tensor:
coord≔t,r,th,ph:
g_compts≔array⁡symmetric,sparse,1..4,1..4:
g_compts1,1≔1−2⁢mr:g_compts2,2≔−1g_compts1,1:
g_compts3,3≔−r2:g_compts4,4≔−r2⁢sin⁡th2:
g≔create⁡−1,−1,eval⁡g_compts
g≔table⁡index_char=−1,−1,compts=1−2⁢mr0000−11−2⁢mr0000−r20000−r2⁢sin⁡th2
Now compute all of the quantities necessary to compute the Einstein tensor:
ginv≔invert⁡g,detg:
D1g≔d1metric⁡g,coord:D2g≔d2metric⁡D1g,coord:
Cf1≔Christoffel1⁡D1g:
RMN≔Riemann⁡ginv,D2g,Cf1:
RICCI≔Ricci⁡ginv,RMN:
RS≔Ricciscalar⁡ginv,RICCI:
Compute the Einstein tensor:
Estn≔Einstein⁡g,RICCI,RS
Estn≔table⁡index_char=−1,−1,compts=0000000000000000
You can also view the result using the function tensor[displayGR].
See Also
DifferentialGeometry[Tensor][EinsteinTensor]
Physics[Christoffel]
Physics[D_]
Physics[d_]
Physics[Einstein]
Physics[g_]
Physics[LeviCivita]
Physics[Ricci]
Physics[Riemann]
Physics[Weyl]
tensor(deprecated)
tensor(deprecated)[displayGR]
tensor(deprecated)[Ricci]
tensor(deprecated)[Ricciscalar]
tensor(deprecated)[Riemann]
tensor(deprecated)[simp]
tensor(deprecated)[tensorsGR]
Download Help Document