Note: this is an old post. The updated post series from 2020 is LEAP's 3-Part Series on "What y+ should I use in my simulations?" which is available here:
- Part 1 – Understanding the physics of boundary layers
- Part 2 – Resolving each region of the boundary layer
- Part 3 – Understanding impact of Y+ and number of prism layers on flow resolution
Old Post continues here:
In previous posts we have stressed the importance of using an appropriate value in combination with a given turbulence modelling approach. Today we will help you calculate the correct first cell height () based on your desired value. This is an important first step as the global mesh resolution parameters will also be influenced by this near-wall mesh as well as the Reynolds number.
Let's review the two main choices we have in choosing a near-wall modelling strategy:
Resolving the Viscous Sublayer
- Involves the full resolution of the boundary layer and is required where wall-bounded effects are of high priority (adverse pressure gradients, aerodynamic drag, pressure drop, heat transfer, etc.)
- Wall adjacent grid height must be order
- Must use an appropriate low-Re number turbulence model (i.e. Shear Stress Transport)
Adopting a Wall Function Grid
- Involves modelling the boundary layer using a log-law wall function. This approach is suitable for cases where wall-bounded effects are secondary, or the flow undergoes geometry-induced separation (such as many bluff bodies and in modern automotive vehicle design).
- Wall adjacent grid height should ideally reside in the log-law region where
- All turbulence models are applicable (e.g. Shear Stress Transport or k-epsilon with scalable wall functions)
During the pre-processing stage, we need to estimate the first cell height ( ) so that our falls within the desired range. The computed flow-field will dictate the actual value which in reality will vary along the wall. In some cases, we may need to locally refine our mesh to achieve the desired value in all regions.
So how to calculate the First Cell Height for a desired Y+ value?
Firstly, we should calculate the Reynolds number for our model based on the characteristic scales of our geometry such that:
where and are the fluid density and viscosity respectively, is the freestream velocity, and is the characteristic length (e.g. pipe diameter, body length, etc.).
The definition of the value is such that:
The target value and fluid properties are known a priori, so we need to calculate the frictional velocity , which is defined as:
The wall shear stress, can be calculated from skin friction coefficient, , such that:
The ambiguity in calculating surrounds the value for . Empirical results have been used to provide an estimate to this value:
|Flow Type||Empirical Estimate|
We can then input these known values into the above equations to estimate our value for .
When considering simple flows and simple geometry, we might find this correlation is highly accurate. However, when considering complex geometry, refinement in the boundary layer may be required to ensure the desired value is achieved. In these cases, you can choose to re-mesh in ANSYS Meshing or use anisotropic mesh adaption (ie. adaption of local cells only in the wall-normal direction) to achieve your desired Y+ value across the entire model. Please leave a comment below or contact our support line if you have any questions.
For the lazy CFD-ers out there, we have written an applet for you to estimate the cell height quickly.