Advanced

y⁺ Calculator — CFD Wall-Mesh Sizing

In CFD, y⁺ is the dimensionless wall distance that determines whether your mesh resolves or bypasses the viscous sublayer. Enter your flow conditions to find the required first cell height for a target y⁺, or supply the cell height to compute the actual y⁺ — using the Prandtl 1/7 power-law skin friction for a turbulent flat plate.

Mode

y⁺ ≈ 1: LES / DNS / k-ω low-Re • y⁺ 30–300: wall functions (high-Re)

m/s

m

Body length, pipe diameter, chord length, etc.

m²/s

Air at 20 °C: 1.5×10⁻⁵ • Water at 20 °C: 1.0×10⁻⁶ • Oil ≈ 1×10⁻⁴

kg/m³

Air at 20 °C sea-level: 1.225 • Water: 998 • Oil ≈ 850–900
First cell height y₁
0.0343

Distance from the wall to the centre of the first mesh cell — mm

Reynolds number Re
666,667
Skin friction C_f
3.828e-3
Wall shear stress τ_w
0.2345 Pa
Friction velocity u_τ
0.4375 m/s
First cell height y₁
3.429e-5 m
y⁺ (actual)
1
y⁺ recommended ranges: ≤1 for low-Re / LES, 30–200 for wall-function high-Re models: DNS/LES
Step by step
  1. 1

    Reynolds number Re = U × L ÷ ν

    10 × 1 ÷ 0.000015 = 666,667
  2. 2

    Skin friction C_f = 0.026 × Re^(−1/7)

    0.026 × 666,667^(−1/7) = 0.003828
    Prandtl 1/7 power-law estimate for a turbulent flat plate.
  3. 3

    Wall shear stress τ_w = C_f × ½ρU²

    0.003828 × ½ × 1.225 × 10² = 0.2345
  4. 4

    Friction velocity u_τ = √(τ_w ÷ ρ)

    √(0.2345 ÷ 1.225) = 0.4375
  5. 5

    First cell height y₁ = y⁺ × ν ÷ u_τ (in mm)

    1 × 0.000015 ÷ 0.4375 × 1000 = 0.0343
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

y⁺ = y·u_τ/ν, where u_τ = √(C_f·U²/2), C_f ≈ 0.026·Re^(−1/7). Target y⁺ ≤ 1 for low-Reynolds turbulence models (k-ω SST, LES); target y⁺ 30–200 for high-Reynolds wall functions (standard k-ε). Enter flow speed, length, fluid properties, and the desired y⁺ to get the required first cell height.

Formula
y⁺ = y · u_τ / ν • u_τ = √(τ_w / ρ) • τ_w = C_f · ½ρU² • C_f = 0.026 · Re^(−1/7)
How this is calculated

The dimensionless wall distance y⁺ = y·u_τ/ν measures how far the first mesh cell centre sits from the wall relative to the viscous length scale ν/u_τ. The friction velocity u_τ = √(τ_w/ρ) is derived from the wall shear stress τ_w. This calculator estimates τ_w from Prandtl's 1/7 power law for turbulent boundary layers on a flat plate: C_f = 0.026·Re^(−1/7), then τ_w = C_f·½ρU². The required first-cell height is y = y⁺·ν/u_τ.

The choice of target y⁺ depends on the turbulence model. For low-Reynolds-number models (k-ω SST with enhanced wall treatment, Spalart-Allmaras in low-Re mode), y⁺ ≤ 1 is required to resolve the viscous sublayer where the velocity profile is linear. For high-Reynolds-number wall functions (standard k-ε with log-law wall functions), y⁺ should be in the fully turbulent log-law region, typically 30–200; values below 30 land in the buffer layer (y⁺ 5–30) where neither the viscous nor log-law solution applies reliably.

Limitations: Prandtl's 1/7 power law is an empirical approximation valid for fully turbulent flat-plate flow and moderate Reynolds numbers (10⁵–10⁷). Real geometries have pressure gradients, separation, curvature, and roughness that shift τ_w substantially. Treat this estimate as a starting point; always check y⁺ contours in your solver after the first run and refine the mesh if needed.

Frequently asked questions

k-ω SST with automatic wall treatment (the default in OpenFOAM, Fluent, and most modern solvers) blends low-Re and wall-function behaviour. Aim for y⁺ ≤ 1–2 when your focus is near-wall accuracy (heat transfer, separation onset, skin friction). y⁺ up to about 5 is still acceptable. Avoid y⁺ in the buffer layer (5–30) for any model.

The Prandtl 1/7 law is a widely used first estimate because it depends only on the global Reynolds number, which is always known at the start of a meshing task. Real C_f depends on local pressure gradient and surface curvature, but the flat-plate value gives a reasonable order-of-magnitude first-cell estimate. If your geometry has strong adverse pressure gradients or bluff-body wakes, you may need to reduce y₁ by 30–50% as a safety margin.

Use a geometric series: after the first layer of height y₁, subsequent layers grow by a factor r (typically 1.1–1.3). Total boundary layer thickness covered in n layers is y₁·(rⁿ−1)/(r−1). Most CFD pre-processors (Ansys Meshing, snappyHexMesh, Gmsh) accept y₁ and r directly as inflation-layer parameters.

Also known as

y plus cfd calculator
wall y plus calculator
first cell height cfd meshing
cfd mesh wall distance calculator
boundary layer mesh sizing
friction velocity calculator
turbulent wall distance calculator
cfd near wall resolution

APA

TG we-Calculate Editorial Team. (2026). y⁺ Calculator — CFD Wall-Mesh Sizing [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/yplus-calculator

Chicago

TG we-Calculate Editorial Team. "y⁺ Calculator — CFD Wall-Mesh Sizing." TG we-Calculate. 2026. https://we-calculate.com/calculator/yplus-calculator.

IEEE

TG we-Calculate Editorial Team, "y⁺ Calculator — CFD Wall-Mesh Sizing," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/yplus-calculator

BibTeX

@misc{wecalculate_yplus_calculator, title = {y⁺ Calculator — CFD Wall-Mesh Sizing}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/yplus-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?