getScalars
Description
The properties of the metric can be explored by comparing geometric properties such as the expansion, shear, and vorticity scalars. Each of these scalars is built from the metric tensor and evaluated at each point in spacetime using projections of the metric on a timelike vector field.
Method
The finite difference methods are used to compute the covariant derivatives for the metric scalars. The 3+1 function is also used to define the observer vector field.
Currently, only the Eulerian observer vector field is used in Warp Factory.
The Eulerian observer vector field results in a Vorticity Scalar that is always zero (within the numerical noise threshold).
Syntax
[
expansionScalar
,
shearScalar
,
vorticityScalar
] = getScalars(
metric
)
Input Arguments
blue are required inputs
Inputs | Format | Type | Description |
---|---|---|---|
| struct | object | Input metric tensor. |
Output Arguments
Outputs | Format | Type | Description |
---|---|---|---|
| 4x4 array | double | Returned expansion scalar at all spacetime points. |
| 4x4 array | double | Returned shear scalar at all spacetime points. |
| 4x4 array | double | Returned vorticity scalar at all spacetime points. |
Last updated