The open source CFD toolbox
Mesh-wave wall distance

# Properties

Fast topological mesh-wave method for calculating the distance to nearest patch for all cells and boundary.

For regular/un-distorted meshes this method is accurate but for skewed, non-orthogonal meshes it is approximate with the error increasing with the degree of mesh distortion. The distance from the near-wall cells to the boundary may optionally be corrected.

An example of meshWave output in terms of the wall distance can be seen as follows:

Wall distance field by meshWave

# Usage

The scheme is specified using:

wallDist
{
method          meshWave;

// Optionally correct distance from near-wall cells to the boundary
correctWalls    true;
}


Source code