> For the complete documentation index, see [llms.txt](https://applied-physics.gitbook.io/warp-factory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://applied-physics.gitbook.io/warp-factory/modules/metrics-module/metric-functions/setminkowskithreeplusone.md).

# setMinkowskiThreePlusOne

## Description

Builds and returns the 3+1 components for a flat Minkowski space.

## Method

Generates the lapse rate, shift vectors, and spatial terms for flat space.

## Syntax

`[`<mark style="color:green;">`alpha`</mark>`,`<mark style="color:green;">`beta`</mark>`,`<mark style="color:green;">`gamma`</mark>`] = setMinkowskiThreePlusOne(`<mark style="color:blue;">`gridSize`</mark>`)`

### Input Arguments

{% hint style="info" %} <mark style="color:blue;">blue</mark> are required inputs.
{% endhint %}

<table><thead><tr><th width="156">Inputs</th><th width="125">Format</th><th width="91">Type</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:blue;"><code>gridSize</code></mark></td><td>1x4 array</td><td>integer</td><td><p>Size of the world grid, given by the format of: </p><p></p><p><span class="math">[t,x,y,z]</span></p></td></tr></tbody></table>

### Output Arguments

<table><thead><tr><th width="205">Outputs</th><th width="144.33333333333331">Format</th><th width="94">Type</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:green;"><code>alpha</code></mark></td><td>4D array</td><td>double</td><td>Returns the lapse rate.</td></tr><tr><td><mark style="color:green;"><code>beta</code></mark></td><td>1x3 cell of 4D arrays</td><td>double</td><td>Returns the shift vector components.</td></tr><tr><td><mark style="color:green;"><code>gamma</code></mark></td><td>3x3 cell of 4D arrays</td><td>double</td><td>Returns the spatial components.</td></tr></tbody></table>
