🔬
🔬 Science & engineering

Y+ Calculator (first cell height for a CFD mesh)

Results update as you type.

Your numbers

Understanding the y+ calculator — concept and principle

In computational fluid dynamics (CFD), the height of the first mesh cell next to a wall decides whether the solver can resolve the thin viscous layer of the boundary layer. This calculator estimates that first cell height for a target y+ before you build the mesh, using a flat-plate turbulent skin-friction correlation.

y+ wall spacingFirst cell height for y+ = 1Air speed20 m/sLength1 mTarget y+1Re 1,353,591 → Cf 0.00346τw 0.8476 Pa → uτ 0.8318 m/sFirst cell Δy0.01776 mmRegimeTurbulentAn estimate; check y+ after the run
A flat-plate friction estimate puts the first cell 17.8 µm from the wall.

How it is calculated

Re = ρ U L ÷ μ

Cf = 0.026 × Re^(−1/7)

τw = ½ × Cf × ρ × U²

uτ = √(τw ÷ ρ)

Δy = y+ × μ ÷ (ρ × uτ)

The principle

Near a wall, velocity drops to zero, and in a very thin layer viscosity dominates. Turbulence scientists describe this region in "wall units": distances scaled by the viscous length ν ÷ uτ, where the friction velocity uτ comes from the wall shear stress. y+ is the wall distance measured in these units. Different turbulence models need different y+ for the first cell: wall-resolved approaches typically aim for y+ around 1, while wall functions expect the first cell further out in the log layer. Because shear stress is unknown before the simulation, an empirical flat-plate formula supplies a first guess.

Worked example

Default inputs: U = 20 m/s, L = 1 m, ρ = 1.225 kg/m³, μ = 1.81 × 10⁻⁵ Pa·s, target y+ = 1.

  1. Re = 1.225 × 20 × 1 ÷ 0.0000181 = 1,353,591.
  2. Cf = 0.026 × 1,353,591^(−1/7) = 0.00346.
  3. τw = 0.5 × 0.00346 × 1.225 × 20² = 0.8476 Pa.
  4. uτ = √(0.8476 ÷ 1.225) = 0.8318 m/s.
  5. Δy = 1 × 0.0000181 ÷ (1.225 × 0.8318) = 0.00001776 m = 0.01776 mm; viscous length = 17.76 µm.
  6. Re ≥ 5 × 10⁵, so the regime check reads Turbulent.
How First cell height Δy (mm) changes with Free-stream velocity U (m/s)How First cell height Δy changes with Fr…00.020.040.060.085101520253040Example: 0.01776Free-stream velocity U (m/s)
Each point is the calculator re-run with only “Free-stream velocity U (m/s)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Free-stream velocity U (m/s)First cell height Δy (mm)
50.06435
100.03381
150.0232
200.01776
250.01444
300.01219
400.009332

How to read the result

Use Δy as the first layer thickness, then grow layers outward with a modest growth ratio until the boundary layer is covered. After the first solution, plot the actual y+ on the walls; it varies along the surface, peaking near leading edges and dropping near separation. If it misses the target, adjust the mesh and rerun.

Common mistakes

Keep in mind: The correlation is for a smooth flat plate in zero pressure gradient. Always check y+ on the converged solution and follow your solver's guidance for the chosen turbulence model.

Frequently asked questions

What y+ should I aim for?

It depends on the turbulence model; wall-resolved models typically need y+ near 1, wall functions much higher values.

Why does y+ change along the wall?

Wall shear stress varies with local flow speed and pressure gradient.

What viscosity should I use for air?

About 1.81 × 10⁻⁵ Pa·s near 15–20 °C; it rises with temperature.

Does a smaller first cell always help?

Not necessarily; it increases cell count and can hurt convergence if far smaller than needed.

Sources: Standard boundary-layer relations: wall units y+ = ρuτy/μ and flat-plate turbulent skin-friction correlation Cf ≈ 0.026 Re^(−1/7)

Checked 9 Nov 2026. Wall units y+ = ρuτy/μ and flat-plate turbulent skin-friction correlation Cf ≈ 0.026 Rex−1/7: standard formula. Transition near Re ≈ 5 × 10⁵: standard value.

🔬 All science & engineering tools →🌍 Calculators by country →