Mesh Independence Study in CFD: The GCI Method With a Worked Example
How to prove a CFD result no longer depends on the mesh. We ran our own lid-driven cavity solver on seven meshes and applied the Celik et al. (2008) procedure step by step: apparent order, Richardson extrapolation and the Grid Convergence Index, checked against a 1024 x 1024 benchmark. Also covered: why a small change between meshes is not the error, first-order traps, unstructured refinement ratios, inflation layers and y+, and V&V 20.

A mesh independence study (also called a grid independence or grid convergence study) shows that your CFD answer no longer depends on the mesh. You do one properly by solving the same case on at least three systematically refined meshes, with each cell size at least 1.3 times smaller than the last. From the three results you calculate the apparent order of accuracy, a Richardson-extrapolated value and a Grid Convergence Index (GCI), which is an error band on your finest result. "The answer changed by less than 1%" is not enough on its own.
This guide is for CFD students and junior analysts who need a mesh study that holds up in a project report, a journal paper or an interview. We wrote a small Navier-Stokes solver, ran a classic test case (the lid-driven cavity) on seven meshes and worked through the published procedure of Celik et al. (2008) line by line, using our own numbers. Because a highly accurate benchmark exists for this flow, we can also check whether the GCI band really contains the right answer.
In short
- Our four-mesh study (48 × 48 to 162 × 162 cells, refinement ratio 1.5) gives an apparent order of p = 2.04, matching the scheme's formal second order, and a fine-grid GCI of 0.18% that contains the 1024 × 1024 benchmark (Marchi et al., 2009; Skill-Lync run, 24 Nov 2026).
- Going from 96 × 96 to 108 × 108 cells changed the centre velocity by only 0.087%, yet the true error of the 108 mesh was 0.32%, 3.7 times larger. A small change between two close meshes is not the error.
- With first-order upwind convection, three meshes gave a GCI of 0.007% while the true error was 0.39%, about 54 times larger. The warning sign: an apparent order of 5.2 from a first-order scheme.
- Ghia et al. (1982), the cavity benchmark most students compare with, differs from the 1024-grid solution by 1.6% in centre velocity u and 5.2% in v. "Matches Ghia within 2%" therefore does not prove mesh independence.
- The ASME Journal of Fluids Engineering procedure asks for three grids with refinement ratio r > 1.3 and a safety factor of 1.25 (Celik et al., 2008). NASA's guidance uses a safety factor of 3 when only two grids are available.
What is a mesh independence study in CFD?
A mesh independence study is a test that the quantity you report (drag, pressure drop, a velocity or a heat flux) has stopped changing with the mesh, and an estimate of how much error the mesh still leaves. You solve the same case on progressively finer meshes, watch the monitored values converge, and extrapolate to a mesh with zero cell size.
Every CFD solver replaces the governing equations with algebra on a mesh. The difference between the algebraic answer and the exact solution of the equations is the discretisation error. It shrinks as the cells get smaller, roughly in proportion to , where is a representative cell size and is the order of accuracy of the scheme. A second-order scheme should cut the error about four times each time you halve .
"Mesh independent" never means zero error. It means the error is small enough for your purpose and you know roughly how big it is. Our guide to CFD meshing covers mesh types and quality; this post is about proving the mesh is fine enough.
Why isn't "the result changed by less than 1-2%" enough?
Because the change between two meshes is not the error of the finer mesh. With a second-order scheme, the error of the finer mesh is about the change multiplied by , where is the ratio of cell sizes. For two meshes that differ by only 10% in cell size (), the remaining error is nearly five times the change you see.
Our cavity runs show this directly. The 96 × 96 and 108 × 108 meshes () gave centre velocities that differ by 0.087%, but the 108 mesh was still 0.32% from the benchmark. With a first-order scheme it was worse: two meshes 1.5 times apart changed the result by 0.04% while the true error was 0.39%, because two errors of opposite sign happened to cancel at that resolution.
Two meshes also cannot give you the order , so you cannot tell whether the error is behaving predictably. That is why the procedure below needs three meshes.
How do you do a mesh independence study, step by step?
The standard recipe is the one the ASME Journal of Fluids Engineering published as editorial policy: Celik, Ghia, Roache and Freitas (2008), based on Richardson extrapolation and Roache's Grid Convergence Index (Roache, 1994 and 1997). The journal states that if authors use it, "the method per se will not be challenged in the paper review process".
- Converge each run first. Celik et al. ask for at least three (preferably four) orders of magnitude drop in the normalised residuals, and monitored quantities that have stopped drifting. Iteration error must be far smaller than the mesh error you are trying to measure. Our guide to convergence criteria explains residuals and monitors.
- Define a representative cell size. For a 3D mesh with cells of volume , and for a 2D mesh with cell areas :
- Run three significantly different meshes with refinement ratio , refined systematically (the same mesher settings scaled down, ideally geometrically similar cells). Label them 1 (finest), 2 and 3 (coarsest), with results .
- Calculate the apparent order from the differences and : With a constant ratio (), and comes out directly. Otherwise solve it by fixed-point iteration, starting from the first term.
- Extrapolate and report the errors: is the approximate relative error between the two finest meshes, the estimated error of the fine mesh against the extrapolated value, and the GCI is the uncertainty band you report on the fine result.
- Check the asymptotic range. If is close to the formal order of your scheme, the meshes are in the range where the error behaves as . With a fourth mesh you can calculate from two overlapping triplets and see whether it holds steady. NASA's NPARC guide also uses the check .
We checked our own implementation against the sample table in Celik et al. (2008). For their backward-facing step data it reproduces , an extrapolated reattachment length of 6.1685 and a GCI of 2.2%, and it flags their oscillatory example correctly. The script is in this post's run folder.
Worked example: a lid-driven cavity on four meshes
The problem and the solver
The lid-driven cavity is a square box of fluid whose top wall slides sideways at constant speed. At Reynolds number 100 a single large vortex fills the box, with two tiny eddies in the bottom corners. It is the first case in the OpenFOAM tutorial guide (section 2.1) and a standard test for CFD codes. We chose it because a highly accurate reference exists: Marchi, Suero and Araki (2009) solved it on a 1024 × 1024 grid with repeated Richardson extrapolation and estimate the error of their centre velocity at about . That is as good as an exact answer for our purpose.
Celik et al. ask authors to state the method precisely, so here it is. Our solver (Python with NumPy and SciPy, about 160 lines) uses the streamfunction-vorticity form of the steady Navier-Stokes equations on a uniform grid of cells. Diffusion and convection both use second-order central differences, so the formal order is 2. Wall vorticity comes from Thom's formula. Newton iterations drove the largest residual below in five or six iterations on every mesh, so iteration error is negligible. The monitored quantity is the horizontal velocity at the cavity centre, , with lid speed and cavity side both equal to 1.
What did the seven meshes give?
We ran seven meshes; a real study would use only the four in bold.
| Mesh (cells) | Cell size h | u(0.5, 0.5) | Error vs benchmark |
|---|---|---|---|
| 16 × 16 (256) | 1/16 | −0.17576 | 16.0% |
| 24 × 24 (576) | 1/24 | −0.19434 | 7.1% |
| 32 × 32 (1,024) | 1/32 | −0.20099 | 3.9% |
| 48 × 48 (2,304) | 1/48 | −0.20562 | 1.69% |
| 72 × 72 (5,184) | 1/72 | −0.20761 | 0.74% |
| 108 × 108 (11,664) | 1/108 | −0.20847 | 0.32% |
| 162 × 162 (26,244) | 1/162 | −0.20885 | 0.14% |
| Benchmark, 1024 × 1024 + extrapolation (Marchi et al., 2009) | −0.2091491 | ||
| Ghia et al. (1982), 129 × 129 | −0.20581 | 1.60% |
Look at the last row. A student who stopped at 48 × 48 would match Ghia's value to within 0.1% and call the job done, yet both numbers are about 1.6% from the accurate answer. Ghia's table carries its own discretisation error, of the same size as the differences people use it to judge.
How is the GCI calculated, step by step?
Take the three finest meshes: (162), (108) and (72), with . In 2D, , so the ratio follows from the cell counts: .
Both differences have the same sign, so the convergence is monotonic, and sits right on the formal order of 2. Then, with :
So the honest report is on the 162 × 162 mesh (GCI 0.18%), with an extrapolated value of −0.20914. Now compare with the benchmark, which a real project would not have. The true error of the fine mesh is 0.143%, inside the 0.176% band. The extrapolated value is within 0.003% of the benchmark: Richardson extrapolation from three cheap meshes landed almost exactly on a 1024 × 1024 result.
How do you know the meshes are in the asymptotic range?
A fourth mesh lets you test it. The coarser triplet (48, 72, 108) gives and the finer triplet (72, 108, 162) gives , both near 2. The extrapolated values agree to five decimals (−0.20913 and −0.20914). NASA's check, , comes out at 1.002, where 1 means the asymptotic range.
Different quantities converge differently, so monitor more than one. The same procedure for seven quantities on the 72/108/162 triplet:
| Quantity | Fine mesh (162) | p | GCI fine | True error | Benchmark inside band? |
|---|---|---|---|---|---|
| u at centre | −0.208850 | 2.04 | 0.18% | 0.14% | Yes |
| v at centre | 0.057444 | 1.99 | 0.20% | 0.16% | Yes |
| Flow rate M (= −ψ at centre) | 0.066410 | 2.04 | 0.26% | 0.21% | Yes |
| ψmin, vortex strength | −0.103406 | 2.05 | 0.13% | 0.11% | Yes |
| umin on vertical centreline | −0.213671 | 2.04 | 0.21% | 0.17% | Yes |
| vmax on horizontal centreline | 0.179150 | 2.02 | 0.29% | 0.24% | Yes |
| Bottom-wall shear force | 0.003260 | 2.04 | 0.31% | 0.25% | Yes |
Every band contains the benchmark, and the GCI is 1.21 to 1.26 times the true error each time: the 1.25 safety factor doing its job. The finest mesh took about 3.5 s to solve; on a 3D turbulent case the same study can take days, so plan the meshes before you start.
What happens with a first-order scheme, and what is oscillatory convergence?
A first-order scheme can make a mesh study look perfect while the answer is still wrong. We switched the convection term to first-order upwind differencing and repeated the study.
On 48, 72 and 108 cells the centre velocity was −0.20912, −0.20987 and −0.20996. The last two differ by 0.04%. The GCI formula returned and a band of 0.007%, but the true error of the 108 mesh was 0.39%, about 54 times larger. The problem is the apparent order: a first-order scheme cannot really converge at fifth order. What happened is that upwinding's numerical diffusion (an error that smears the flow) and the other discretisation errors have opposite signs. On these meshes they nearly cancel, so the error crosses zero near 48 cells (left panel of the first figure).
Adding the 162 mesh exposes it. On 72, 108 and 162 the result goes −0.20987, −0.20996, −0.20984: it moves one way, then back. Celik et al. call this oscillatory convergence and give a simple test: if , the convergence is oscillatory (here the ratio is −0.72). The asymptotic check gave 0.52 instead of 1, and the benchmark was outside the GCI band again.
What to do when you see this:
- Treat an apparent order far from the formal order (here 5.2 or 0.8 for a first-order scheme) as a warning, not a bonus. Celik et al. note that agreement with the formal order is a good sign of the asymptotic range, though disagreement alone does not prove the results are bad.
- Add a finer mesh if you can. If the differences are tiny or change sign, Celik et al. recommend further refinement and reporting the percentage of points that converge in an oscillatory way. For noisy convergence they point to the least-squares version of the GCI discussed at the Lisbon verification workshops (Eça, Hoekstra and Roache).
- Check several quantities. On the same upwind meshes, v at the centre changed by 2.2% and gave , an honest first-order signal and a 4.5% GCI that did contain the benchmark.
- Use a second-order scheme for the results you report. The JFE policy requires methods that are at least formally second order in space, and treats hybrid and power-law blending schemes as first order unless shown otherwise.
How do you calculate the refinement ratio for an unstructured mesh?
For an unstructured mesh, calculate an effective refinement ratio from the cell counts: , where is the fine-mesh cell count, the coarser one and the number of dimensions (2 or 3). This is the same as the ratio of the representative cell sizes from step 2 above. NASA's NPARC guide uses this effective ratio for unstructured grids.
Two consequences surprise people:
- Refinement is expensive in 3D. Going from 0.6 million to 2.0 million cells is a ratio of only . Reaching Celik's minimum of 1.3 needs times the cells per step, and the classic needs 8 times.
- The refinement must be systematic. Celik et al. say "the refinement itself should be structured even if the grid is unstructured". In practice, scale every size control (global size, local sizings, curvature and proximity settings) by the same factor and keep the same mesher, element type and growth rate. Adding a refinement box only around the region you suspect, or switching from tet to poly between meshes, changes the error pattern, so the three results no longer belong to one family.
For an Ansys Student user limited to 1 million fluid cells, a 3D study at means meshes of about 1,000,000, 455,000 and 207,000 cells. That is tight but workable for a modest model. Our mesh quality calculator helps check each level before you solve.
How should y+ and inflation layers change during mesh refinement?
Refine the near-wall mesh together with the core mesh. If the inflation (prism) layers stay the same while the core gets finer, the study only measures the error away from the wall. Wall shear, heat transfer and separation, which are often the reason for the simulation, are never tested.
How you do it depends on the wall treatment:
- Wall-resolved meshes (y+ about 1, used with SST k-ω, enhanced wall treatment or transition models). Divide the first-cell height by at each step, multiply the number of layers by and reduce the growth rate to , as in the figure. y+ falls from 1 to 0.67 and then 0.44, which is still in the viscous sublayer, so the wall model is the same on every mesh. The Ansys Fluent User's Guide recommends near-wall meshes with y+ of about 1 for high-accuracy wall predictions, especially heat transfer.
- Wall-function meshes. Here you cannot scale the first cell freely. Fluent's guide warns that with wall functions you must avoid y+ below about 30, because wall shear stress and heat transfer "can and will seriously deteriorate". A mesh starting at y+ = 60 would reach 27 after two steps of 1.5. Fluent does not generally recommend wall functions, because "they do not allow a systematic refinement of the near wall grid". If you must use them, keep y+ in the valid range on all meshes and say in the report that the GCI excludes the wall-function error. Better, switch to a y+-insensitive wall treatment.
Use our y+ calculator to set the first-cell height for each mesh, and see near-wall treatment and y+ estimation for the theory behind those limits.
Where does a mesh study fit in verification and validation (ASME V&V 20)?
A mesh study is solution verification: it estimates the numerical error of one simulation. It is different from code verification (showing the software solves its equations correctly, for example against an exact or manufactured solution) and from validation (comparing with experiments to measure modelling error).
ASME V&V 20-2009, the Standard for Verification and Validation in Computational Fluid Dynamics and Heat Transfer, ties them together. As summarised by NIST (Yeo, 2020), the validation comparison error is , the simulation result minus the experimental value. The validation uncertainty combines the numerical, input and experimental uncertainties:
If is much larger than , the difference is mostly modelling error (the turbulence model, say). If is no bigger than , the modelling error is lost in the noise. The mesh study supplies . The GCI is treated as roughly a 95% band, so the standard uncertainty is the GCI divided by a coverage factor (about 2 for a Gaussian error distribution).
The order matters: verify first, then validate. Without a mesh study you cannot tell whether a mismatch with experiment comes from the physics model or from the mesh, and tuning a turbulence model to cover a mesh error gives a model that fails on the next case. The JFE policy puts it bluntly: "reasonable agreement" with experimental data alone will not justify a single-grid calculation.
What do reviewers and employers expect in a mesh independence report?
They expect enough detail to repeat the study and a clear error band on the number you rely on. A minimal report, following Celik et al. (2008) and the JFE policy, contains:
| Item | What to write |
|---|---|
| Method | Solver and version, discretisation of each term with its formal order, boundary condition treatment |
| Iterative convergence | Residual drop (at least three orders of magnitude) and monitor histories |
| Meshes | Cell counts, representative h, refinement ratios, how the inflation layers and y+ changed |
| Results | The key quantities on every mesh, in a table |
| Error estimate | p, extrapolated value, ea, eext, GCIfine, whether convergence was monotonic or oscillatory |
| Decision | Which mesh you used for the remaining runs and why its GCI is acceptable for the purpose |
"How did you check mesh independence?" is a standard CFD interview question. A good answer names the three meshes, the refinement ratio, the quantity monitored, the apparent order and the GCI, in two or three sentences. See our CFD interview questions for how this fits a technical round. If you want to write a solver like the one in this post yourself, Skill-Lync's Introduction to CFD using MATLAB and OpenFOAM starts from finite differences; the CFD book's chapter on the stream function and vorticity solves the same cavity on coarser grids.
Two limits of everything above: the GCI estimates discretisation error only, not modelling error, input error or iteration error. And it is reliable only when the meshes are in the asymptotic range, which is exactly what the order check is for.
Frequently asked questions
How many meshes do I need for a mesh independence study?
At least three. Three meshes are the minimum that gives the apparent order p, and Celik et al. (2008) build the GCI procedure on three. A fourth mesh is worth it when you can afford it: it lets you compute p from two triplets and confirm the asymptotic range. With only two meshes, NASA's guidance uses a safety factor of 3 instead of 1.25.
Are mesh independence, grid independence and grid convergence the same thing?
Yes, in everyday use; "mesh" and "grid" mean the same thing. Strictly, "grid convergence" is the process of approaching the zero-cell-size answer, and "grid independent" is the end state where refinement makes no practical difference. A GCI study shows both.
What is a good GCI value?
There is no universal threshold. Compare the GCI with the accuracy the decision needs: a 2% band on drag may be fine for ranking two design options and too large for a performance guarantee. Report it and justify it rather than quoting a rule of thumb.
Do I also need a time-step independence study?
Yes, for transient runs. Celik et al. say iterative convergence must be checked at every time step, and the JFE policy asks authors to show temporal accuracy and limited phase error. The same Richardson and GCI procedure works with the time step in place of the cell size. Keep the Courant number in mind when you refine both; see our post on the Courant number and stability condition.
Can I use Ghia et al. (1982) as the exact answer for my cavity validation?
Use it as a well-known reference, not as the exact answer. Ghia's values come from a 129 × 129 grid and differ from the 1024 × 1024 extrapolated solution of Marchi et al. (2009) by 1.6% in the centre value of u and 5.2% in v at Re = 100. For a precise check, compare with Marchi et al. (2009) or the spectral solution of Botella and Peyret (1998), which covers Re = 100 and 1000.
Sources and further reading
- Celik, I. B., Ghia, U., Roache, P. J. and Freitas, C. J. (2008). Procedure for Estimation and Reporting of Uncertainty Due to Discretization in CFD Applications, with the JFE Editorial Policy Statement on the Control of Numerical Accuracy. ASME Journal of Fluids Engineering 130(7), 078001. doi:10.1115/1.2960953. Accessed 24 Nov 2026.
- Roache, P. J. (1994). Perspective: A Method for Uniform Reporting of Grid Refinement Studies. Journal of Fluids Engineering 116(3), 405-413.
- Roache, P. J. (1997). Quantification of Uncertainty in Computational Fluid Dynamics. Annual Review of Fluid Mechanics 29, 123-160.
- Marchi, C. H., Suero, R. and Araki, L. K. (2009). The lid-driven square cavity flow: numerical solution with a 1024 x 1024 grid. J. Braz. Soc. Mech. Sci. & Eng. 31(3). doi:10.1590/S1678-58782009000300004. Tables 6-9 used. Accessed 24 Nov 2026.
- Ghia, U., Ghia, K. N. and Shin, C. T. (1982). High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method. Journal of Computational Physics 48(3), 387-411. Values as tabulated by Marchi et al. (2009).
- NASA Glenn Research Center, NPARC Alliance. Examining Spatial (Grid) Convergence. Accessed 24 Nov 2026.
- Yeo, D. (2020). A Summary of Industrial Verification, Validation, and Uncertainty Quantification Procedures in Computational Fluid Dynamics. NIST IR 8298 (summarises ASME V&V 20-2009). Accessed 24 Nov 2026.
- ASME. Verification, Validation and Uncertainty Quantification (V&V 20-2009, Standard for Verification and Validation in Computational Fluid Dynamics and Heat Transfer). Accessed 24 Nov 2026.
- Ansys. Fluent User's Guide 2026 R1, 16.2.1 Choosing a Turbulence Model (near-wall mesh and wall-function guidance). Accessed 24 Nov 2026.
- Ansys. Ansys Student (problem size limits: 1 million fluid cells/nodes). Accessed 24 Nov 2026.
- Skill-Lync engineering desk, 24 Nov 2026: our streamfunction-vorticity cavity solver and GCI script (Python, NumPy, SciPy); every number in the tables and figures above comes from these runs.


