Flow Conditions
$\tau_w = C_f \cdot \rho U^2 / 2$
$u_\tau = \sqrt{\tau_w / \rho}$
$\Delta y = y^+ \cdot \nu / u_\tau$
Calculate first-cell wall distance Δy and y⁺ for CFD near-wall mesh resolution from Reynolds number, fluid properties, and length scale. Compare wall-function and low-Re model requirements in a single chart.
The core of this calculation is linking the dimensional wall distance Δy to the non-dimensional y⁺ through the friction velocity u_τ, which depends on the flow's wall shear stress.
$$ y^+ = \frac{\Delta y \cdot u_τ}{\nu}$$Where:
$y^+$ = Target non-dimensional wall distance (user input).
$\Delta y$ = First-cell wall distance in meters (the output).
$u_τ$ = Friction velocity ($\sqrt{\tau_w / \rho}$).
$\nu$ = Kinematic viscosity of the fluid.
To find $u_τ$, we relate it to the bulk flow using the skin friction coefficient $C_f$, which is a function of the Reynolds number ($Re$). A common empirical correlation for a turbulent flat plate is used here.
$$ C_f \approx \frac{0.058}{Re^{0.2}}\quad \text{and}\quad u_τ = U \sqrt{\frac{C_f}{2}} $$Where:
$Re$ = Reynolds number ($UL/\nu$), based on user input.
$U$ = Characteristic free-stream velocity.
$C_f$ = Skin friction coefficient.
This allows the tool to compute Δy from your inputs of Re, y⁺, and fluid properties.
Aerodynamic Design (Cars & Aircraft): Engineers use this calculation to create meshes for simulating drag and lift. For instance, accurately capturing the boundary layer on a wing's surface is essential for predicting stall behavior and optimizing fuel efficiency. A wrongly sized first cell can lead to a 10-20% error in drag prediction.
Turbo-machinery (Pumps & Turbines): In designing a centrifugal pump, the mesh near the impeller blades and volute walls must resolve high shear and pressure gradients. The correct Δy ensures accurate prediction of efficiency, head rise, and cavitation risks, directly impacting the pump's lifespan and performance.
Heat Exchanger Analysis: For simulating conjugate heat transfer in a finned-tube heat exchanger, the thermal boundary layer is critical. The first cell distance dictates how well the simulation captures the temperature gradient from the wall into the fluid, which is necessary for calculating the overall heat transfer coefficient and sizing the equipment.
Building & Environmental Wind Studies: When modeling wind flow around a skyscraper to assess pedestrian comfort or wind loading, the mesh near the building surfaces must be tailored to the local wind speed (Reynolds number). This tool helps set up a reliable mesh for LES (Large Eddy Simulation) models, which are often used for such unsteady flow analyses.
First, it is a misconception to think of the target y⁺ value as an absolute, inviolable "magic number." While guidelines are indeed important, aiming for y⁺≈1 with a k-ω SST model, for example, can be nearly impossible to achieve on all wall surfaces for complex geometries. In practice, you should design your mesh to prioritize meeting the target y⁺ in physically critical flow regions like separation points, reattachment points, and areas of high shear stress. Deviations in other areas are often acceptable.
Next, there is the pitfall of thinking you can simply input the calculated first cell height Δy directly into the mesher. The Δy provided by this tool is the distance to the "cell center." Most mesh generation software defines "first layer thickness" as the actual thickness of the cell itself, so you typically need to input roughly twice the calculated value (if the cell center is at Δy, the cell thickness is ~2Δy). Getting this wrong can result in a y⁺ value about twice what you intended.
Finally, do not underestimate the importance of setting material properties and representative velocity/length. For instance, in external aerodynamics of a car, whether you use the "overall length" or the "wheelbase" as the representative length can drastically change the Reynolds number, leading to an order of magnitude difference in the required Δy. Also, it's easy to forget that the kinematic viscosity ν of air changes with temperature. The required mesh size can differ between summer and winter conditions, even at the same velocity.