Y-plus-Calculator

Version 1.0.0 (1.53 KB) by CANARD ES
Calculator of First Cell Height of Computational Domain for CFD
147 Downloads
Updated Sat, 25 Apr 2020 00:32:34 +0000

Y+ is a dimensionless parameter in fluid dynamics, defined as the dimensionless distance from the wall, generally used to express
height relative to the viscous sub-layer near the wall. For properly modeling turbulent viscous flows in the near-wall region using CFD, it is necessary that the first cell height (height of the first row of cells near the wall) the mesh/grid should be according to the Y+ resolution required by the turbulence model.
For turbulence models like k-espilon with standard wall functions Y+ should be in the range of 30-300 and for turbulence models with wall treatment (like k-omega, Spalart-Allmaras, k-espilon with Enhanced Wall Treatment), Y+ should be equal to 1.
Y+ calculation is fairly an easy task, yet it gets disturbing to do the tedious task of hand calculations again and again. There are some online calculators available but they are based on old Prandtl (1925)'s 1/7th powerlaw, which works only for limited lower ranges of Reynolds numbers.
This Matlab code is built to calculate the estimated first cell height from the free-stream conditions and the desired value of Y+,
based on the skin-friction coefficient estimation of Hermann Schlichting (1979) (which works efficiently up to Reynolds numbers of
10^9) for external flows and Churchill (1977) equation (which is valid for all flow regimes) for internal (pipe/duct) flows.
Coded by: CANARD Engineering Services (PVT) Limited
Islamabad, Pakistan.
canardspk@gmail.com

Cite As

CANARD ES (2024). Y-plus-Calculator (https://github.com/CANARDS/Y-plus-Calculator), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fluid Mechanics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.