Theory
The turbulence model is - SST (Menter, 1994). At a wall the program writes, for every wall and both sides of every internal wall:
| Treatment | Turbulent viscosity | ||
|---|---|---|---|
| Wall function | nutUSpaldingWallFunction | kqRWallFunction | omegaWallFunction |
| Low-Re | nutLowReWallFunction (zero) | kLowReWallFunction | omegaWallFunction |
A wall with a roughness height (Boundary Conditions step) uses nutkRoughWallFunction instead of Spalding's law in the wall-function treatment.
With the wall function, the wall shear stress follows Spalding's single law of the wall, equation (1) (Spalding, 1961): it joins the linear sublayer and the logarithmic law, equation (2), in one curve, so the first cell may sit in the sublayer, the buffer layer or the logarithmic region. The constants are and , i.e. , equation (3); OpenFOAM's own default corresponds to . Both values of are within the scatter of measured log laws; the program uses 5.2 so that its results can be compared directly with the reference models it is validated against.
With low-Re, at the wall and the velocity gradient is resolved by the mesh itself, which requires the first cell centre at and many thin layers.
The choice also moves three auto settings together: target 30 or 1, the number of layers (6 with curvature sizing or 3 with uniform sizing; 12 with low-Re) and the expansion ratio (1.2 or 1.15). With low-Re the layer stack is defined by its outermost layer (0.1 of the wall cell); with the wall function and curvature sizing by its first layer, computed from the target (see Target y+).
Equations
| where | meaning | unit |
|---|---|---|
| Wall distance of the first cell centre in wall units, | - | |
| Velocity in wall units, | - | |
| Friction velocity, | m/s | |
| von Kármán constant, 0.41 | - | |
| Log-law intercept, 5.2 | - | |
| Log-law constant written to the boundary condition | - |
Default and rule
- Default
- wall function
- Rule
Wall function. It is valid for any up to the gate limit, so it tolerates the wide spread of a muffler produces (fast jets next to nearly still chambers), at a far lower cell count than a resolved wall.
- Source
Spalding's law (Spalding, 1961); equation (1) is given in its commonly quoted form. The constants and are the program's fixed values.
Quality gate 2 sets no lower bound on for the wall function. The plain log-law convention would reject meshes that Spalding's law handles correctly, for example a validation run with an average of 24.5. The 12 layers of low-Re are the low end of the 12-15 layers commonly recommended for a resolved sublayer; no reference is cited for this guidance.
Valid range wall function | low-Re (resolved wall)
Wall function
Gate 2 passes for an average wall , with no lower bound. An average between 5 and 30 (buffer layer) is reported as advisory: the wall shear is least accurate there.
Low-Re
Gate 2 fails above an average of 5. A typed target above 5 or fewer than 12 layers gets a warning on the Mesh step.
Cell count
The low-Re layer estimate of the cell-count model has not been checked against a real 12-layer mesh.