CFD Mesh Quality Metrics

Category: CFD Meshing | Revised 2026-10-01
CAE visualization for mesh quality cfd theory - technical simulation diagram
CFD Mesh Quality Metrics

Theory: how quality metrics relate to error

Overview

🙋

After meshing, the software warned 'maximum non-orthogonality 75°'. How much should I worry?

🎓

Each quality metric ties to error in a particular calculation. Non-orthogonality affects the diffusion flux through a face (transport of heat or momentum). If the line joining cell centres isn't perpendicular to the face, their difference alone can't give the face-normal gradient correctly. At 75°, the uncorrected flux is off by over 70%, and even with correction the calculation tends to be unstable. What matters more than the maximum, though, is where the bad cells are: fix them in important flow regions, tolerate them where influence is small.

Non-orthogonality

$$ \left.\frac{\partial\phi}{\partial n}\right|_f \approx \frac{\phi_N - \phi_P}{|\mathbf d|} = |\nabla\phi|\cos\theta \quad (\text{uncorrected}), \qquad \text{error} = 1 - \cos\theta $$

The non-orthogonal angle $\theta$ is between the centre-to-centre vector $\mathbf d$ and the face normal. Uncorrected, the face-normal gradient is underestimated by a factor of $\cos\theta$.

Expansion ratio

$$ \phi''_P \approx \frac{2\left[h_-\phi_{E} - (h_- + h_+)\phi_P + h_+\phi_W\right]}{h_- h_+ (h_- + h_+)}, \qquad \text{leading error} \propto (h_+ - h_-)\,\phi''' $$

When neighbouring widths differ ($h_+ \ne h_-$), the leading central-difference error term survives in proportion to the first power of spacing. Refining with a fixed expansion ratio drops accuracy to first order.

Coffee Break Trivia

Meshing is half the job

In early CFD, in the 1970s–80s, people built body-fitted structured grids largely by hand, and meshing consumed most of the analysis time. When automatic tetrahedral meshing spread in the 1990s, complex shapes could be meshed quickly, but distorted cells brought accuracy loss and divergence. Quality metrics such as non-orthogonality and expansion ratio, and correction methods to compensate, were developed in response. Today's detailed mesh-quality reports in general-purpose codes are the fruit of that experience.

Worked examples

Example 1: non-orthogonal angle and flux error

Angle10°20°30°45°60°70°80°
Uncorrected flux error1.5%6.0%13.4%29.3%50.0%65.8%82.6%

For a uniform gradient, non-orthogonal correction removes the error entirely. But the correction is added using the previous iteration's gradient, so at large angles it dominates and destabilises iteration.

Example 2: expansion ratio and difference accuracy

The second derivative of $e^x$ (exact value 1) was computed with a three-point difference at a fixed neighbour width ratio $r$:

Ratio rSpacing 0.10.050.025Order
1.08.3×10⁻⁴2.1×10⁻⁴5.2×10⁻⁵2.00
1.14.3×10⁻³1.9×10⁻³8.9×10⁻⁴1.09
1.27.7×10⁻³3.6×10⁻³1.7×10⁻³1.05
1.51.8×10⁻²8.7×10⁻³4.3×10⁻³1.03
2.03.6×10⁻²1.7×10⁻²8.5×10⁻³1.03
🙋

Even at ratio 1.2 the error is nine times larger and first order.

🎓

Right. Refining at a fixed ratio keeps the width difference proportional to spacing, so the leading error term never vanishes. When studying grid dependence, ideally the ratio approaches 1 as you refine. The 1.2–1.3 used in boundary-layer prism layers is a compromise to capture steep near-wall changes with few cells; in exchange, watch the ratio at the transition so cell size doesn't jump away from the wall.

Quality guidelines and remedies

  1. Aim for non-orthogonality below about 70° and locate cells exceeding it.
  2. Keep expansion ratio around 1.2 or below, avoiding jumps at the boundary-layer transition.
  3. High-skewness cells degrade face interpolation; avoid them in important flow regions.
  4. High aspect ratio is usually fine when aligned with the flow (as in boundary layers).
  5. Don't judge by metrics alone; confirm results via a grid-dependence study.
Coffee Break Trivia

“One cell stopped the run”

A multi-million-cell flow calculation diverged partway every time. Tracking where residuals were largest revealed a single almost-collapsed cell with 88° non-orthogonality where a narrow gap had been filled. Overall average quality was excellent, so it had been overlooked. Slightly simplifying the geometry there and remeshing let the calculation converge stably. Judge quality by the worst cells and their locations, not the average.

Common mistakes

Mistakes and fixes

MistakeEffectFix
Judging quality by averageWorst cell causes divergenceCheck worst values and locations
Abrupt expansionAccuracy drops to first orderKeep ≈1.2 or below
Disabling non-orthogonal correctionDiffusion flux errorUse correction and limit angles
Worrying only about aspect ratioReal cause missedJudge relative to flow direction
Assuming good quality is enoughInsufficient resolution missedCheck grid dependence
🙋

I'd like to learn related topics.

🎓

For grid checks see mesh independence; boundary-layer meshing, inflation layers; cell types, polyhedral meshes, hex-dominant meshes and structured meshes; differencing behaviour, the central difference scheme.

Related Simulators

Experience the theory firsthand with the interactive simulator for this field

All Simulators

Related fields

Thermal AnalysisV&V · Quality AssuranceStructural Analysis
Rate this article
Thank you for your feedback!
Helpful
More details
Report error
Helpful
0
More details
0
Report error
0