getScalars
Last updated
Last updated
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.
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).
[
expansionScalar
,
shearScalar
,
vorticityScalar
] = getScalars(
metric
)
blue are required inputs
Metric
struct
object
Input metric tensor.
expansionScalar
4x4 array
double
Returned expansion scalar at all spacetime points.
shearScalar
4x4 array
double
Returned shear scalar at all spacetime points.
vorticityScalar
4x4 array
double
Returned vorticity scalar at all spacetime points.