tensor
convertNP
convert the connection coefficients or the Riemann tensor into Newman-Penrose formalism
Calling Sequence
Parameters
Description
Examples
convertNP( 'spin', Gamma)
convertNP( 'curve', Riemann, conj_pairs)
'spin', 'curve'
-
first parameter is a flag and takes either 'spin' or 'curve'
Gamma
covariant connection coefficients (thus has character −1,−1,−1)
Riemann
covariant Riemann tensor (thus has character −1,−1,−1,−1 and indexing function cov_riemann in component array)
conj_pairs
optional parameter to convertNP(...) when the flag is 'curve'. It holds a list of pairs (pair: a 2-element list) of names to be treated as complex conjugates in the construction of the 'Phi' field of the curvature component table
Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.
This function can be used to compute either the spin coefficients or the curvature components in the rigid frame in which the metric assumes the form :
g≔table⁡index_char=−1,−1,compts=01001000000−100−10
given correspondingly the covariant components of the connections or the covariant Riemann tensor in that particular rigid frame.
When the first parameter is fed with 'spin' then convertNP() checks if the second one (denoted as Gamma above) is a tensor_type with character −1,−1,−1. If it does, then the function constructs a spin coefficient table based on Gamma.
When the first parameter is fed with 'curve', then convertNP() checks if the second one (denoted as Riemann above) has character −1,−1,−1,−1 and indexing function cov_riemann in its component array. If it does, then the function goes on to construct a curvature component table based on Riemann.
Complex conjugation is required during the construction of the 'Phi' field which is a hermitian matrix, of the curvature table. If a third argument of a list of pairs of names is passed in, these pairs will be treated as complex conjugates when conjugation is taken for building the 'Phi' field. Note that I,−I is the default value of conj_pairs and any third argument supplied by the user would be appended to it. Any other names not specified in conj_pairs are treated as real.
This function is part of the tensor package, and can be used in the form convertNP(..) only after performing the command with(tensor), or with(tensor, convertNP). The function can always be accessed in the long form tensor[convertNP].
with⁡tensor:
First specify the constant metric wished to be used.
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⁡compts=01001000000−100−10,index_char=−1,−1
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⁡compts=a⁢x2+b⁢y⁢x+c⁢y2001100000−100−100,index_char=1,−1
Compute the covariant components of the connections.
Gamma≔connexF⁡coord,g,h:
Now convert Gamma to the spin coefficients in Newman-Penrose formalism.
convertNP⁡spin,Gamma
table⁡π=0,τ=0,β=0,μ=0,ν=−2⁢a⁢x−b⁢y,α=0,ε=0,κ=0,λ=0,σ=0,γ=0,ρ=0
Compute the covariant Riemann curvature tensor.
ginv≔invert⁡g,DETg:hinv≔invert⁡h,DETh:
Rm≔RiemannF⁡coord,ginv,hinv,Gamma:
Lastly, convert Rm to the curvature components in Newman-Penrose formalism.
convertNP⁡curve,Rm
table⁡Φ=array⁡0..2,0..2,0,0=0,0,1=0,0,2=0,1,0=0,1,1=0,1,2=0,2,0=0,2,1=0,2,2=b,Ψ=array⁡0..4,0=0,1=0,2=0,3=0,4=2⁢a,R=0
Now demonstrate the use of conj_pairs :
convertNP⁡curve,Rm,a,abar,bBAR,b
See Also
tensor(deprecated)
tensor(deprecated)[conj]
tensor(deprecated)[connexF]
tensor(deprecated)[npcurve]
tensor(deprecated)[npspin]
tensor(deprecated)[RiemannF]
Download Help Document