Wall distance calculation methods
Understand the method used by the flow solver to calculate the wall distance.
Wall distance is used in turbulence models, such as Spalart-Allmaras, K-epsilon, K-omega and SST. The flow solver uses the following methods to compute the wall distance:
- Geometric search method.
- Partial differential equation (PDE) method.
The geometric search method provides more accurate results compared to the PDE method, for fluid nodes that are located far from the wall boundary. However, the geometric method requires more computation time.
Geometric search method
The flow solver uses the geometric search method to compute geometrically the exact distance from each fluid node to their closest no-slip wall boundary node. This method is useful when accurate wall distance is required in the fluid domain. With this method, computation time increases significantly by increasing the number of fluid nodes.
Partial differential equation method
The flow solver computes the wall distance function, ϕ, using the Poisson equation:
The no-slip wall boundary condition for the Poisson equation is:
The other types of boundary condition for the Poisson equation are defined as:
where:
- n is the normal to the boundary.
- xi are the Cartesian coordinates.
The wall distance, d, is computed as: