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.
Related tools
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.