Calculate CFD y+ and first-cell wall distance from flow speed, viscosity, wall shear stress, or skin friction coefficient inputs for meshes.
Related Calculators
- Pipe Flow Calculator
- Air Density Calculator
- Velocity Calculator
- Flow to Velocity Calculator
- Pressure to Velocity Calculator
- Volumetric Flow Rate Calculator
- All Math and Numbers Calculators
Y+ Formula
Where the friction velocity is:
And the first cell-center distance for a target y+ is:
- y+ โ dimensionless wall distance
- y โ distance from the wall to the first cell center (m)
- u_tau โ friction velocity (m/s)
- tau_w โ wall shear stress (Pa)
- rho โ fluid density (kg/mยณ)
- nu โ kinematic viscosity (mยฒ/s)
- U โ freestream or reference flow speed (m/s)
- Cf โ local skin friction coefficient
For the first-layer estimate, Cf comes from smooth flat-plate correlations: Cf = 1.328/โRe for laminar flow and Cf โ 0.0592/Re0.2 for turbulent flow, with Re = UL/ฮฝ. These are first-cell estimates only. After running the simulation, recompute y+ from the solved wall shear stress and refine the mesh if needed.
Reference Values
Typical y+ ranges by near-wall treatment:
| Approach | Target y+ | Notes |
|---|---|---|
| Wall-resolved (low-Re, SST k-ฯ, Spalart-Allmaras) | y+ < 1 | Resolves the viscous sublayer. |
| Enhanced / blended wall treatment | y+ < 5 or y+ > 30 | Avoid the buffer zone. |
| Standard wall functions | 30 โค y+ โค 300 | Log-law region. |
| Buffer layer | 5 < y+ < 30 | Avoid placing the first cell here. |
Common fluid properties at 20ยฐC used by the calculator:
| Fluid | ฮฝ (mยฒ/s) | ฯ (kg/mยณ) |
|---|---|---|
| Air | 1.5 ร 10โปโต | 1.225 |
| Water | 1.004 ร 10โปโถ | 998 |
| Seawater | 1.05 ร 10โปโถ | 1025 |
| Light oil | 1.0 ร 10โปโด | 870 |
Example and FAQ
Example. A 1 m chord airfoil in air at 30 m/s, target y+ = 1. Re = 30 ร 1 / 1.5e-5 = 2.0 ร 10โถ. Cf โ 0.0592 / (2.0e6)0.2 โ 0.00328. u_tau = 30 ร โ(0.00328/2) โ 1.22 m/s. y = 1 ร 1.5e-5 / 1.22 โ 1.23 ร 10โปโต m, or about 0.012 mm.
Is y the first cell height or the cell-center distance? y is the distance from the wall to the first cell center. With a typical near-wall prism, the full first-layer thickness is about 2y.
Should I divide by 2 for a half-channel? No. y is measured from the wall, regardless of channel symmetry.
My solved y+ differs from the estimate. Expected. Flat-plate Cf is a starting point. Use the Check y+ tab with the solved wall shear stress (u_tau = โ(ฯw/ฯ)) and adjust the mesh.
What about pipe flow? Use hydraulic diameter as the characteristic length and the bulk velocity as U. For a more accurate first guess, substitute a pipe Cf correlation such as Cf = 0.079ยทRe-0.25 and use the Known shear/Cf tab.
