y+ calculator
Find the first cell height for a target y+, then size the boundary layer and prism layer stack for Simcenter STAR-CCM+.
How to use the y+ calculator
1. Choose the fluid and the flow type. External flow runs over a body; internal flow runs through a pipe or duct. Air and water at 20 °C fill in density and viscosity. Choose Custom for anything else.
2. Enter the velocity, the reference length and the y+ you want at the wall. The first cell height Δy1 updates as you type. This is the value to use as the prism layer near-wall thickness.
3. Check the boundary layer thickness in step 2. It tells you how much of the boundary layer your prism layer covers.
4. Set the stretching ratio and the number of layers in step 3, then copy the values into the prism layer default controls of your automated mesh operation. In step 4, compare the last layer with your core mesh size, so the mesh grows smoothly away from the wall.
Which y+ should you aim for?
The right target depends on how your turbulence model treats the wall. Keep the first cell either in the viscous sublayer or in the log layer, not in between.
Not sure which turbulence model or wall treatment to use? The Turbulence model selector recommends both for your case.
Formulas, assumptions and validity
The calculator estimates the wall shear stress from skin-friction correlations for a smooth flat plate (external flow) or a smooth pipe (internal flow), then solves the definition of y+ for the wall distance.
ReL = ρUL / μ (1)
Cf = 0.058 Rex−1/5 (2)
External flow, evaluated at x = L: local skin friction on a smooth, fully turbulent flat plate (Prandtl, 1/7-power velocity profile), about 5 × 105 < Rex < 107.
Cf = 0.079 ReD−1/4 (3)
Internal flow: Blasius, smooth pipe, Fanning friction factor, about 4 × 103 < ReD < 105.
τw = ½ Cf ρU2 (4)
uτ = √(τw / ρ) (5)
yP = y+μ / (ρuτ), Δy1 = 2yP (6)
δ = 0.37 x Rex−1/5 or δ = 5.0 x Rex−1/2 (7)
Turbulent and laminar flat plate, with Rex = ρUx / μ.
total = Δy1(rn − 1) / (r − 1), last = Δy1rn−1, ratio = rn−1 (8)
For geometric-progression stretching. The terms are shown in the figure above.
Assumptions: a smooth wall, zero pressure gradient, incompressible and steady flow, and a turbulent boundary layer from the leading edge. For external flow the correlation is evaluated at x = L, where the wall shear on a flat plate is lowest, so y+ will be higher further upstream. Treat the result as a starting point and check y+ after your first run.
Worked example: air over a 1 m plate at 20 m/s
Air at 20 °C (ρ = 1.204 kg/m³, μ = 1.813 × 10−5 Pa·s) flows at 20 m/s over a 1 m flat plate, and the target is y+ = 1. These are the calculator's default values.
ReL = 1.33 × 106, which is inside the range of the turbulent correlation. Cf = 3.46 × 10−3 and τw = 0.833 Pa, so uτ = 0.832 m/s. The cell centre must sit at yP = 18.1 µm, which gives a first cell height Δy1 = 36.2 µm.
At x = 1 m the turbulent boundary layer is δ = 22.1 mm thick. Seven prism layers with a stretching of 1.2 grow to 468 µm, and the last layer is 108 µm, about three times the first. Together they cover only about 2 % of δ: the rest of the boundary layer is resolved by the core mesh, so check the transition in step 4, or add layers if you want the prism layer to cover more of it.
Check y+ after your first run
Correlations give a starting value, not the final answer. After the first converged run, plot the Wall Y+ field function on your wall boundaries in a scalar scene. Expect variation: y+ is higher where the flow accelerates and lower near stagnation and separation.
Because y+ scales roughly with the wall distance, rescaling the near-wall thickness by target ÷ actual y+ is a good first approximation; remesh and check again. Our Simcenter STAR-CCM+ training covers meshing and wall treatment in more depth.
References and changelog
References
F. M. White, Fluid Mechanics, 5th ed., McGraw-Hill, 2003: chapter 6 (Blasius pipe friction) and chapter 7 (Prandtl's 1927 flat-plate relations, about 5 × 105 < Re < 107).
H. Schlichting, Boundary-Layer Theory, 7th ed., McGraw-Hill, 1979: chapter XXI (turbulent flat plate at zero pressure gradient, power-law skin friction).
Review
Reviewed by Christoffer Johansson, M.Sc., Senior Application Specialist at Volupe. Version 2.0.
Changelog
13 September 2023: the first cell height is reported as the full cell height (2 × the wall distance of the cell centre). Earlier versions reported the cell-centre distance.
October 2026: new interface. Rex is now computed from x (it stayed at ReL when x was edited). Validity warnings added. Same correlations, so default results are unchanged.
Questions about y+
Calculator reviewed by
Christoffer Johansson
Senior Application Specialist, M.Sc.
Questions about near-wall meshing? We reply within one day.
Ask a technical question →
What is y+ in CFD?
y+ is the dimensionless distance from a wall, y+ = uτy/ν. It tells you which part of the boundary layer the first cell sits in: the viscous sublayer (y+ below about 5), the buffer layer (5–30) or the log layer (about 30–300). Turbulence models treat these regions differently, so the mesh has to match the wall treatment.
What y+ should I use with the k-ω SST model?
SST works with a resolved wall (y+ ≈ 1) or with wall functions (y+ 30–300). Aim for y+ ≈ 1 when wall shear, heat transfer or separation matter. In Simcenter STAR-CCM+ the All y+ Wall Treatment handles both, but avoid leaving most of the wall in the buffer layer.
Is the first cell height the full cell or the distance to the cell centre?
The full cell. Cell-centred finite-volume codes such as Simcenter STAR-CCM+ evaluate y+ at the cell centre, halfway up the first cell, so the calculator doubles the wall distance. Since September 2023 it reports the full height, which is the value to enter as the near-wall thickness.
Which length should I use for L?
For external flow, use the length of the body in the flow direction, such as a plate length, chord or vehicle length; for a cylinder or sphere, use the diameter. For internal flow, use the hydraulic diameter Dh = 4A/P and the bulk velocity.
How many prism layers do I need?
Enough to grow smoothly from Δy1 to a size that matches the core mesh. Stretching ratios of about 1.1–1.3 are common near walls. Wall-resolved meshes (y+ ≈ 1) need many more layers than wall-function meshes, often 15–30, depending on the stretching and how much of the boundary layer you want the prism layer to cover. Use step 4 to check that the last layer meets the core mesh smoothly.
Why is the y+ in my simulation different from the target?
The calculator uses correlations for a flat plate or a straight pipe. Real geometries accelerate, decelerate and separate the flow, so the wall shear, and with it y+, varies along the wall. For external flow the estimate is made at x = L, where flat-plate wall shear is lowest. Check the Wall Y+ field after the first run and adjust.
Can I use this calculator for Ansys Fluent or OpenFOAM?
Yes. The physics does not depend on the solver, and the cell-centre factor applies to cell-centred finite-volume codes such as Ansys Fluent and OpenFOAM. Vertex-based codes such as Ansys CFX measure y+ at the first node instead. Only the prism layer setting names are specific to Simcenter STAR-CCM+.