# Wall models

> Documentation version: 3.0
> HTML: https://docs.flarelive.manifolddynamics.com/manual/fluids/wall-models.html
> [Complete contents](https://docs.flarelive.manifolddynamics.com/contents.md) · [Agent index](https://docs.flarelive.manifolddynamics.com/llms.txt)

Gen 2 offers two wall models for mesh FluidBoundary interaction:

| Model | Use |
| --- | --- |
| **NoSlip** | Fluid at the wall follows the actual surface velocity. Use this for a no-slip baseline. |
| **CappedNavierSlip** | Default boundary condition. Allows tangential slip relative to the surface, controlled by a slip length and maximum ratio. |

Both models retain boundary handling and force exchange on both sides of a surface. The Side setting below chooses where the slip correction applies.

## Set the solver default

1. Select **Blocks Fluid Gen 2** in World.
2. In Inspector, expand **Boundary** and leave it enabled.
3. Expand **Wall model** and choose **Model**.
4. For CappedNavierSlip, set **Slip length cells**, **Maximum slip ratio** and **Side**.

The solver starts with **CappedNavierSlip**, a slip length of **2 cells**, a maximum slip ratio of **1.0**, and **NormalSide**.

## Override one mesh

Add **Fluid Boundary Settings** as a child of the Triangle Mesh Shape or Skinned Mesh Shape you want to configure.

- **Inherit** uses the solver's wall model and its parameters.
- **NoSlip** makes this mesh no-slip independently of the solver default.
- **CappedNavierSlip** enables local slip parameters for this mesh.

This same component can override **Two way coupling**. Enabling it computes the mesh load and applies it to its owning rigid body when one exists. The solver defaults to dynamic two-way coupling on and static two-way coupling off.

## Choose the slip parameters

| Setting | Meaning and example |
| --- | --- |
| Slip length cells | Length measured in fluid cells. At 0.01 m resolution, 2 cells means 0.02 m; halving cell size halves that physical length if the setting stays 2. |
| Maximum slip ratio | Accepts values from 0 to 1 inclusive. At 1.0 the slip length and local wall distance determine the fraction. At 0.8 the fraction is capped at 80%. |
| NormalSide | Apply slip on the side pointed to by the hit triangle's geometric face normal. |
| OppositeSide | Apply slip on the other side. |
| BothSides | Apply slip on both sides. |

For a consistently outward-oriented closed mesh, NormalSide is outside. Check source triangle orientation when choosing a side; smoothed shading normals serve rendering and can differ from geometric face normals.

## Compare a wall-model trial

Keep cell size, geometry, motion/control inputs and measurement window equal. Run NoSlip, then CappedNavierSlip, and compare the force/motion time series. The [Brizo tutorial](https://docs.flarelive.manifolddynamics.com/manual/tutorials/brizo/index.md) supplies a 2-cell, 0.8-cap example.

For quantitative use, compare with measured or reference data and test resolution sensitivity. When holding a physical slip length constant, adjust Slip length cells as cell size changes.

## Discrete relation

The model uses a local plane at each intersected triangle. Let `d` be the node's normal distance to that plane in cell units. The slip fraction is:

```text
alpha = min(maximum_slip_ratio, slip_length_cells / (slip_length_cells + d))
```

The effective wall velocity equals the actual surface velocity plus `alpha` times the tangential component of local fluid velocity relative to that surface. Reaching the ratio cap changes the effective slip length; record both length and cap when reporting results.

See [Gen 2](https://docs.flarelive.manifolddynamics.com/reference/fluids/gen2.md) and [Fluid Boundary Settings](https://docs.flarelive.manifolddynamics.com/reference/fluids/boundary-settings.md) for exact property paths and defaults.
