tensor
connexF
compute the covariant components of the connection coefficients in a rigid frame
RiemannF
compute the covariant Riemann curvature tensor in a rigid frame
Calling Sequence
Parameters
Description
Examples
connexF(coord, g, h)
RiemannF(coord, ginv, hinv, gamma)
coord
-
list of names of coordinate variables
g
constant covariant metric in the rigid frame; it must have character [-1,-1] and indexing function symmetric in its component array.
ginv
constant contravariant metric in the rigid frame; it must have character [1,1] and indexing function symmetric in its component array
h
covariant tetrad that transforms the metric in the natural basis to the one specified by the provided constant g (or ginv); h has the character [1,-1].
hinv
corresponding contravariant tetrad, in other words, the inverse of h; it has the character [-1,1]
gamma
covariant components of the connection coefficients in the rigid frame and this can be computed using connexF(..)
Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.
These two functions computes respectively the covariant connection coefficients and the covariant Riemann tensor in a rigid frame which may be null or orthonormal, given the constant metric and its inverse, and the tetrad (and its inverse) that transforms the natural-basis metric to the given constant metric.
These two routines can be used on spaces of arbitrary dimensions and signature.
For a diagonal constant metric, the tensor package function tensor[frame] can be used to obtain the required tetrad (and its inverse).
Simplification:
connexF() has one simplifier, `tensor/connexF/simp`, for simplifying algebraic expressions during the course of its computation.
RiemannF() has also only one simplifier, `tensor/RiemannF/simp`, for simplifying algebraic expressions.
Both simplifiers are initialized to `tensor/simp`, but it is recommended that each be customized to suit the needs of a particular problem.
These two functions are part of the tensor package, and can be used in the form connexF(..), RiemannF(..) only after performing the command with(tensor), or with(tensor, connexF), etc. The functions can always be accessed in the long form tensor[connexF], and tensor[RiemannF].
with⁡tensor:
Entering the coordinates and covariant tetrad of the Plane wave metric
coord≔u,x,y,v:
h_compts≔array⁡1..4,1..4,2,3=0,2,4=0,3,1=0,3,2=0,3,3=−1,1,2=0,4,1=0,2,1=1,4,2=−1,4,4=0,1,1=a⁢x2+b⁢y⁢x+c⁢y2,1,3=0,1,4=1,4,3=0,3,4=0,2,2=0:
h≔create⁡1,−1,op⁡h_compts
h≔table⁡index_char=1,−1,compts=a⁢x2+b⁢x⁢y+c⁢y2001100000−100−100
hinv≔invert⁡h,DETh
hinv≔table⁡index_char=−1,1,compts=0001100−a⁢x2−b⁢x⁢y−c⁢y200−100−100
Now specify the constant metric in the rigid frame.
g_compts≔array⁡symmetric,1..4,1..4:
forito4doforjfromito4dog_comptsi,j≔0enddoenddo:g_compts1,2≔1:g_compts3,4≔−1:g≔create⁡−1,−1,op⁡g_compts
g≔table⁡index_char=−1,−1,compts=01001000000−100−10
ginv≔invert⁡g,DETg
ginv≔table⁡index_char=1,1,compts=01001000000−100−10
Gamma≔connexF⁡coord,g,h:
Now use act( 'display', .. ) to view the non-vanishing components.
act⁡display,Gamma
NON-ZERO INDEPENDENT COMPONENTS :"[2, 3, 2] ="
"[3, 2, 2] ="
"[2, 4, 2] ="
"[4, 2, 2] ="
CHARACTER :
_____________________________________________________
b⁢x+2⁢c⁢y
−b⁢x−2⁢c⁢y
2⁢a⁢x+b⁢y
−2⁢a⁢x−b⁢y
−1,−1,−1
Rm≔RiemannF⁡coord,ginv,hinv,Gamma:
act⁡display,Rm
NON-ZERO INDEPENDENT COMPONENTS :"[2, 3, 2, 4] ="
"[2, 4, 2, 4] ="
"[2, 3, 2, 3] ="
INDEXING FUNCTION :
−b
−2⁢a
−2⁢c
−1,−1,−1,−1
cov_riemann
See Also
Physics[Christoffel]
Physics[D_]
Physics[d_]
Physics[Einstein]
Physics[g_]
Physics[LeviCivita]
Physics[Ricci]
Physics[Riemann]
Physics[Weyl]
tensor(deprecated)
tensor(deprecated)/change_basis
tensor(deprecated)[frame]
tensor(deprecated)[npcurve]
tensor(deprecated)[npspin]
Download Help Document