setMinkowski

Description

Builds the metric tensor components for a flat Minkowski space.

Method

Generates the 4D array of values for flat space in a 4x4 cell.

Syntax

[metric] = setMinkowski(gridSize)

Input Arguments

blue are required inputs

InputsFormatTypeDescription

gridSize

1x4 array

integer

Size of the world grid, given by the format of:

[t,x,y,z][t,x,y,z]

Output Arguments

OutputsFormatTypeDescription

metric

4x4 cell of 4D arrays

double

Returns the metric tensor components.

Last updated