Cadence y plus Calculator: What It Means & How to Use
- First cell height y
- 0.001 m
- You entered
- Friction velocity u*
- 1 m/s
- You entered
- Kinematic viscosity ν
- 0.000015 m²/s
- You entered
This calculator works out the y-plus (y+) value for a given boundary layer thickness, friction velocity, and kinematic viscosity, which is a key dimensionless number in computational fluid dynamics (CFD). You enter the distance from the wall to the first cell center (y), the friction velocity (u*), and the kinematic viscosity (ν), and the calculator returns the dimensionless y+ value. This result tells you whether your mesh resolution near a wall is fine enough for the turbulence model you are using, such as wall-resolved LES or a wall-function approach.
Formula
The y-plus value is defined by the following equation:
y+ = (y · u*) / ν
Where:
- y = the distance from the wall to the centroid of the first mesh cell (in meters, m).
- u* = the friction velocity (in meters per second, m/s), which is a measure of the shear stress at the wall.
- ν = the kinematic viscosity of the fluid (in square meters per second, m²/s).
The result is a dimensionless number, so it has no units. It represents the ratio of the viscous length scale to the actual cell height, effectively measuring how close the first cell is to the wall in viscous units.
Worked Example
Let’s use the default values from the calculator above:
- y = 0.001 m
- u* = 1.0 m/s
- ν = 1.5 × 10�� m²/s (typical for air at room temperature)
Plug these into the formula:
y+ = (0.001 × 1.0) / (1.5 × 10��) = 0.001 / 0.000015 = 66.67
So the y+ value is approximately 66.7. This is in the range where a wall-function approach (typically y+ between 30 and 300) would be appropriate, but it is too high for a wall-resolved simulation (which usually requires y+ ≈ 1).
Why y+ Matters in CFD
In computational fluid dynamics, the near-wall region is where velocity gradients are steepest, and turbulence is highly anisotropic. The y+ value tells you how well your mesh captures this region. Different turbulence models have different requirements:
- Wall-resolved models (LES, DNS, low-Reynolds k-ω): require y+ ≈ 1 or less, meaning the first cell is within the viscous sublayer.
- Wall-function models (standard k-ε): require y+ between roughly 30 and 300, so the first cell lies in the log-law region.
- Scalable wall functions: can handle a wider range, but consistency is still important.
If your y+ is too high for the model you are using, the boundary layer will not be resolved correctly, leading to errors in skin friction and heat transfer. If it is too low for a wall-function model, the wall function may be applied in a region where it is not valid.
How to Choose the Right y+ Target
Before running a simulation, you need to decide on a target y+ based on your turbulence model and the physics you are interested in. Here is a simple guide:
- For aerodynamic drag or heat transfer predictions with a low-Reynolds model, aim for y+ ≈ 1.
- For industrial flows with standard wall functions, aim for y+ ≈ 50–100 (the middle of the log-law region).
- For high-speed or separated flows, you often need a finer mesh (lower y+) regardless of the model.
Once you have a target, you can use this calculator to estimate the required first cell height. Rearranging the formula gives:
y = (y+ · ν) / u*
So if you know the friction velocity (often estimated from a flat-plate correlation or a previous coarse run), you can compute the mesh height needed.
Common Mistakes and Misconceptions
One frequent error is confusing y+ with y* (the dimensionless wall distance based on the alternative friction velocity definition). They are similar but not identical; this calculator uses the standard definition with u* = sqrt(τ_w/�). Another mistake is using the first cell thickness instead of the distance to the cell center. In most CFD codes, the reported y+ is based on the cell centroid, so if you are setting up a mesh, you need to account for the cell height being twice the distance to the centroid for a uniform cell.
Also, remember that y+ is a local value—it varies along the wall. A single value is only a rough guide. In practice, you should check the y+ distribution on your surface after a simulation, not just rely on an initial estimate.
Limitations of the Y+ Formula
The simple formula y+ = y·u*/ν assumes a constant kinematic viscosity and a uniform flow near the wall. It does not account for compressibility, surface roughness, or pressure gradients. In real flows, u* is not uniform, so the y+ value will change. The formula is most accurate for simple flat-plate boundary layers in incompressible flow. For complex geometries, you should use it only as a first estimate and then refine based on actual CFD results.
Frequently Asked Questions
What is a good y+ value for a boundary layer?
It depends on your turbulence model. For wall-resolved simulations (LES, DNS, or low-Reynolds RANS), you want y+ ≈ 1 or less. For wall-function models, y+ between 30 and 300 is generally acceptable, with 50–100 being a common target. Always check your solver’s documentation for specific recommendations.
How do I calculate friction velocity u*?
Friction velocity is defined as u* = sqrt(τ_w/�), where τ_w is the wall shear stress and � is the fluid density. In practice, you can estimate it from a flat-plate boundary layer correlation (e.g., using the skin friction coefficient) or from a preliminary CFD run. For a fully developed pipe flow, you can also use the pressure gradient and pipe radius.
What if my y+ is too high or too low?
If y+ is too high for your model, you need to refine the mesh near the wall (reduce y). If it is too low for a wall-function model, you can coarsen the near-wall mesh, but be careful—coarsening too much can lose important flow features. The best approach is to run a mesh sensitivity study.
Does y+ affect the accuracy of the solution?
Yes, significantly. The near-wall mesh resolution directly impacts the prediction of skin friction, heat transfer, and separation points. An inappropriate y+ can lead to errors of tens of percent in these quantities. Always ensure your y+ is consistent with your turbulence model.
Can I use this calculator for external flows like airfoils?
Yes, the formula is the same for any wall-bounded flow, including external aerodynamics. However, for airfoils, the friction velocity varies along the chord, so you should compute y+ at multiple locations, especially near the leading edge where the boundary layer is thin.
Related
Formula used
in y | First cell height y | m | 0.001 | 0 in ustar | Friction velocity u* | m/s | 1.0 | 0 in nu | Kinematic viscosity ν | m²/s | 1.5e-5 | 0 out yplus | y-plus (y+) | - | y * ustar / nu | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.