A lightweight and practical tool for CFD engineers to estimate near-wall grid spacing, skin friction coefficient, and boundary-layer parameters before mesh generation.
This repository provides both an executable tool and a technical LaTeX document explaining all the formulas and their references.
The package can be downloaded with following link, 👉 Download from Dropbox
-
Executable Tool (
Calculate_yPlus.exe)- Computes:
- Reynolds number
- Skin friction coefficient
- Boundary layer thickness
- First-layer grid spacing (
ΔS) - Number of prism layers (
N)
- Supports cell-centered and vertex-centered solvers.
- Reads and writes data via
results.jsonfor easy integration into GUI tools or automated workflows. - Designed for users of OpenFOAM, STAR-CCM+, Fluent, and other CFD solvers.
- Computes:
-
Technical Documentation (
CFD_yPlus_Documentation.pdf)- Written in LaTeX.
- Explains all calculation formulas and their physical meaning.
- Includes:
- Skin friction coefficient correlations
- Prandtl–Schlichting
- ITTC-1957
- Prandtl–Kármán
- Boundary-layer thickness estimation (Schlichting, White)
- First grid spacing for cell-centered vs node-based solvers
- Prism layer count assuming a fixed stretching ratio (
r > 1.0)
- Skin friction coefficient correlations
- White, Frank M. Fluid Mechanics, 7th ed. McGraw-Hill, 2011.
- Spurk, H. J. and Aksel, N. Fluid Mechanics. Springer Berlin Heidelberg, 2008.
- Jin, S., Zha, R., Peng, H., Qiu, W., and McTaggart, K., 2024.
Determination of Maneuvering Force Coefficients for a Destroyer Model with OpenFOAM.
Journal of Ship Research, 68(02), pp.39–65. - Jin, S., Zha, R., Peng, H., Qiu, W., and Gospodnetic, S., 2020.
2D CFD Studies on Effects of Leading-edge Propeller Manufacturing Defects on Cavitation Performance.
SNAME Maritime Convention (p. D033S015R003). - Jin, S., Peng, H., and Qiu, W., 2024.
Numerical Study on Effects of Leading-edge Manufacturing Defects on Cavitation Performance of a Full-scale Propeller.
Physics of Fluids.
The executable file (Calculate_yPlus.exe, 120 MB) is available here: