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

# How to model a gyroid using the Periodic Lattice block

## Objective:

Learn how to model a gyroid lattice structure by using the **Periodic Lattice** block.

## Procedure:

Gyroids are Triply Periodic Minimal Surfaces (TPMS). They are frequently used in engineering applications because they possess a high surface area relative to their volume, which significantly increases heat transfer efficiency.

1. **Define the Design Space:** Start with any Implicit Body to serve as the volume you wish to fill with the lattice. In this example, we will use a Cylinder block as the design space.
   * In this example, we will use a simple **Cylinder** block as the design space.

**2. Select the Unit Cell:**

* Add a **Walled TPMS Unit Cell** block to the *Unit Cell* input of the **Periodic Lattice** block.
* Set the Unit Cell type to **Gyroid**.
* Enter an *Approx. Thickness* of **1 mm**.

**3. Define the Cell Map:**

* Add a **Rectangular Cell Map** block to the *Cell Map* input.
* Set the *Cell Size* to **5, 5, 5 mm** (or your desired periodicity).
* *Note:* You can drag your initial Design Space (Cylinder) into the *Volume* input of the Cell Map to ensure the map covers the part geometry.

**4. Trim the Lattice:**

* Add a **Trim Lattice** block.

  * Drag and drop your **Periodic Lattice** block into the *Lattice* input.
  * Drag and drop your Design Space (**Cylinder**) into the *Body* input.

<Tip>
  **Tip:** If you require a solid body for Boolean operations (like a union with a solid shell), you can use a Boolean Intersect block instead of Trim Lattice, but note that this converts the lattice immediately to an Implicit Body.
</Tip>

![the image shows the design space created using a cylinder block, a lattice structure created with gyroid unit cell and periodic lattice block with Boolean intersect in the end to trim it.](https://files.learn.ntop.com/help-articles/lattices/46843475830931.png)And that's it! You've successfully created a gyroid infill. If you want to build a complete Heat Exchanger, follow this [course](https://learn.ntop.com/courses/intro-to-two-channel-heat-exchangers-in-ntop/).

Are you still having issues? Contact the [support team](https://support.ntopology.com/hc/en-us/requests/new), and we'll be happy to help!

## Download the Example file:

* [Example File](https://files.learn.ntop.com/Support%20Article%20Example%20Files/Knowledge%20Base/Lattices/how_to_model_a_gyroid.ntop)

## Keywords:

*Gyroid boolean intersect lattice TPMS create body example with model working periodic creating TPMS structure heat exchanger infill*
