Theory
Curvature sizing. sets the mesher's curvature threshold resolveFeatureAngle, equation (1). A cell of size on a wall of radius sees the surface turn by about radians; the mesher keeps refining a wall cell while the surface inside it turns by more than the threshold, up to the wall's finest level (OpenFOAM user guide, 2026). Refinement therefore stops at , i.e. about cells across each pipe's own diameter , equation (2). A small pipe gets small cells and a large shell keeps large ones. Each inlet and outlet face is put on the level that fits cells across its own hydraulic diameter , never coarser than the finest wall level (see Mesh sizing). The threshold is limited to 5-30°: below it stays at 30°, and above it stays at 5°, so values above 23 refine the curved walls no further.
Uniform sizing. The finest cell is the smallest port's hydraulic diameter divided by , equation (3), and every surface is refined to that cell size. On a large muffler with one small port this puts the small port's cell on every wall.
Both modes. The refinement targets of narrow internal pipes (uniform sizing: at least cells across their own diameter) and of the jet cylinders at the inlets (cells at most ) scale with , so changing refines the whole mesh in proportion; both were tuned at .
In uniform mode a mesh independence study varies (11, 16, 22), because that is the setting that changes the wall cell there; a fineness study is refused in that mode. In curvature mode the study varies the fineness instead, which scales every level-driven size by the same ratio (Celik et al., 2008).
Equations
| where | meaning | unit |
|---|---|---|
resolveFeatureAngle (curvature sizing; 30° in uniform sizing) | ° | |
| Cells across a diameter | - | |
| Wall cell size reached by curvature refinement | m | |
| Local radius of the wall | m | |
| Diameter of the pipe, | m | |
| Background cell size | m |
| where | meaning | unit |
|---|---|---|
| Wall cell size in uniform sizing | m | |
| Smallest hydraulic diameter, , of all inlets and outlets | m |
Default and rule
- Default
- 8
- Rule
8 (preset "default"), i.e. with curvature sizing. A user-defined value is rounded to a whole number between 4 and 80.
- Source
Validation meshes of case V1 (a 2.0 m multi-chamber muffler with a perforated pipe and three absorptive packings; the mesher cases set up with the curvature rule):
- threshold 30° (): 577,357 cells in 249 s;
- threshold 14.3° (): 1,184,789 cells, layer coverage 96.1 %, maximum non-orthogonality 70.0°;
- threshold 7.2° (): did not finish within about 35 min.
The default of 8 is the program's choice based on these meshes; it has not been confirmed by a mesh independence study. With uniform sizing, a 90° pipe elbow gave pressure drops of 398, 473 and 451 Pa at 12, 16 and 24 cells across the diameter: the result is not monotonic, so a single mesh is no proof of a mesh-independent result. The threshold relation is the geometry of a chord on a circle; how the mesher applies the angle is described in its documentation (OpenFOAM user guide, 2026).
Valid range 4 to 80 (whole numbers); presets 4, 8, 12, 16, 24
Values
4 to 80 cells (checked when the setting is saved). Presets: 4 coarse, 8 default, 12 fine, 16 very fine, 24 reference for a mesh independence check.
Cost
Uniform sizing: the wall cells grow as . Curvature sizing: only the curved walls are refined further, so the growth is smaller (V1: 4 to 8 doubled the cells). With curvature sizing above the curved walls are not refined further: the 5° floor of the threshold applies.
Not a convergence proof
Check the pressure drop with a mesh independence study before relying on it.