y+ calculator

Find the first cell height for a target y+, then size the boundary layer and prism layer stack for Simcenter STAR-CCM+.

Method: flat-plate and pipe-flow correlations · Reviewed by Christoffer Johansson, M.Sc. · Updated November 2026

Fluid
Flow
Results in SI

1First cell height

Solve for
What is L?
L = DFlow direction →

Length of the body in the flow direction, or the diameter for a cylinder or sphere.

About 1 resolves the viscous sublayer. For wall functions 30–300 is commonly quoted; Siemens advises 30–150 for most cases.

First cell height Δy1

–

m · full cell height

Within the correlation's range

Wall distance of the cell centre yP
–
Reynolds number ReL
–
Skin-friction coefficient Cf
–
Wall shear stress τw
–
Friction velocity uτ
–
Kinematic viscosity ν
–

Simcenter STAR-CCM+ evaluates Wall Y+ at the centroid of the wall cell, so for a prism-layer cell the first layer height is about twice yP. The estimate applies at x = L; further upstream the wall shear and y+ are higher.

2Boundary layer thickness

Boundary layer

Boundary layer thickness δ

–

m at x =

Reynolds number Rex
–

3Prism layer

Layer heights to scale relative to each other. The wall is at the bottom.

Prism layer total thickness

–

m

Last layer thickness
–
Thickness ratio (last/first)
–
Share of the boundary layer δ covered
–

Where your cells sit in the boundary layer

    Schematic: Reichardt’s law of the wall for a smooth wall at zero pressure gradient. Simcenter STAR-CCM+’s blended wall function uses a Reichardt-type law with its own constants. The bar under the axis shows your prism layers cell by cell, with a dot at each cell centre.

    Simcenter STAR-CCM+ prism layer settings

    Set the Stretching Function (Geometric Progression) and the Distribution Mode on the Prism Layer Mesher. Enter the number of layers, the stretching and an absolute Prism Layer Total Thickness under Default Controls of the automated mesh operation.

    Distribution Mode: Stretch Factor

    Number of Prism Layers
    –
    Prism Layer Stretching
    –
    Prism Layer Total Thickness
    –

    Other modes: replace the stretching with

    Wall Thickness: Thickness of Near Wall Prism Layer
    –
    Thickness Ratio: Prism Layer Thickness Ratio
    –

    Not on Simcenter STAR-CCM+ yet? Book a demo →

    4Transition to the core mesh

    Last prism layer thickness
    – · from step 3

    The height of the first core cell next to the last prism layer.

    Size ratio, core cell / last layer

    –

    Enter a core cell size to check the transition. As a rule of thumb, aim for a ratio between 1.0 and 1.5. In Simcenter STAR-CCM+, the Near Core Layer Aspect Ratio and, for trimmed meshes, the Maximum Core/Prism Transition Ratio help limit the jump.

    What is y+?

    y+ (y plus) is the dimensionless distance from a wall, y+ = uτy/ν. In a CFD simulation you check it at the centre of the first cell next to the wall, because it tells you which layer of the turbulent boundary layer that cell sits in, and so how fine the wall mesh has to be.

    uτ = √(τw / ρ)

    Here uτ is the friction velocity, y the distance from the wall to the cell centre, ν the kinematic viscosity, τw the wall shear stress and ρ the density. Aim for a y+ of about 1 or less if you resolve the viscous sublayer with a low-y+ wall treatment, and 30 to 300 if you use wall functions. Siemens advises 30 to 150 for most wall-function cases, and higher values in some applications such as marine flows. Avoid 5 to 30, the buffer layer, where neither approach is accurate. The upper limit of 300 comes down at low Reynolds numbers, where the log layer is short. Which y+ should you aim for? gives the targets for each wall treatment.

    Before a simulation you do not know τw, so the calculator estimates it from a skin-friction correlation: a turbulent flat-plate correlation for external flow, the Blasius friction law for smooth pipes. It then gives you the first cell height, twice the cell-centre distance, for the y+ you choose. After the run, check the actual y+ on the walls and adjust the prism layer if needed.

    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. Already have a mesh? Switch “Solve for” to y+ of my mesh and enter its first cell height to see the y+ it gives.

    3. Check the boundary layer thickness in step 2. Step 3 then shows how much of it your prism layer covers and how many layers would reach its edge. Siemens advises that the prism layers ideally cover the whole boundary layer, with a total thickness of about the boundary-layer height.

    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. The chart in step 3 shows where each cell centre sits on the law of the wall.

    L = DFlow direction →
    External flow around a cylinder or sphere: L is the diameter. For a plate, wing or vehicle, use its length in the flow direction.
    L = DhFully developed velocity profile
    Internal flow: L is the hydraulic diameter Dh = 4A/P, which equals the diameter for a round pipe.

    Which y+ should you aim for?

    The right target depends on how your turbulence model treats the wall. For large eddy simulation (LES), Siemens advises a y+ of around 1.

    Diagram of a prism layer next to a wall beside the law of the wall, u+ against y+ on a log scale, with the first cell centre in the log layer.
    As the first cell gets thinner, its centre (the teal dot) moves down the law of the wall: out of the log layer, through the hatched buffer layer and into the viscous sublayer at y+ ≈ 1. Teal bands mark the two target ranges; distance from the wall is on a log scale.
    ApproachTarget y+When to use itSimcenter STAR-CCM+ wall treatment
    Wall-resolvedabout 1Wall shear, heat transfer, separation and transition matterLow y+ or All y+ Wall Treatment
    Wall functions30–300Attached flows where you need speed more than near-wall detailHigh y+ or All y+ Wall Treatment
    Avoid if you can5–30Buffer layer: the least accurate region for both approachesAll y+ Wall Treatment blends the two here

    Not every model offers every wall treatment: two-layer k–ε models use Two-Layer All y+, the high-Reynolds Realizable and Standard k–ε offer only High y+, and Spalart-Allmaras offers Low y+ and All y+. 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. To check the Reynolds number and whether the flow is laminar or turbulent first, use the Reynolds number calculator.

    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 / μ.

    Δy1Δyn−1ΔynΔyn+1first celllast prism layerfirst core cellprism layertotal thicknesscore meshwall
    Δy1
    First cell height (near-wall thickness)
    Δyn / Δyn−1
    Stretch factor (prism layer stretching)
    Δyn / Δy1
    Thickness ratio
    Δyn+1 / Δyn
    Transition to the core mesh (step 4)
    Prism layer terms. Each layer is r times thicker than the one below it.

    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. Once y+ is on target, keep the prism layer settings fixed and refine only the core mesh in a mesh independence study. 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).
    H. Reichardt, “Vollständige Darstellung der turbulenten Geschwindigkeitsverteilung in glatten Leitungen”, ZAMM 31(7), 1951, 208–219: the law-of-the-wall curve in the chart.

    Review

    Reviewed by Christoffer Johansson, M.Sc., Senior Application Specialist at Volupe. Version 2.1.

    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.
    November 2026 (version 2.1): solve for the y+ of an existing mesh, boundary layer coverage in step 3, a law-of-the-wall chart of your cells, unit choices and a link that keeps your inputs. The correlations are the same, so default results are unchanged.
    November 2026 (version 2.2): the wall-function range and the stretching advice now quote Siemens’ guidance for Simcenter STAR-CCM+ (y+ 30–150 for most cases, stretching 1.1–1.5).

    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. Simcenter STAR-CCM+ evaluates Wall Y+ at the centroid of the wall cell, about halfway up a prism-layer 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. Siemens advises stretching ratios of 1.1–1.5; about 1.1–1.3 is 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. To see what a given first cell height gives, switch the calculator to “y+ of my mesh”.

    Can I use this calculator for Ansys Fluent or OpenFOAM?

    Yes. The physics does not depend on the solver. The calculator reports the full height of the first cell for a code that evaluates y+ at the cell centre; if your solver evaluates it at the first node instead, use half that height. Your solver’s documentation says which it is. Only the prism layer setting names are specific to Simcenter STAR-CCM+.

    Talk to an engineer in your region

    Every Volupe business developer holds an engineering degree. Find your regional contact below, or send us a message.

    Denmark and Central Eastern Europe

    Lukas Johansson

    Sales Director, M.Sc.

    Norway, Finland and the Baltics

    Carl Wanngård

    Business Developer, M.Sc.

    DACH region

    David Fabis

    Business Developer, M.Sc.

    DACH region

    André Hau

    Business Developer, M.Sc.

    Sweden

    Fredrik Liljedahl

    Business Developer, M.Sc.

    Europe

    Henrik Pahlitzsch

    Business Developer, M.Sc.

    Iberia

    Mikel Sevilla

    Business Developer

    Ask us about Y+ calculator CFD

    Use this form for licence quotes, demos, training and technical questions.

    What happens next

    1. A reply within one day.
    2. A scoping call with one of our engineers.
    3. A quote, demo or other next step that fits your enquiry.

    After purchase: support from Volupe simulation engineers.

    For a quote, the number of users, modules and your timeline help us answer faster.
    See how we handle your details in our privacy policy.