Skip to content
Omnikalc

Y plus calculator: how thick should the first mesh layer be at the wall?

Enter the flow speed, wall length and fluid properties to get the first cell height for a target y+, the wall shear stress and the number of prism layers.

Updated on
Your inputs
m/s

Value out of range

m

Value out of range

kg/m³

Value out of range

×10⁻⁵ Pa·s

Value out of range

Value out of range

Value out of range

Results

First cell height for the target y+

12.48 µm

Reynolds number at the end of the wall
1,979,178
Skin friction coefficient
0.00328
Wall shear stress
1.775 Pa
Friction velocity
1.2144 m/s
Boundary layer thickness
20.37 mm
Prism layers needed to cover the boundary layer
32

In computational fluid dynamics the first cell next to the wall must be thin enough for the wall model you choose. The y plus calculator takes the velocity, the wall length, the density, the viscosity, a target y+ and a growth ratio, and gives the first cell height, the Reynolds number, the skin friction coefficient, the wall shear stress, the friction velocity, the boundary layer thickness and the number of prism layers.

How the calculation works

  • Enter the free-stream velocity, the length of the wall along the flow, and the density and dynamic viscosity of the fluid. The defaults are air at 20 °C.
  • Enter the target y+: about 1 to resolve the viscous sublayer with a low-Reynolds turbulence model, or 30 to 100 when you use wall functions.
  • Enter the growth ratio of the prism layers, usually between 1.1 and 1.3.
  • The calculator estimates the skin friction from the flat-plate relation Cf = 0.026 Re^(−1/7), then the wall shear stress, the friction velocity and the first cell height y = y+ · μ ÷ (ρ · u)*.

Example

Air at 30 m/s over a 1 m plate has a Reynolds number of 1.98 million, a skin friction coefficient of 0.00328, a wall shear stress of 1.78 Pa and a friction velocity of 1.214 m/s. For a target y+ of 1, the first cell must be 12.5 µm thick. The boundary layer is about 20.4 mm thick, so about 32 prism layers with a growth ratio of 1.2 are needed. For y+ = 30, the first cell would be 374 µm.

Why it matters

Getting the first cell height wrong is one of the most common mistakes in CFD meshing. Too thick and a low-Reynolds model gives wrong drag and heat transfer; too thin and a wall function loses accuracy. Computing it before meshing saves a costly cycle of re-meshing.

Good to know

The estimate uses turbulent flat-plate correlations for a smooth wall at the end of the plate. It is not valid for laminar flow, rough walls, compressible high-speed flow or flows with strong separation. Treat the result as the starting point and verify the y+ in your solver output.

The Reynolds number calculator gives the flow regime, the drag force calculator uses the friction in the loads on a body, and the pipe friction loss calculator covers internal flow.

Frequently asked questions

What is y+?

The dimensionless wall distance y+ is the distance from the wall of the first cell centre, scaled with the friction velocity and the kinematic viscosity: y+ = y · u* ÷ ν. It tells you in which region of the turbulent boundary layer the first cell sits: the viscous sublayer for y+ below about 5, the buffer layer between 5 and 30, and the log-law region above about 30.

What y+ should I target?

With a turbulence model that resolves the near-wall flow, such as k-omega SST or a low-Reynolds model, aim for y+ around 1. With wall functions aim for 30 to 100, and avoid the buffer layer. Always check the actual y+ in the results, since the real wall shear stress differs from this estimate.

How accurate is the flat-plate estimate?

It gives a good first estimate for external flow over a smooth plate at Reynolds numbers from about 5 × 10⁵ to 10⁷. For curved bodies, internal flow, strong pressure gradients or separation, the real shear stress differs by tens of percent. Use the estimate to size the mesh, run the simulation, then correct the first cell.

Why does the number of prism layers matter?

The prism layers should cover the whole boundary layer, so that the transition to the core mesh is smooth. The thinner the first cell and the smaller the growth ratio, the more layers you need. A common target is a last layer with a similar size to the first core cell.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.