Theory
OpenFOAM's nutkRoughWallFunction (OpenFOAM user guide, 2026), written by the program when Wall roughness height is above 0, uses in its roughness function. In the fully rough regime the downward shift of the logarithmic velocity profile is equation (1): a larger makes the same act as a rougher wall. In the transitional regime () the function blends from smooth to this form. With the wall is smooth and has no effect.
Equations
| where | meaning | unit |
|---|---|---|
| Shift of the log law | - | |
| von Kármán constant, 0.41 | - | |
| Roughness constant (this setting) | - | |
| Roughness Reynolds number | - | |
| Friction velocity | m/s | |
| Kinematic viscosity | m²/s |
Default and rule
- Default
- 0.5
- Rule
0.5.
- Source
OpenFOAM's rough-wall function and its default (OpenFOAM user guide, 2026); the regime limits 2.25 and 90 and the meaning of 0.5 as uniform sand grains follow the usual rough-wall formulation.
Valid range 0.5-1 (uniform sand grains: 0.5); used only when k_s > 0
Values
0.5 for uniform sand grains; values up to about 1 are used for non-uniform roughness.
Only with roughness
No effect while the roughness height is 0.