> 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/setminkowski.md).

# 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

`[`<mark style="color:green;">`metric`</mark>`] = setMinkowski(`<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="98">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="144">Outputs</th><th width="144.33333333333331">Format</th><th width="86">Type</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:green;"><code>metric</code></mark></td><td>4x4 cell of 4D arrays</td><td>double</td><td>Returns the metric tensor 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:

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

The question should be specific, self-contained, and written in natural language.
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.
