A function that plots slices of the tensor objects.
Selects data from the spacetime plane and plots a surface for all unique terms of the tensor passed in.
plotTensor(tensor, alpha ,slicedPlanes, sliceLocations)
plotTensor(
tensor
,
alpha
slicedPlanes
sliceLocations
)
blue are required inputs.
orange are optional inputs with native default values.
struct
object
Input metric tensor object. Must be a "metric" or "stress-energy" type.
1x1 array
double
The alpha scale of the surface grid, ranges from 0 to 1. The default value is 0.2.
slicedPlaned
1x2 array
Select the two dimensions to slice along, where the dimensions are from 0 to 1. The default value is [1, 4].
sliceLocation
Selects the center value of the midPlane. The default value is half of the grid size of the tensor dimensions specified in slicedPlanes.
No data outputs. Generates figures with the plotting data.
Last updated 2 years ago