Theory
Near a wall the velocity of a turbulent flow follows a universal profile once the distance is scaled with the viscous length . The scaled distance says where the first cell centre sits: in the viscous sublayer (), the buffer layer () or the logarithmic region ().
The flow is not solved yet when the mesh is built, so the friction velocity is estimated from a smooth-pipe skin-friction correlation, equation (2), at the bulk velocity of the fastest port and the equivalent circular diameter of that port. The flow through the outlets is shared by area, because the split is only known after the solve. Equation (3) then gives the first-layer thickness whose cell centre lies at the target .
With curvature sizing and wall functions, is used as a fraction of the finest wall cell , limited to ; the number of layers on auto is reduced (never below 3) until the whole stack, equation (4), fits in . The plan is written to logs/layer_plan.log. The y+ estimate on the Mesh step and the y+ the solver reports after the run both quote the cell centre, so the three numbers can be compared directly.
Equations
| where | meaning | unit |
|---|---|---|
| Distance of the first cell centre from the wall, in wall units | - | |
| First-layer (first-cell) thickness | m | |
| Friction velocity | m/s | |
| Kinematic viscosity of the gas | m²/s | |
| Fanning skin-friction coefficient of a smooth pipe | - | |
| Bulk velocity of the fastest port, | m/s | |
| Equivalent circular diameter of that port | m | |
| Area of the port | m² |
| where | meaning | unit |
|---|---|---|
| Thickness of the whole prism-layer stack | m | |
| Expansion ratio between neighbouring layers | - | |
| Number of layers | - | |
| Size of the finest wall cell | m |
Default and rule
- Default
- 30 (wall function), 1 (low-Re)Computed by the program
- Rule
On auto the target follows the wall treatment: with the wall function, which puts the first cell centre at the start of the logarithmic region, past the buffer layer; with the low-Re treatment, which resolves the viscous sublayer. A typed value is kept as typed and gets a warning when it does not suit the wall treatment.
- Source
The wall function is Spalding's single law of the wall (Spalding, 1961), valid from the sublayer to the logarithmic region. The target of 30 is the program's default: it places the first cell centre with a resolution margin past the buffer layer. The skin-friction correlations of equation (2) are the smooth-pipe Blasius form and its high-Reynolds-number counterpart.
Valid range y+ ≤ 300 (wall function), ≤ 5 (low-Re)
Continuous wall function
The wall function is valid for any (Spalding, 1961). A first cell in the buffer layer does not stop the run; the report marks it as advisory, because the wall shear there is the least accurate.
Upper limit
After the run, quality gate 2 fails when the average wall exceeds 300 (wall function) or 5 (low-Re): such a first cell is too coarse for any wall treatment.
Estimate before the solve
comes from a smooth-pipe correlation at the bulk velocity. Separated, swirling or jet flow inside the muffler moves the achieved away from the target; compare it with the solved value on the Results step.