tensor(deprecated)/convertNP - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : tensor(deprecated)/convertNP

tensor

  

convertNP

  

convert the connection coefficients or the Riemann tensor into Newman-Penrose formalism

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convertNP( 'spin', Gamma)

convertNP( 'curve', Riemann, conj_pairs)

Parameters

'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

Description

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 :

gtableindex_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].

Examples

Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.

withtensor:

First specify the constant metric wished to be used.

g_comptsarraysymmetric,1..4,1..4:

forito4doforjfromito4dog_comptsi,j0enddoenddo:g_compts1,21:g_compts3,41:gcreate1,1,opg_compts

gtablecompts=01001000000−100−10,index_char=−1,−1

(1)

Entering the coordinates and covariant tetrad of the Plane wave metric

coordu,x,y,v:

h_comptsarray1..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=ax2+byx+cy2,1,3=0,1,4=1,4,3=0,3,4=0,2,2=0:

hcreate1,1,oph_compts

htablecompts=ax2+byx+cy2001100000−100−100,index_char=1,−1

(2)

Compute the covariant components of the connections.

GammaconnexFcoord,g,h:

Now convert Gamma to the spin coefficients in Newman-Penrose formalism.

convertNPspin,Gamma

tableπ=0,τ=0,β=0,μ=0,ν=2axby,α=0,ε=0,κ=0,λ=0,σ=0,γ=0,ρ=0

(3)

Compute the covariant Riemann curvature tensor.

ginvinvertg,DETg:hinvinverth,DETh:

RmRiemannFcoord,ginv,hinv,Gamma:

Lastly, convert Rm to the curvature components in Newman-Penrose formalism.

convertNPcurve,Rm

tableΦ=array0..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,Ψ=array0..4,0=0,1=0,2=0,3=0,4=2a,R=0

(4)

Now demonstrate the use of conj_pairs :

convertNPcurve,Rm,a,abar,bBAR,b

tableΦ=array0..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,Ψ=array0..4,0=0,1=0,2=0,3=0,4=2a,R=0

(5)

See Also

tensor(deprecated)

tensor(deprecated)[conj]

tensor(deprecated)[connexF]

tensor(deprecated)[npcurve]

tensor(deprecated)[npspin]

tensor(deprecated)[RiemannF]