Example 1. "DiracWeyl"
First create a vector bundle N with base coordinates [t, x, y, z] and fiber coordinates [z1, z2, w1, w2].
>
|
|
| (2.1) |
Define a metric of signature [+1, -1, -1, -1] and an orthonormal tetrad.
N >
|
|
| (2.2) |
N >
|
|
| (2.3) |
Calculate the solder form.
N >
|
|
| (2.4) |
Define a rank 1-spinor field psi1 and its complex conjugate.
N >
|
|
| (2.5) |
N >
|
|
| (2.6) |
Calculate the Dirac-Weyl energy momentum tensor T.
N >
|
|
| (2.7) |
Evaluate the Dirac-Weyl field equations E for the given spinor field psi.
N >
|
|
| (2.8) |
Check the divergence identity for the dust energy momentum tensor T. The LHS is the covariant divergence of the energy momentum tensor and the RHS is a combination of the field equations.
N >
|
|
| (2.9) |
N >
|
|
| (2.10) |
We note that f(x) = h(x) = 1/x is a solution of the Dirac-Weyl field equations:
N >
|
|
| (2.11) |
The covariant divergence of the energy momentum tensor vanishes on this solution:
N >
|
|
| (2.12) |
Example 2. "Dust"
First create a manifold M with base coordinates [t, x, y, z]:
N >
|
|
| (2.13) |
Define a metric.
M >
|
|
| (2.14) |
Define the normalized 4-vector representing the 4-velocity of the dust.
M >
|
|
| (2.15) |
M >
|
|
| (2.16) |
Define the energy density.
M >
|
|
| (2.17) |
Calculate the dust energy- momentum tensor T2.
M >
|
|
| (2.18) |
Evaluate the dust field equations E2 for the given u and mu.
M >
|
|
| (2.19) |
Check that the follow values for f(t) and h(t) solve the dust field equations.
M >
|
|
| (2.20) |
M >
|
|
| (2.21) |
Check the divergence identity for the dust energy-momentum tensor T2. The LHS is the covariant divergence of the energy-momentum tensor and the RHS is a combination of the field equations.
M >
|
|
| (2.22) |
M >
|
|
| (2.23) |
Example 3. "Electromagnetic"
First create a manifold M with base coordinates [t, x, y, z, t].
M >
|
|
| (2.24) |
Define a metric.
M >
|
|
| (2.25) |
Define an electromagnetic 4-potential A3.
M >
|
|
| (2.26) |
Calculate the electromagnetic energy-momentum tensor T3.
M >
|
|
| (2.27) |
Note that the energy-momentum tensor can also be computed from the field strength tensor F = dA.
M >
|
|
| (2.28) |
M >
|
|
| (2.29) |
Evaluate the electromagnetic field equations E3 for the given 4-potential A.
M >
|
|
| (2.30) |
Note that the electromagnetic field equations E3 can also be computed from the field strength tensor F = dA.
M >
|
|
| (2.31) |
Check the divergence identity for the electromagnetic energy-momentum tensor T3. The LHS is the covariant divergence of the energy momentum tensor and the RHS is a combination of the matter field equations.
M >
|
|
| (2.32) |
M >
|
|
| (2.33) |
We note that f1(x) = x^2, f2(x) = ln(x) is a solution of the electromagnetic field equations:
M >
|
|
| (2.34) |
The covariant divergence of the energy-momentum tensor vanishes on this solution:
M >
|
|
| (2.35) |
Example 4. "PerfectFluid"
First create a manifold M with base coordinates [t, x, y, z]:
M >
|
|
| (2.36) |
Define a metric.
M >
|
|
| (2.37) |
Define the normalized 4-velocity.
M >
|
|
| (2.38) |
M >
|
|
| (2.39) |
Define the energy density.
M >
|
|
| (2.40) |
Define the pressure.
M >
|
|
| (2.41) |
Calculate the perfect fluid energy-momentum tensor T4.
M >
|
|
| (2.42) |
Evaluate the fluid field equations E4 for the given fluid.
M >
|
|
| (2.43) |
We can use the dsolve command to find the energy density k(t) and the pressure h(t) which satisfy the matter field equations.
M >
|
|
| (2.44) |
M >
|
|
| (2.45) |
Example 5. "Scalar"
First create a manifold M with base coordinates [t, x, y, z].
M >
|
|
| (2.46) |
Define a metric.
M >
|
|
| (2.47) |
Define a scalar field.
M >
|
|
| (2.48) |
Calculate the energy- momentum tensor T5 for the scalar field phi5.
M >
|
|
| (2.49) |
Evaluate the matter field equations E for the given scalar field phi.
M >
|
|
| (2.50) |
Check the divergence identity for the scalar energy-momentum tensor T. The LHS is the covariant divergence of the energy-momentum tensor and the RHS is a combination of the matter field equations.
M >
|
|
| (2.51) |
M >
|
|
| (2.52) |
Example 6. "NMCScalar"
First create a manifold M with base coordinates [t, x, y, z].
M >
|
|
| (2.53) |
Define a metric.
M >
|
|
| (2.54) |
Define a scalar field
M >
|
|
| (2.55) |
Calculate the energy-momentum tensor T for the non-minimally coupled scalar field phi6.
M >
|
|
| (2.56) |
Evaluate the matter field equations E for the given scalar field phi6.
M >
|
|
| (2.57) |
Check the divergence identity for the scalar energy-momentum tensor T6. The LHS is the covariant divergence of the energy-momentum tensor and the RHS is a combination of the matter field equations.
M >
|
|
| (2.58) |
M >
|
|
| (2.59) |