Mesh Convergence / Richardson Extrapolation / GCI Calculator Back
V&V

Mesh Convergence / Richardson Extrapolation / GCI Calculator

Perform mesh convergence studies, Richardson extrapolation, and Grid Convergence Index (GCI) calculations. Enter solutions from three mesh levels to estimate numerical discretization error and verify accuracy.

Mesh Settings

Mesh 2 (Medium)

Mesh 3 (Fine)

Accuracy Settings

14
1.253.0
Results
Order of accuracy p
Richardson extrapolated value φ_ext
GCI_fine (%)
Convergence status
φ vs Mesh Size h (log-log)
Convergence Rate Reference Line
Extrapolated Value & Error |φᵢ − φ_ext| vs N (log-log)

Auto-Generated Report

Calculating...

What is Mesh Convergence Analysis?

🙋
What exactly is "mesh convergence" and why do I need to calculate it for my CFD or FEA simulation?
🎓
Basically, it's the process of checking if your simulation results stop changing significantly when you make your computational mesh finer. In practice, a coarse mesh is fast but inaccurate, while a super-fine mesh is accurate but takes forever. Convergence analysis finds the "sweet spot." Try moving the "Dimension" slider in the simulator above from low to high—you'll see how the calculated solution changes with mesh size.
🙋
Wait, really? So I just keep refining the mesh until the answer looks right? That seems expensive. Is there a smarter way to predict the right answer without running the finest mesh?
🎓
Exactly! That's where Richardson Extrapolation comes in. It's a mathematical technique that uses results from a few coarse meshes to estimate the solution you'd get with an infinitely fine mesh. For instance, if you have results for a medium and a fine mesh, the tool can extrapolate to the theoretical limit. When you change the parameter in the simulator, it's performing this extrapolation behind the scenes to give you a more accurate value.
🙋
That's clever! But how do I know if my extrapolated answer is trustworthy? Is there a number that tells me the quality of my mesh?
🎓
Great question! That's the Grid Convergence Index (GCI). It gives you a percentage error band on your result, like saying "the true answer is 150 Pa ± 3%." A common case is in aerodynamic drag prediction: you run three meshes, the tool calculates the GCI, and if it's below 5%, your mesh is probably good enough. The simulator calculates this index automatically, showing you how confidence changes with your mesh refinement.

Physical Model & Key Equations

The core idea is that the numerical solution $f$ approaches the exact solution $f_{exact}$ as the characteristic mesh size $h$ goes to zero. For well-behaved simulations, the error reduces at a predictable rate.

$$ f = f_{exact}+ g h^p + \text{(higher order terms)}$$

Here, $f$ is your computed result (e.g., drag force, max stress), $f_{exact}$ is the unknown true solution, $g$ is a constant, $h$ is the mesh size, and $p$ is the observed order of accuracy. The simulator uses results from different $h$ values to solve for $p$ and $f_{exact}$.

Richardson Extrapolation uses this error model. With solutions $f_1$, $f_2$, $f_3$ from meshes of size $h_1$, $h_2$, $h_3$ (where $h_1 > h_2 > h_3$), we can estimate the exact solution.

$$ f_{extrapolated}\approx f_1 + \frac{f_1 - f_2}{r^p - 1} $$

where $r = h_2 / h_1$ is the grid refinement ratio. The Grid Convergence Index (GCI) is then calculated as a safety-factor multiplied error estimate: $GCI = F_s |\epsilon|$, where $\epsilon$ is the relative error between meshes and $F_s$ is a safety factor (typically 1.25 for three or more meshes). This gives a practical error band for your engineering result.

Frequently Asked Questions

The basic approach is to set at least three levels of mesh (coarse, medium, fine) with a constant mesh size ratio (r), for example r=2. For instance, let the number of elements in the coarse mesh be N, the medium mesh 2N, and the fine mesh 4N. If the ratio is not constant, the accuracy of the apparent order of accuracy p will decrease.
No. The extrapolated solution is reliable only when the solution is in the asymptotic range (where the mesh is sufficiently fine). Ensure that the GCI is small and the apparent order of accuracy p is close to the theoretical value. Outside the asymptotic range, the extrapolated solution may deviate significantly from the true solution.
As a general guideline, if the GCI is less than 5%, the solution can be considered mesh-independent. However, this depends on the purpose of the analysis and the required accuracy. It is also important that the GCI consistently decreases across the coarse, medium, and fine meshes.
Possible causes include: (1) the mesh is too coarse and not yet in the asymptotic range, (2) poor mesh quality (distortion or poor aspect ratio), (3) discontinuities in boundary conditions or physical models, and (4) the numerical scheme not behaving as theoretically expected. First, try refining the mesh further to check.

Real-World Applications

Aerodynamic Drag Prediction: Before building a full-scale car model for wind tunnel testing, engineers run CFD simulations. They use this tool to determine the mesh fineness needed to predict drag coefficient within a 2% error band, saving weeks of trial-and-error mesh tuning.

Pressure Vessel Stress Analysis: In FEA of a chemical tank, the maximum stress near a nozzle is critical. Convergence analysis confirms that the chosen mesh captures the stress concentration factor accurately, ensuring the design meets safety standards without being overly conservative.

Electronic Chip Cooling: Simulating heat sink performance requires resolving thin boundary layers. Using Richardson extrapolation on three different mesh densities, a thermal engineer can reliably predict the peak chip temperature without running an impossibly dense 50-million-cell simulation.

Turbine Blade Fatigue Life: Calculating oscillating forces on a wind turbine blade involves complex fluid-structure interaction. Reporting the GCI alongside the predicted fatigue cycles is now a best practice in credible simulation studies, providing transparency about numerical uncertainty.

Common Misconceptions and Points to Note

First, understand that “refining the mesh does not always guarantee a closer approximation to the correct solution.” For instance, near geometric singularities in a model (such as sharp corners or contact points), stresses may continue to diverge and fail to “converge” even as the mesh is refined. In such cases, since the stress theoretically becomes infinite, you need to shift your interpretation—for example, changing the goal of the CAE from “identifying the maximum stress value” to “understanding the stress distribution around that area.”

Next, the three meshes should be refined “systematically.” This is a golden rule. For example, instead of simply setting global element sizes to 1mm, 0.7mm, and 0.5mm, maintain a constant refinement ratio $r$ (recommended to be 1.3 or greater), and set sizes like 1mm, 0.77mm (1/1.3), 0.59mm (1/1.3^2). Otherwise, the calculation of the apparent order of accuracy $p$ becomes unstable, and the extrapolation results lose reliability.

Also, do not blindly trust the GCI value alone. Even if GCI_fine is below 2%, the physical quantity you are focusing on might be converging only “by chance.” It is common, for example, for displacement to have converged while maximum stress has not. Always check the convergence individually for multiple important output variables.