> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Diamond Field

## About this Block

**What it does:** Creates an unbounded Scalar Field of a dimensionless Diamond Triply Periodic Minimal Surface ([**TPMS**](/block-documentation/blocks/lattices/implicit/tpms.html)). The following equation defines the field:

```
sin(x)*sin(y)*sin(z)+sin(x)*cos(y)*cos(z)+cos(x)*sin(y)*cos(z)+cos(x)*cos(y)*sin(z) = 0
```

The Cell size input specifies the size of the period for a single repetition in x, y, and z.

The amplitude of the distance field scales from -1 to 1 through one period of the pattern.

**Common uses:** Scalar Field input for a **Ramp** block.

**Tips:**

* View the field by using the Field Viewer (hot-key f).
* The values in the **Diamond Field** are unitless and do not represent an implicit body. Alternatively, the [**Diamond Body**](/block-documentation/blocks/lattices/periodic/diamond-body.html) block creates a similar field with distance units and an approximate distance field.

![Diamond Field](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/diamond_field.jpg)

***

Create an unbounded Scalar Field of a dimensionless Diamond periodic pattern, with values ranging from -1 to 1.

### Inputs

| Name      | Type                                                   | Description                                                                                 |
| --------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| Cell size | [Scalar](../../../../block-documentation/types/scalar) | Size of a single period of the Diamond function. Amplitude is normalized between -1 and +1. |

### Outputs

| Type                                                               |
| ------------------------------------------------------------------ |
| [Scalar Field](../../../../block-documentation/types/scalar-field) |
