> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://applied-physics.gitbook.io/warp-factory/modules/metrics-module/metric-functions/setminkowskithreeplusone.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
