Grid convergence index calculator
A mesh independence study (equally often called a grid convergence study) uses three mesh levels to estimate how much of a CFD result is still mesh-dependent. This calculator applies the standard procedure: it solves for the observed order of convergence, uses Richardson extrapolation to estimate the value on an infinitely fine mesh, and reports the Grid Convergence Index — the discretisation uncertainty band — for the fine and medium meshes.
Everything runs in your browser. No data leaves the page, and nothing is stored.
What this calculator will not do. It will not invent a number it cannot justify. If the monitored quantity changes sign between successive meshes, or does not change at all, the observed order of convergence cannot be established from three results, and the tool says so instead of printing an order. A GCI computed from a fit that has no physical basis is worse than no GCI at all.
How to use this calculator
- Run the same case on three meshes with a consistent refinement ratio — about 1.5 in linear cell size between successive levels is the usual choice, which roughly doubles the cell count in 2D and triples it in 3D.
- Keep every solver setting identical across the three runs: turbulence model, boundary conditions, relaxation factors and convergence criteria. A change in any of them makes the comparison meaningless.
- Enter one monitored quantity at a time — a drag coefficient, a pressure drop, a peak wall temperature. A mesh can be converged for one quantity and not for another, so a study is always run per quantity.
- Enter a characteristic cell size h for each mesh. If you only have cell counts N,
switch the input basis to cell count and pick the dimension; the tool derives
h = N-1/d. This is exact only for uniformly refined meshes. - Read the verdict at the bottom against your own threshold. The default 5% is a common engineering acceptance level; high-accuracy work often calls for 1–2%.
What each number means
The three meshes are labelled 1 (fine), 2 (medium) and 3 (coarse), with characteristic cell sizes
h1 < h2 < h3 and monitored values phi1, phi2,
phi3. In the literature the monitored quantity is often written phi or φ and the
differences ε; the names used here follow Celik et al. (2008).
| Quantity | Definition | What it means |
|---|---|---|
r21, r32 |
h2/h1, h3/h2 |
The refinement ratio between successive meshes. Both should be greater than 1 and, ideally, equal to one another. |
eps21, eps32 |
phi2 - phi1, phi3 - phi2 |
The change in the monitored quantity between successive meshes. Both must carry the same sign for the observed order to be defined. |
p |
solved iteratively from eps, r |
The observed order of convergence: how fast the error falls as the mesh is refined. Compare it with the formal order of your discretisation scheme. |
phi_ext |
Richardson extrapolation | The value the quantity would take on an infinitely fine mesh, estimated from the three levels. |
e_a21 |
|(phi1 - phi2)/phi1| |
The approximate relative error between the medium and the fine mesh. |
GCI_fine |
Fs * e_a21 / (r21^p - 1) |
The discretisation uncertainty band on the finest mesh, at roughly 95% confidence when
Fs = 1.25. |
GCI_coarse |
Fs * |(phi3 - phi2)/phi3| / (r32^p - 1) |
The same band for the medium mesh, referenced to the coarse one. |
| Asymptotic check | GCI_coarse / (r21^p * GCI_fine) |
Should sit close to 1. Far from 1, the three meshes are not consistently in the asymptotic range and the GCI should be treated with caution. |
The method, and why it is written this way
Why three levels and not two
Two meshes can only show that a difference exists. Three meshes are the minimum needed to estimate how the difference is shrinking, which is what the observed order of convergence measures. With only two levels there is no way to check whether the solution is in the asymptotic range, and the resulting uncertainty estimate has nothing to validate it. Three is the practical floor for engineering work; high-accuracy studies where the observed order itself matters often use four or five levels.
The observed order of convergence
When the refinement ratios are equal, the observed order has a closed form:
When the ratios differ, the same quantity satisfies an implicit relation and has to be solved for:
The calculator uses the closed form as the starting guess and then applies a bounded fixed-point iteration. It reports the number of iterations and whether the iteration converged, so you can see whether the answer is stable rather than simply trusting a printed number.
What the Grid Convergence Index is — and is not
The GCI is a discretisation uncertainty estimate. It answers one question: given the three meshes you ran, how much could the answer still move if you refined further? It is not a validation of the simulation. It says nothing about whether the turbulence model is right, whether the boundary conditions match reality, whether the geometry is correct, or whether the solution has converged within each run. A case can have a GCI of 0.5% and still be wrong by 30% because of a modelling error. Mesh independence and validation are two separate claims, and this tool speaks only to the first.
The safety factor Fs
The GCI as published by Roache multiplies the relative error by a safety factor, Fs. The
value 1.25 — the default here — is the common choice and corresponds to a 95% confidence
level on the uncertainty band. Fs = 3 is the conservative alternative that Roache proposed
when the observed order of convergence is unreliable or when only two meshes are available; it is
occasionally still asked for by reviewers. If you are reporting to a third party, state which factor you
used, because the GCI number is meaningless without it.
Worked example
The numbers below are the ones pre-filled in the calculator. They come from a made-up but exactly known
relationship, phi(h) = 100 + 200 h², evaluated at h = 0.100,
0.150 and 0.225. Because the underlying function is exactly quadratic, the
observed order must come back as p = 2 and the extrapolated value must come back as
100. That makes the example a check on the method rather than an illustration of it.
| Step | Value | Reading |
|---|---|---|
| Inputs | h = 0.100 / 0.150 / 0.225 phi = 102.000 / 104.500 / 110.125 |
Three meshes, refinement ratio 1.5 in linear cell size, one monitored quantity. |
| Refinement ratios | r21 = 1.500 r32 = 1.500 |
Equal ratios, so the closed form for p applies exactly. |
| Differences | eps21 = 2.500 eps32 = 5.625 |
Same sign, and the coarse-pair change is the larger one — the sequence is converging monotonically. |
| Observed order | p = 2.000 | Recovers the exact order of the underlying quadratic relationship. A real CFD case would be compared against the formal order of the scheme — 2 for a second-order upwind or central discretisation. |
| Extrapolated value | phi_ext = 100.000 | Richardson extrapolation recovers the exact answer of 100, as it must for this function. |
| Relative errors | e_a21 = 2.451% e_a32 = 5.108% |
The medium-to-fine change is about half the coarse-to-medium change, which is what a second-order scheme with a ratio of 1.5 should give. |
| Grid Convergence Index | GCI_fine = 2.451% GCI_coarse = 5.108% |
On this finest mesh the discretisation uncertainty is about 2.5%, comfortably inside a 5% engineering threshold — but only for this quantity. |
| Asymptotic check | 0.926 | Close to 1, so the three meshes are consistent with the asymptotic range. It is not exactly 1
because the GCI at each level is referenced to a different value of phi; the ratio is
phi1/phi3 for an exactly asymptotic family, and 102/110.125 = 0.926. |
| Verdict | Adequate | GCI_fine is below the 5% threshold, so the finest mesh is adequate for this quantity. It does not mean the result is validated. |
Watch the last row of that table. A GCI of 2.5% is a statement about mesh refinement alone. It is entirely possible to have a beautifully converged mesh applied to the wrong turbulence model. The GCI quantifies one error source, not the total error of the simulation.
Reading the asymptotic-range check
The asymptotic-range check is the ratio of the coarse-mesh GCI to the fine-mesh GCI scaled by the
expected factor r21^p. If the three meshes all lie in the asymptotic range — the regime
where the error scales as a clean power of the cell size — successive GCIs should fall by exactly
r21^p, and the ratio should be 1.
- Close to 1 (say 0.95 to 1.05): the mesh family behaves as expected. The GCI is meaningful.
- Noticeably below 1 (for example 0.5): the coarsest mesh is contributing much less error than the scaling predicts. Usually this means the coarse mesh is not in the asymptotic range, or that the refinement was not uniform in the regions that drive the monitored quantity.
- Above 1: the coarse mesh is contributing more error than the scaling predicts. The three results are not a consistent family, and the extrapolated value and the GCI both deserve suspicion.
One caveat worth knowing when you read this number: because the GCI at each level is normalised by that
level's own value of phi, the ratio for a perfectly asymptotic family comes out as
phi1/phi3 rather than exactly 1. For well-converged studies that is a difference of a few
percent and can be ignored; for coarse families such as the worked example above it is visible, and it is
not a sign that anything is wrong.
Scope and limitations
This calculator is a computational aid. It implements the grid-convergence procedure of Roache and the reporting conventions of Celik et al. (2008) as literally as the published formulas allow, and it is not a substitute for engineering judgement.
- It assumes the three meshes form a consistent refinement family of the same case, solved with identical settings. It cannot detect violations of that assumption.
- The cell-count mode assumes uniform refinement. Local refinement in boundary layers
or wakes changes the effective cell size in the regions that matter, and
h = N-1/dwill then understate or overstate the real refinement. Enter h directly whenever you can. - The GCI quantifies discretisation uncertainty only. Modelling error, boundary-condition error and geometry error are outside its reach and are usually larger.
- The procedure is defined for a monotonically converging sequence. Oscillatory convergence needs a different treatment and is out of scope here; the tool reports the case rather than forcing a number into it.
- Where the observed order comes out far from the formal order of the scheme, the usual causes are a coarse mesh that is not yet in the asymptotic range, non-uniform refinement, or a quantity that is not smooth in h. Check those before quoting the GCI.
The GCI is reported as a percentage relative to the value on the mesh being assessed. It is not a confidence interval in the statistical sense, and it should never be presented as one.
Standards and references this tool follows
- Roache (1994), grid convergence index
- Celik et al. (2008), ASME Journal of Fluids Engineering
- Richardson extrapolation
- ASME V&V 20 (verification and validation)
Frequently Asked Questions
How many meshes do I need for a mesh independence study?
Three as a minimum: coarse, medium and fine, with a consistent refinement ratio of about 1.5 in linear cell size. Two meshes can show that a difference exists but cannot demonstrate convergence or produce a meaningful Grid Convergence Index. Four or five levels are common when the observed order of convergence itself matters.
What is a good GCI value?
Below 5% on the finest mesh is generally accepted for engineering work; 1–2% or better is expected for high-accuracy studies. The threshold is a judgement call that depends on how sensitive the decision is to that particular quantity — which is why the calculator lets you set it rather than hard-coding a number.
Why does the tool refuse to give an observed order of convergence sometimes?
The observed order is derived from the ratio of the two successive differences, eps32/eps21. If that ratio is negative, the monitored quantity has reversed direction between the meshes; if either difference is zero, there is no ratio at all. Neither case defines an order of convergence, so the tool reports the problem instead of fitting a number to it. In practice a sign reversal usually means oscillatory convergence, an unconverged solver run, or meshes that are not a consistent refinement family.
Should I use Fs = 1.25 or Fs = 3?
1.25 is the standard choice with three meshes and a well-behaved observed order, and corresponds to roughly 95% confidence. Roache's 3 is the conservative factor for when the observed order is unreliable or only two meshes are available. Whichever you use, state it in the report — a GCI without its safety factor is not a complete statement.
Does a small GCI mean my CFD result is validated?
No. A small GCI means the result is close to mesh-independent: refining the mesh further would not move it much. It says nothing about whether the model, the boundary conditions or the geometry represent reality. Mesh independence is one part of verification; validation is a separate exercise against experimental or analytical data.