y Plus in CFD: Target Values and How to Hit Them

y Plus in CFD: Target Values and How to Hit Them

Table of Contents

You finish a CFD run, plot wall y+, and the number is 180 when you wanted 1. Or it is 7, which is worse. The usual reaction is to shrink the first cell and run again, which burns a day and often does not fix anything.

y+ is not a score you try to minimise. It tells you which near-wall model your mesh is allowed to use. Get that pairing right and a coarse mesh can be accurate. Get it wrong and a very fine mesh can be wrong in a way that looks converged. This guide covers what y+ measures, the target ranges the solver documentation actually states, how to size the first cell before you mesh, how to check it afterwards, and what to do when it comes out wrong.

What y+ actually measures

y+ is the distance from the wall to the first cell centroid, expressed in units of the wall’s own viscous length scale:

y+ = (rho * u_tau * y) / mu

u_tau = sqrt(tau_w / rho)      friction velocity
y                              wall to FIRST CELL CENTROID
tau_w                          local wall shear stress

Two things follow from that definition, and both cause trouble in practice.

First, y+ depends on the solution, not just the mesh. The wall shear stress is an output. You can size a mesh for y+ = 1 at your design velocity and then find y+ = 6 at a stagnation point and y+ = 0.2 in a separated region, on the same mesh, in the same run. y+ is a field, not a single number.

Second, y is the distance to the first cell centroid, not the cell height. The first layer must be roughly twice the y you calculate. Forgetting this is the single most common reason a mesh built for y+ = 1 delivers y+ = 2.

The near-wall region splits into three zones, measured in y+:

  • Viscous sublayer, y+ below about 5 — momentum transport is viscous, velocity is nearly linear in y+.
  • Buffer layer, y+ roughly 5 to 30 — neither description holds. No standard wall law is accurate here.
  • Log layer, y+ about 30 to 300 — the logarithmic law of the wall applies.

The two valid strategies

There are exactly two defensible places to put your first cell, and they sit on opposite sides of the buffer layer.

Wall-resolved (low-Re). Push the first cell into the viscous sublayer and let the turbulence model integrate all the way to the wall. No wall law is used. This is what you need for separation, reattachment, transition, accurate heat transfer and accurate drag.

Wall-modelled (wall functions). Put the first cell in the log layer and let an algebraic wall law bridge everything below it. Far cheaper. Fine for internal flows, ducting, pressure-drop work and anything where you care about bulk behaviour rather than the wall itself.

The ANSYS Fluent near-wall mesh guidelines give concrete numbers for each:

Near-wall approachTarget y+Extra requirement
Standard / non-equilibrium wall functions30 to 300, aim near 30A few cells inside the boundary layer
Enhanced wall treatment (resolve the sublayer)About 1; up to 4–5 is acceptableAt least 10 cells in the viscosity-affected region
k-omega with Low-Re corrections onAbout 1Same layer count as above
Spalart–AllmarasAbout 1, or 30 and aboveAvoid everything in between
LES / DES / wall-resolved hybridsAbout 1Streamwise and spanwise spacing also constrained

The documentation is explicit about the gap: make the mesh coarse enough or fine enough to prevent the wall-adjacent cells from being placed in the buffer layer. y+ = 8 is not “nearly resolved”. It is the one value you should not ship.

Modern omega-based formulations blend the two limits and are often described as y+-insensitive, which is true at the ends and still weakest in the middle. If you are choosing between model families, the trade-offs are covered in k-epsilon vs k-omega SST.

Sizing the first cell before you mesh

You cannot know the wall shear stress before you run, but you can estimate it well enough. Four steps:

1.  Re   = rho * U * L / mu

2.  Cf   = 0.058 * Re^-0.2      external / flat plate
    Cf   = 0.079 * Re^-0.25     internal flow, Re on diameter

3.  tau_w = 0.5 * Cf * rho * U^2
    u_tau = sqrt(tau_w / rho)

4.  y     = y_target+ * mu / (rho * u_tau)
    first layer height = 2 * y

A worked case. Air at 20 °C over a 0.5 m plate at 20 m/s, so rho = 1.204 kg/m³ and mu = 1.825e-5 Pa·s.

  • Re = 1.204 × 20 × 0.5 / 1.825e-5 = 6.6e5
  • Cf = 0.058 × (6.6e5)^-0.2 = 0.00398
  • tau_w = 0.5 × 0.00398 × 1.204 × 20² = 0.96 Pa
  • u_tau = sqrt(0.96 / 1.204) = 0.89 m/s
  • For y+ = 1: y = 1.825e-5 / (1.204 × 0.89) = 0.017 mm, so a first layer of 0.034 mm
  • For y+ = 30: y = 0.51 mm, so a first layer of 1.02 mm

A factor of 30 in the first layer. That is the real cost of the wall-resolved choice, and it is why this decision belongs at the start of a project rather than after the first run.

How many layers, and how fast can they grow

The first cell height is only half the job. The inflation stack has to carry the mesh out to the edge of the boundary layer without a jump in cell size where it ends. For a turbulent flat plate:

delta ~ 0.37 * L * Re^-0.2

total of n layers = h1 * (r^n - 1) / (r - 1)
  h1 = first layer height
  r  = growth rate (1.1 to 1.3 in practice)

For the case above, delta is about 12.7 mm. Starting from 0.034 mm at a growth rate of 1.2 needs roughly 24 layers to cover it; at 1.3 it needs about 18. The same boundary layer from a 1.02 mm first cell needs about 7. Keep the growth rate at or below 1.2 where the gradients matter — the Fluent guidance explicitly warns against high expansion ratios normal to the wall, and a stack that grows at 1.5 will pass a y+ check while still smearing the velocity profile.

Checking y+ after the run

Report the distribution, not one number. A maximum alone hides the problem; an average alone hides it differently.

Fluent. Contours of Turbulence → Wall Yplus on all wall zones, then Report → Surface Integrals with Facet Maximum and Facet Average of Wall Yplus per wall. Look for where the extremes sit, not just their value — high y+ on a leading edge and low y+ in a wake mean different things.

CFD-Post. Yplus is available as a wall variable; a histogram on the wall boundary is the fastest way to see whether you are bimodal across the buffer layer.

OpenFOAM. Run it as a post-processing function object on an existing result:

simpleFoam -postProcess -func yPlus

# writes a yPlus volScalarField in each time directory
# and min/max/average per patch to
#   postProcessing/yPlus/<time>/yPlus.dat

The y-star trap in Fluent

This one catches experienced users. The quantity Fluent plots as Wall Yplus is built from the friction velocity. The quantity its wall functions actually use internally is y*:

y* = rho * C_mu^0.25 * k_P^0.5 * y_P / mu

Fluent bases its laws of the wall on y*, not y+, and switches from the log law to the laminar relation at y* = 11.225. The two are approximately equal in equilibrium turbulent boundary layers — which is precisely what you do not have at a separation point, a reattachment point, or a stagnation region. So the y+ you plot can look acceptable in exactly the places where the wall treatment is being driven by a different number. When a result is sensitive to the near-wall region and the y+ plot looks clean, check the turbulent kinetic energy in the first cell as well.

Fixing a y+ that came out wrong

Work through this in order. Re-meshing is the third option, not the first.

  1. Is the number local or global? If 95% of the wall is at y+ = 1 and one small patch reads 9, refine that patch. Do not rebuild the whole inflation stack for a corner.
  2. Can you change the near-wall model instead? A mesh at y+ = 60 is a perfectly good wall-function mesh. If your result does not depend on resolving the sublayer, switch the treatment rather than the mesh.
  3. Scale the first layer by the ratio you actually need. y+ is near-linear in y, so a y+ of 12 against a target of 1 means dividing the first layer by about 12 — not “making it a bit finer”. Keep the layer count and growth rate so the stack still spans the boundary layer.
  4. Check the velocity you designed for. Sizing for a nominal inlet velocity and then running an off-design case at twice that will raise y+ by roughly a factor of 1.8.
  5. Only then re-run. And re-run on the new mesh before concluding anything, because y+ moves with the solution.

If the run is also failing to converge rather than just giving a bad y+, near-wall cells with extreme aspect ratios are a common culprit — see Fluent divergence troubleshooting and the wider guide to debugging ANSYS Fluent errors.

Common mistakes

  • Treating y+ as a quality score. Lower is not better. y+ = 0.1 on a wall-function mesh is a worse pairing than y+ = 50.
  • Using centroid distance as cell height. Factor of two, every time.
  • Chasing y+ while ignoring layer count. One 0.03 mm cell under a 2 mm cell resolves nothing. The gradient needs the stack, not just the first cell.
  • Reporting the average only. An average of 25 can be half the wall at 1 and half at 50.
  • Sizing with the wrong Cf correlation. The flat-plate form against a pipe Reynolds number can be off by a large factor.
  • Skipping the mesh study. A correct y+ is a necessary condition, not proof of mesh independence. Run the mesh independence study anyway.
  • Ignoring roughness. With a rough-wall model the first cell should sit outside the physical roughness height, which can make a y+ = 1 mesh meaningless.

Ready-to-use models and CFD packages

If you would rather start from a case that already meshes and converges, these are on Engineering Downloads:

Wall-resolved meshes get expensive quickly. If a 24-layer inflation stack takes your cell count somewhere your workstation cannot follow, HPC time is usually cheaper than coarsening the mesh and losing the answer.

FAQ

What y+ value should I aim for?

About 1 if you are resolving the viscous sublayer, and 30 to 300 if you are using wall functions, with values near 30 preferred. There is no single correct y+ — it depends entirely on which near-wall treatment you have selected.

Why is my y+ different from what I designed for?

Because y+ depends on wall shear stress, which is a result of the simulation rather than a property of the mesh. Your sizing calculation used an estimated skin friction coefficient; the solver computes the real one locally. A factor of two either way is normal, and you should expect a range across a wall rather than one value.

Is a low y+ always safer?

No. On a mesh running standard wall functions, a very low y+ puts the first cell below the log layer where the wall law is not valid, so the result degrades. Low y+ is only better if the turbulence model is set up to integrate to the wall.

How many inflation layers do I need?

Enough to span the boundary layer with a growth rate of about 1.2 or lower. For a wall-resolved mesh that is typically 15 to 25 layers; for a wall-function mesh, often under 10. The Fluent guidance asks for at least 10 cells within the viscosity-affected near-wall region when resolving the sublayer.

Does y+ matter for heat transfer?

More than it does for pressure drop. The thermal wall layer is thinner than the momentum layer for fluids with Prandtl number above 1, so a mesh that is adequate for velocity can still get the wall heat flux wrong. For convective heat transfer, resolve the sublayer.

Conclusion

Decide the near-wall strategy before you mesh, size the first cell from an estimated skin friction coefficient, build enough layers to span the boundary layer at a modest growth rate, then check the y+ distribution and confirm it is on the side of the buffer layer you intended. If it is not, change the near-wall treatment before you change the mesh.

Browse the CFD and FEA models, tutorials and courses on Engineering Downloads, or if the near-wall setup on a specific model is holding a project up, our simulation and consulting services can take it on directly.

References: ANSYS FLUENT User’s Guide — Near-Wall Mesh Guidelines; ANSYS FLUENT Theory Guide — Standard Wall Functions; OpenFOAM yPlus function object.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related  articles

Abaqus Integration Point vs Nodal Stress: Why Peaks Differ
Compare integration-point, element-nodal and unique-nodal stress in Abaqus, and check whether a contour peak depends on extrapolation, averaging or mesh size.
Abaqus Linear Perturbation vs General Step: What Actually Changes
Abaqus Linear Perturbation vs General Step: What Actually Changes

You run a frequency extraction after a static step and the frequencies come out the same whether or not the part had yielded. You run a static linear perturbation step and the reaction force is a fraction of what you

Harmonic Response Analysis in ANSYS Workbench: A Practical Guide
Harmonic Response Analysis in ANSYS Workbench: A Practical Guide
How to set up harmonic response analysis in ANSYS Workbench: modal link, frequency range, solution method, damping, loads and results, plus the common mistakes.

See more

Related  Products

See more