Theory
With the wall-function treatment, a smooth wall uses Spalding's law of the wall (nutUSpaldingWallFunction), continuous from the viscous sublayer to the logarithmic region (Spalding, 1961). When the program writes OpenFOAM's nutkRoughWallFunction instead (OpenFOAM user guide, 2026), with the same log-law constants , () and with and (Roughness constant). That condition divides by a roughness function of the roughness Reynolds number , equation (1), which shifts the logarithmic velocity profile down by , equation (2): the wall carries more shear for the same near-wall velocity. Below the wall behaves as smooth; above about 90 it is fully rough, where .
The rough-wall function is a log-law wall function, not Spalding's blended law: it assumes the first cell lies in the logarithmic region (), and a wall with roughness should be meshed accordingly (Target y+). With the low-Re treatment (Wall treatment) the roughness is not applied (nutLowReWallFunction).
Roughness applies to outer walls and to both sides of internal walls (baffles). It does not affect perforated walls.
Equations
| where | meaning | unit |
|---|---|---|
| Equivalent sand-grain roughness height (this setting) | m | |
| Roughness Reynolds number | - | |
| Friction velocity from the wall-cell | m/s | |
| Kinematic viscosity | m²/s | |
| Log-law constants 0.41, 8.43, 5.2 | - | |
| Roughness function of OpenFOAM's rough-wall condition | - | |
| Downward shift of the log law | - |
Default and rule
- Default
- 0 m (smooth wall)
- Rule
0 m (smooth).
- Source
The log-law constants ( 0.41, 5.2) are the program's choice. The rough-wall condition and its roughness function are OpenFOAM's
nutkRoughWallFunction(OpenFOAM user guide, 2026); the exact transitional form of is that of the OpenFOAM implementation and is described here only qualitatively.
Valid range ≥ 0; ignored with the low-Re wall treatment
Typical values
Drawn steel tube about 0.00002-0.00005 m, commercial steel about 0.00005 m, rusted or welded sheet up to about 0.0005 m (indicative handbook values).
Not Spalding
A positive roughness replaces the continuous Spalding wall function by a log-law wall function; a first cell in the viscous or buffer layer then gives a wrong wall shear.
Low-Re treatment
Ignored when the wall is resolved to .