> ## 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 run a flow analysis

## Summary:

Ready to dive into fluid simulation with nTop? Learn how to perform a fluid analysis.

## Applies to:

* nTop 5.23 or later, as this is when nTop Fluids was introduced.

## Procedure:

Before we start, please ensure you have generated the Fluid Geometry.

* Fluid Geometry: Have an implicit body that defines your internal fluid domain.
  * For example, this could be a manifold's negative space, the heat exchanger's internal channels, or any other part through which fluid will flow.

<Card>
  <table><tbody> <tr> <td><strong>Pipes</strong></td> <td><strong>Manifolds</strong></td> <td><strong>Cold plates</strong></td> </tr> <tr> <td>  <img alt="Pipe geometry that can be used for an nTop Fluids Flow Analysis" src="https://files.learn.ntop.com/help-articles/fluids/41462581217683.png" /></td> <td>  <img alt="Manifold geometry that can be used for an nTop Fluids Flow Analysis" src="https://files.learn.ntop.com/help-articles/fluids/41462581226003.png" /></td> <td>  <img alt="Cold plate geometry that can be used for an nTop Fluids Flow Analysis" src="https://files.learn.ntop.com/help-articles/fluids/41462609513875.png" /></td> </tr> </tbody></table>
</Card>

1. Review the Fluid Geometry. For this example, we are starting with CAD Geometry, but you can also create your fluid geometry using Modeling blocks in nTop.

![CAD geometry that has been imported into nTop](https://files.learn.ntop.com/help-articles/fluids/41627215330323.png)

2. Add a **Flow Analysis** block

![The Flow Analysis block that is used to run fluid simulations in nTop](https://files.learn.ntop.com/help-articles/fluids/41627253914131.png)

2. We need to add a **Simulation Model** (Virtual Model overload) as the Model input of the Flow Analysis block. You'll use its "Virtual Model" overload for flow analysis.

A Virtual Model is designed for simulations that don't require traditional body-fitted meshing in nTop, like LBM-based CFD. It acts as a container for your simulation setup.

![An example setup of a Simulation Model used to run a Flow Analysis](https://files.learn.ntop.com/help-articles/fluids/41627253915027.png)

* * Add a **Fluid Domain**: This block defines the region where the fluid flow will be simulated. You'll input your implicit body representing the fluid volume here.
    * Add a **Fluid Attribute**: This block assigns material properties to your Fluid Domain. You'll specify the type of fluid using the **Isotopic Fluid Property** block (e.g., Water, Air) and its relevant characteristics (Density, Kinetic Viscosity). **Water** and **Air** blocks are directly available for use.

<Note>
  *Note: These blocks will differ from traditional Structures setup in nTop as they are tailored for methods like LBM, streamlining the setup for complex implicit geometries.*
</Note>

3. Once we have added the Domain, we need to move the input of the Flow Analysis block's Boundary Conditions ([How to use a CAD Face in a boundary condition](/help-articles/knowledge-base/structures/how-to-use-a-cad-face-in-a-boundary-condition)). For our example, we will use two **Velocity** Inlets and one **Pressure** Outlet.

<Note>
  *Note: To run **Flow Analysis**, you need at least one pressure and one velocity boundary condition, and outlets need to have the same pressure value.*
</Note>

**Every remaining boundary not defined as a Velocity or Pressure boundary is set to a no-slip boundary condition.**

![A diagram showing how boundary conditions are applied to pipe geometry for a Flow Analysis](https://files.learn.ntop.com/help-articles/fluids/41627215336723.png)

| **First Inlet (Velocity)** 1. Drag in a **Velocity** block 2. Switch to the CAD overload and then select the Inlet Face 1 3. Enter the Velocity Vector value (0,10,0) | **Second Inlet (Velocity)** 1. Drag in a **Velocity** block 2. Switch to the CAD overload and then select the Inlet Face 2 3. Enter the Velocity Vector value (10,0,0) | **Outlet (Pressure)** 1. Drag in a **Pressure** block 2. Switch to the CAD overload and then select the Outlet Face 3. Enter the Magnitude of 0 Pa. |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |

![An example setup of a Flow Analysis including boundary conditions and the Simulation Model](https://files.learn.ntop.com/help-articles/fluids/41627215338387.png)

4. The last input of the **Flow Analysis** block is Cell Size. This is the size of the cells used to create a Cartesian grid across your domain. For this example, we can use a value of 5mm.

<Tip>
  **Tips on Cell Size:**
</Tip>

* The flow analysis uses a uniform Cartesian mesh, defined by a single parameter: Cell Size.
* For quantitative results, use at least seven cells to resolve the smallest flow diameter, gap, or hole; for turbulent boundary layers, 20+ cells are recommended.
* At least three cells should resolve the smallest flow features for qualitative results. Smallest Flow Feature

![A diagram showing the smallest acceptable cell size for a fluid when running a Flow Analysis](https://files.learn.ntop.com/help-articles/fluids/41627215339795.png)

* Solid structures should be resolved with at least two cells.

![A diagram showing the smallest acceptable cell size for a solid body when running a Flow Analysi](https://files.learn.ntop.com/help-articles/fluids/41627253920531.png)

* Memory estimation: Ten million cells require approximately one GB of dedicated GPU memory. The following calculation provides a conservative estimate of the required GPU memory (in GB)

![memory\_estimation.png](https://files.learn.ntop.com/help-articles/fluids/50321603109267.png)5. While the **Flow Analysis** is running, you can see the progress updated in the Bottom Panel (Ctrl +3)

![The log panel in nTop displaying each calculation step of the Flow Analysis process](https://files.learn.ntop.com/help-articles/fluids/41627215343507.png)

7. Once the Flow Analysis is completed, we can review the results. Isolate the **Flow Analysis** block to visualize the results.

![Visualized results of an example Flow Analysis through a pipe](https://files.learn.ntop.com/help-articles/fluids/41627253922323.png)

When you toggle the Pressure option on the HUD, you can switch between different available results such as Velocity and Pressure.

The default Display Mode is Domain, but you can switch it to visualize Streamlines in the Display tab of the Right Panel.

![Flow analysis results example with blue number bubbles to indicate how to change the display settings](https://files.learn.ntop.com/help-articles/fluids/41627215344915.png)

## Visualized results of an example flow analysis with the display set to Streamlines

**Streamline Settings:**

Seed Count: This input allows you to control the number of seed points. Increase the number for a denser, streamlined plot.

Specify Seed: When you check this input, you can place a Sphere with Center \[mm] and Radius \[mm] to specify the region where you want to select the seed points.

**Flow Analysis Results on Boundary**

We have a **Flow Analysis Results on Boundary**, which allows you to calculate the average value of the Flow Analysis results, such as Velocity and Pressure, on the selected Boundary. Like other analysis blocks in nTop, **Flow Analysis** block will have access to all the underlying fields from which you can calculate values.

![An example of how to use the Flow Analysis Results on Boundary block using the Flow Analysis results ](https://files.learn.ntop.com/help-articles/fluids/41627215346835.png)

That's it: you have completed your flow analysis.

## Attachment:

* [Flow Analysis](https://files.learn.ntop.com/Support%20Article%20Example%20Files/Knowledge%20Base/Fluids/flow_analysis.ntop)

## Keywords:

*analysis fluid flow cfd document fluids*
