Theory
A mesh-independence study needs a systematic refinement: every cell size must shrink together, so that the three solutions lie on one convergence curve. Which setting does that depends on Mesh sizing:
- Curvature sizing (default): Fineness scales every cell size together (about twice the cells per step), so the study varies fineness 2 / 3 / 4; it is the only choice offered.
- Uniform sizing: Cells across a pipe diameter at 11 / 16 / 22 (centred on its default of 16) sizes the surface cells from the smallest port, and the internal-wall and jet refinement targets scale with it. Fineness 3 / 4 / 5 is offered only when cells across is not set: with cells across set, the finest surface cell does not depend on fineness at all, so a fineness study would hold the flow-resolving cell size fixed; the program refuses it.
The study is a queue job: a snapshot of the case is copied into a new folder inside the project's _files folder and the three points are run one after another, each a full mesh + solve in its own sub-folder of the run. Each point's pressure drop is the window mean of its convergence rule. From the three pressure drops and cell counts the program computes, following Celik et al. (2008), the representative cell size, the apparent order of convergence (fixed-point iteration of equations (2)-(3)), the extrapolated pressure drop and the GCI of the fine and coarse pairs, equations (4)-(5). If any point fails to give a pressure drop and a cell count, no GCI is computed; the table of points is still written (mesh_independence.csv). The coarse GCI uses and the same way as equation (5); the asymptotic ratio close to 1 indicates the asymptotic range. The Results step shows the study (chart of against cells, and the GCI values).
Equations
| where | meaning | unit |
|---|---|---|
| Cell count of mesh (1 finest, 3 coarsest) | - | |
| Representative cell size (relative; the domain volume is the same on all meshes) | - | |
| Total-pressure drop on mesh (window mean) | Pa | |
| Apparent order of convergence | - | |
| Richardson-extrapolated pressure drop | Pa | |
| Grid convergence index of the fine mesh (×100 for %) | - | |
| Relative difference between the fine and medium solutions | - |
Default and rule
- Default
- curvature sizing: fineness 2 / 3 / 4; uniform sizing: cells across 11 / 16 / 22
- Rule
Follows the case's mesh sizing: curvature sizing studies fineness 2 / 3 / 4; uniform sizing studies cells across 11 / 16 / 22.
- Source
GCI procedure of Celik et al. (2008) with the safety factor 1.25 for three meshes; the implementation is pinned by a unit test on (recovers , GCI 5.95 %). The levels are the program's choice. The uniform fineness levels start at 3: fineness 1 failed quality gate 1 with 0 % layer coverage on a real test geometry.
Valid range curvature: fineness only; uniform: cells across, or fineness 3 / 4 / 5 when cells across is not set
Cost
Three full runs, the finest the most expensive (fineness +1 is about twice the cells with curvature sizing).
Not a refinement
A fineness study with cells across set is refused: it is not a systematic refinement and its GCI would be meaningless.
Equal results
When two meshes give exactly the same pressure drop, and the GCI are undefined and are left blank.