› CFD Near-Wall y⁺ Calculator Back
Fluid / CFD

CFD Near-Wall y⁺ Calculator

Calculate first-cell wall distance Δy and y⁺ for CFD near-wall mesh resolution from Reynolds number, fluid properties, and length scale. Compare wall-function and low-Re model requirements in a single chart.

Flow Conditions

10⁴10⁸
0.01 m100 m
0.1300
Key Formulas
$C_f \approx 0.058 \cdot Re^{-0.2}$
$\tau_w = C_f \cdot \rho U^2 / 2$
$u_\tau = \sqrt{\tau_w / \rho}$
$\Delta y = y^+ \cdot \nu / u_\tau$
Required Wall-to-First-Cell-Centre Distance Δy vs Reynolds Number (log-log)

Model assumption: This is an estimate for a turbulent boundary layer over a smooth flat plate. Laminar or transitional flow, internal pipe flow, separation, and strong pressure gradients need a different assessment. Selecting a turbulence model changes the guidance, not the calculation.

—
Wall-to-First-Cell-Centre Distance Δy
—
Friction Velocity u_τ (m/s)
—
Wall Shear Stress τ_w (Pa)
—
Recommended y⁺ Range

What is the First-Cell Wall Distance (Δy)?

🙋
What exactly is this "first-cell wall distance" or Δy? Why is it so important for CFD simulations?
🎓
Basically, it's the distance from a solid surface, such as a wing or pipe wall, to the centre of the first mesh cell. It's critical because it controls how accurately your simulation captures the complex, fast-changing flow in the "boundary layer." If Δy is too large, you miss crucial physics. Too small, and your simulation becomes unstable or takes forever to run. Try moving the "Target y⁺" slider above to see how Δy changes instantly.
🙋
Wait, really? So what's this "y⁺" value I'm targeting? And why does the "Turbulence Model" choice in the simulator change the recommended Δy?
🎓
Great question! y⁺ is a non-dimensional wall distance. In practice, different turbulence models are designed to work best with the flow physics captured at specific y⁺ ranges. For instance, the k-ε model often needs a y⁺ > 30, placing the first cell in the fully turbulent "log-law" region. With Low-Re treatment, k-ω SST can resolve the viscous sublayer at y⁺ ≈ 1; automatic treatments and wall functions have different requirements. Selecting a model changes the guidance shown here; consult your solver documentation for the appropriate wall treatment.
🙋
So if I'm simulating air over a car at highway speed, how do I use the Reynolds number and this tool to get my actual mesh size?
🎓
Exactly! First, you'd estimate the Reynolds number based on car length and speed. Then, in the simulator, you'd select "Air" as the fluid and a model like "k-ω SST" for accurate aerodynamics. For a Low-Re treatment resolving the viscous sublayer, set a target such as y⁺ ≈ 1. The tool uses the physics to calculate the precise Δy in meters. For a car, this might be a fraction of a millimeter—a wall-to-cell-centre distance to convert as needed for your meshing software.

Physical Model & Key Equations

The core of this calculation is linking the dimensional wall distance Δy to the non-dimensional y⁺ through the friction velocity u_τ, which depends on the flow's wall shear stress.

$$ y^+ = \frac{\Delta y \cdot u_τ}{\nu}$$

Where:
$y^+$ = Target non-dimensional wall distance (user input).
$\Delta y$ = First-cell wall distance in meters (the output).
$u_τ$ = Friction velocity ($\sqrt{\tau_w / \rho}$).
$\nu$ = Kinematic viscosity of the fluid.

To find $u_τ$, we relate it to the bulk flow using the skin friction coefficient $C_f$, which is a function of the Reynolds number ($Re$). A common empirical correlation for a turbulent flat plate is used here.

$$ C_f \approx \frac{0.058}{Re^{0.2}}\quad \text{and}\quad u_τ = U \sqrt{\frac{C_f}{2}} $$

Where:
$Re$ = Reynolds number ($UL/\nu$), based on user input.
$U$ = Characteristic free-stream velocity.
$C_f$ = Skin friction coefficient.
This allows the tool to compute Δy from your inputs of Re, y⁺, and fluid properties.

Real-World Applications

Aerodynamic Design (Cars & Aircraft): Engineers use this calculation to create meshes for simulating drag and lift. For instance, accurately capturing the boundary layer on a wing's surface is essential for predicting stall behavior and optimizing fuel efficiency. A wrongly sized first cell can lead to a 10-20% error in drag prediction.

Turbo-machinery (Pumps & Turbines): In designing a centrifugal pump, the mesh near the impeller blades and volute walls must resolve high shear and pressure gradients. The correct Δy ensures accurate prediction of efficiency, head rise, and cavitation risks, directly impacting the pump's lifespan and performance.

Heat Exchanger Analysis: For simulating conjugate heat transfer in a finned-tube heat exchanger, the thermal boundary layer is critical. The first cell distance dictates how well the simulation captures the temperature gradient from the wall into the fluid, which is necessary for calculating the overall heat transfer coefficient and sizing the equipment.

Building & Environmental Wind Studies: When modeling wind flow around a skyscraper to assess pedestrian comfort or wind loading, the mesh near the building surfaces must be tailored to the local wind speed (Reynolds number). This tool helps set up a reliable mesh for LES (Large Eddy Simulation) models, which are often used for such unsteady flow analyses.

Common Misconceptions and Points to Note

First, it is a misconception to think of the target y⁺ value as an absolute, inviolable "magic number." While guidelines are indeed important, aiming for y⁺≈1 with k-ω SST and Low-Re treatment, for example, can be nearly impossible to achieve on all wall surfaces for complex geometries. In practice, you should design your mesh to prioritize meeting the target y⁺ in physically critical flow regions like separation points, reattachment points, and areas of high shear stress. Deviations in other areas are often acceptable.

Check the mesher input definition: the calculated Δy is the wall-to-first-cell-centre distance. If the input specifies centre distance, use Δy. If it specifies full first-layer thickness and the centre is at the midpoint, use approximately 2Δy. The relation depends on cell geometry and the solver’s centre definition; check the software documentation. If Δy is mistakenly entered as full thickness, the centre distance and y⁺ are approximately half the target, assuming unchanged friction velocity and viscosity.

Finally, do not underestimate the importance of setting material properties and representative velocity/length. For instance, in external aerodynamics of a car, whether you use the "overall length" or the "wheelbase" as the representative length can drastically change the Reynolds number, leading to an order of magnitude difference in the required Δy. Also, it's easy to forget that the kinematic viscosity ν of air changes with temperature. The required mesh size can differ between summer and winter conditions, even at the same velocity.

How to Use

  1. Set Reynolds Number Re with the slider or its numeric box. The box is log₁₀(Re): enter 6 for Re = 10⁶ and check the displayed Re value.
  2. Set Reference Length L in metres; for a flat plate use the length along the flow from the leading edge.
  3. Select Air (20°C), Water (20°C), or Custom. For Custom, enter density ρ in kg/m³ and dynamic viscosity μ in units of 10⁻⁵ Pa·s; the calculator derives ν = μ/ρ.
  4. Set Target y⁺ and choose a Turbulence Model for reference guidance. The selection changes the guidance, not the calculation.
  5. Read the automatically updated wall-to-first-cell-centre distance Δy, friction velocity and wall shear stress. Check whether your mesher expects centre distance or full first-layer thickness.

Worked Example

For a turbulent flat-plate estimate, set Re = 10⁶ (enter 6 in the log₁₀(Re) box), Reference Length L = 1 m, Fluid = Air (20°C), Target y⁺ = 1, and Turbulence Model = k-ω SST. For this example, y⁺ = 1 is a possible target when the CFD solver uses Low-Re treatment. The air preset uses ρ = 1.204 kg/m³ and μ = 1.825×10⁻⁵ Pa·s. Results update automatically.

Here ν = μ/ρ ≈ 1.516×10⁻⁵ m²/s and U = Re ν/L ≈ 15.16 m/s. With C_f = 0.058 Re⁻⁰·² ≈ 0.003660, τ_w = C_f ρU²/2 ≈ 0.5062 Pa and u_τ = √(τ_w/ρ) ≈ 0.6484 m/s. Thus Δy = y⁺ν/u_τ ≈ 2.338×10⁻⁵ m = 23.38 μm, the wall-to-first-cell-centre distance. For a midpoint centre, the corresponding full first-layer thickness is approximately 46.76 μm.

This is an estimate from the calculator's turbulent flat-plate correlation, not a prediction of local wall shear on a complex geometry. Verify the resulting y⁺ in the CFD solution.

Practical Notes

  1. For separated flow (nacelle inlets, cavities), reduce y⁺ target by 30–50% and increase normal resolution near recirculation; k-ε struggles below y⁺=30.
  2. High-Reynolds pipe flow (Re_D>100,000) with wall functions: y⁺=30–300 avoids viscous sublayer resolution but demands coarser boundary-layer mesh; Δy scales inversely with friction velocity u_τ; use a suitable pipe-flow friction correlation or wall shear stress, since this tool uses a flat-plate correlation.
  3. Hybrid RANS-LES: choose near-wall resolution for the selected wall treatment and check the required wall-parallel and wake resolution for the solver and flow.
  4. Compressible effects (Mach>0.3): use ν(T) via Sutherland law; local Mach spike reduces ν by ~20%, concentrating y⁺ near shock foot.