Understanding the Boundary Layer
When fluid flows past a solid surface, a thin region of dramatically reduced velocity forms adjacent to the wall. This boundary layer exhibits velocity gradients far steeper than the free stream, where viscous forces dominate inertial forces. Particles in direct contact with the surface experience a no-slip condition—velocity matching the wall itself, typically zero for stationary boundaries.
The boundary layer's thickness grows downstream along the surface. Within this region, momentum and energy transfer occur through viscous shear. Accurate CFD predictions require adequate mesh resolution to capture these steep gradients, particularly near the wall where turbulence characteristics change fundamentally.
Wall Functions and Near-Wall Modelling
Most industrial turbulence models (k-ε, k-ω) assume fully developed turbulent conditions and lose validity very close to walls. Rather than refining mesh densely throughout the boundary layer—which multiplies element count dramatically—wall functions provide a bridge. They enforce boundary conditions and interpolate flow properties across the near-wall zone without resolving every viscous sublayer detail.
The y+ parameter controls this strategy: low values (y+ < 1) require fine wall-normal resolution and resolve the viscous sublayer explicitly; moderate values (y+ ≈ 30–300) use wall functions; high values (y+ > 300) neglect near-wall physics entirely, suitable only for inviscid flows. Selecting the correct range directly impacts computational expense and accuracy.
Core Relationships in Boundary Layer Analysis
Wall distance calculations depend on five interrelated quantities: Reynolds number characterises the flow regime, skin friction coefficient quantifies wall shear intensity, shear stress represents the viscous force per unit area, and friction velocity scales the turbulent velocity field. These parameters connect through the following expressions:
Re = (ρ × U∞ × L) ÷ μ
τw = 0.5 × Cf × ρ × U∞²
u* = √(τw ÷ ρ)
y = (y+ × μ) ÷ (ρ × u*)
Re— Reynolds number based on boundary layer lengthρ— Fluid density (kg/m³)U∞— Freestream velocity (m/s)L— Boundary layer reference length (m)μ— Dynamic viscosity (Pa·s)τw— Wall shear stress (Pa)Cf— Skin friction coefficient (dimensionless)u*— Friction velocity (m/s)y+— Dimensionless wall distance (dimensionless)y— Physical wall distance for first mesh node (m)
Practical Guidance for Mesh Design
Common pitfalls when applying y+ calculations to CFD workflows:
- Turbulence model selection limits y+ validity — Wall functions suit k-ε models and higher Reynolds number flows; resolving the sublayer (y+ < 1) requires robust low-Reynolds formulations like k-ω SST or direct numerical simulation capability. Mismatching model and y+ range produces unrealistic separation or shear prediction.
- y+ varies along the surface — Reynolds number grows downstream as the boundary layer thickens. A constant y+ value upstream may violate wall function assumptions near the trailing edge. Advanced meshing strategies cluster cells in separated regions where pressure gradients amplify.
- Compressibility and heat transfer complicate scaling — At high Mach numbers or with significant temperature gradients, viscosity and density vary nonlinearly across the boundary layer. Using inlet properties alone underestimates local y+ values; surface-temperature-corrected viscosity often yields more robust results.
- Mesh refinement requires exponential growth ratios — Achieving y+ = 0.5 from y+ = 100 demands roughly 200 layers or extreme growth factors. Progressive refinement studies—coarse, medium, fine meshes—reveal convergence and identify minimal sufficient resolution before committing to production simulations.
Worked Example: Flow Over a Flat Plate
Consider air flowing at 10 m/s over a 1 m flat plate. Using standard air properties (ρ ≈ 1.205 kg/m³, μ ≈ 1.805 × 10⁻⁵ Pa·s) and targeting y+ = 1 for explicit sublayer resolution:
Step 1: Calculate Reynolds number
Re = (1.205 × 10 × 1) ÷ (1.805 × 10⁻⁵) ≈ 667,590
Step 2: Determine skin friction coefficient
Using Prandtl approximation: Cf = 0.074 × Re⁻⁰·² ≈ 0.00364
Step 3: Compute shear stress
τw = 0.5 × 0.00364 × 1.205 × 10² ≈ 0.219 Pa
Step 4: Derive friction velocity
u* = √(0.219 ÷ 1.205) ≈ 0.427 m/s
Step 5: Solve for wall distance
y = (1 × 1.805 × 10⁻⁵) ÷ (1.205 × 0.427) ≈ 3.5 × 10⁻⁵ m ≈ 0.035 mm
This 35 μm spacing ensures proper sublayer capture across a production mesh.