threePlusOneBuilder
Constructing a metric tensor from its 3+1 components.
Description
The solver in Warp Factory requires the metric tensor defined in the standard way, but constructing the spacetime in terms of its 3+1 foliation terms is often helpful. The builder function takes in the 3+1 components and constructs the metric for use in evaluating the stress-energy tensor and metric scalars.
For more general background on 3+1 formalism please read:
Method
The metric is constructed from the 3+1 terms as defined in the spacetime grid.
Syntax
[
Metric
] = threePlusOneBuilder(
alpha
,
beta
,
gamma
)
Input Arguments
alpha
4D array
double
Lapse rate.
beta
1x3 cell of 4D arrays
double
Shift vector.
gamma
3x3 cell of 4D arrays
double
Spatial terms.
Output Arguments
Metric
4x4 cell of 4D arrays
double
Returns the standard metric tensor constructed from the 3+1 components.
Last updated