>
|
|
Example 1.
First create a 5-dimensional manifold and define a metric tensor on the tangent space of .
E >
|
|
M1 >
|
|
| (2.1) |
The standard basis is an orthonormal basis for and therefore the Hodge star is easily computed.
M1 >
|
|
| (2.2) |
M1 >
|
|
| (2.3) |
M1 >
|
|
M1 >
|
|
M1 >
|
|
Example 2.
To show the dependence of the Hodge star upon the metric, we consider a general metric on a 2-dimensional manifold.
M1 >
|
|
M2 >
|
|
| (2.7) |
M2 >
|
|
| (2.8) |
M2 >
|
|
| (2.9) |
M2 >
|
|
Example 3.
The Laplacian of a function with respect to a metric can be calculated using the exterior derivative operation and the Hodge star operator.
To illustrate this result, we use the Euclidean metric in polar coordinates .
M2 >
|
|
M3 >
|
|
| (2.12) |
To simplify the definition of the Laplacian, we define the Hodge operator with fixed.
M3 >
|
|
| (2.13) |
To display the Laplacian of in compact form we invoke the PDEtools[declare] command.
M3 >
|
|
| (2.14) |
Here is the formula for the Laplacian in terms of HodgeStar and ExteriorDerivative. Recall that @ is the composition of functions.
M3 >
|
|
| (2.15) |
Example 4.
The HodgeStar program also works in the more general context of a vector bundle .
M3 >
|
|
E >
|
|
| (2.17) |
E >
|
|
| (2.18) |
Example 5.
The HodgeStar operation can also be performed using an indefinite metric. The keyword argument detmetric = -1 must be used when the metric has negative determinant.
E >
|
|
M1 >
|
|
| (2.19) |
M1 >
|
|
M5 >
|
|