orange are optional inputs with native default values.
blue are required inputs
Inputs
Format
Type
Description
gridSize
1x4 array
integer
The size of the world specified as:
[t,x,y,z]
worldCenter
1x4 array
double
The center of the world, which defines the center of rs as a 4-vector, specified as:
[t,x,y,z]
rs
1x1 array
double
Schwarzschild radius, in unitless form.
gridScale
1x4 array
double
Unit scaling factor of the grid dimensions defined relative to gridSize. This determines the resolution of the grid along each dimension. Specified as:
[tscale,xscale,yscale,zscale]
The default value is [1, 1, 1, 1].
Output Arguments
Outputs
Format
Type
Description
metric
struct
object
Schwarzschild solution returned as the metric tensor object.