Example 1.
Define a manifold with coordinates .
Define a metric .
Define an orthonormal tetrad OTetrad for the metric . Use GRQuery to check that OTetrad is indeed an orthonormal tetrad.
Construct a null tetrad NTetrad from the orthonormal tetrad OTetrad.
Calculate the NP spin coefficients defined by the null tetrad NTetrad.
The individual spin coefficients can be extracted from the table SpinCoeff.
Example 2.
With the keyword argument output = "sequence", the command NPSpinCoefficients will return the spin coefficients as a sequence. (Note that gamma is protected by Maple.)
Example 3.
We check the results from Example 2 against the definitions of the spin-coefficients. First define the null tetrad.
Define the dual basis.
Calculate the Christoffel connection.
1. k =
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Example 4
When working with the NP formalism, it is usually advantageous to work with the anholonomic frame defined by the null tetrad. To create anholonomic frames in DifferentialGeometry, see FrameData.
We can now calculate the spin coefficients for the null tetrad with the second calling sequence.