>
|
|
Example 1.
Define a manifold with coordinates .
>
|
|
Define a metric of signature (1,-1,-1,-1).
S >
|
|
| (2.2) |
Define a null tetrad NTetrad for the metric . Use GRQuery to verify that NTetrad is a null tetrad.
S >
|
|
| (2.3) |
S >
|
|
Calculate the NP directional derivative operators defined by the null tetrad NTetrad. The result is a table with 4 indices.
S >
|
|
| (2.5) |
| (2.6) |
The individual directional derivatives operators can be extracted from the table NPDirDer.
S >
|
|
| (2.8) |
Note that this coincides with the Lie derivative of with respect to the first vector in NTetrad.
S >
|
|
| (2.9) |
Example 2.
With the keyword argument output = "sequence", the command NPDirectionalDerivatives will return the directional derivatives operators as a sequence. (Note that the name D is protected by Maple.)
S >
|
|
| (2.10) |
S >
|
|
| (2.11) |
Example 3.
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.
S >
|
|
| (2.12) |
We can now calculate the directional derivatives operators for the null tetrad with the second calling sequence.
NP >
|
|
| (2.14) |