Code Verification by the Method of Manufactured Solutions

Patrick J. Roache

Journal of Fluids Engineering · 2001 · 741 citations · 20 references

Concepts

TL;DR

Verification of calculations estimates errors, while verification of codes evaluates errors against known benchmark solutions, which are best represented by exact analytical solutions with complex structure that need not be realistic. The study introduces the Method of Manufactured Solutions (MMS) as a straightforward, general procedure for generating benchmark solutions. MMS generates benchmark solutions by symbolically manipulating equations, and is demonstrated here with simple examples to illustrate its application to complex codes. Systematic grid refinement studies show that MMS yields robust code verifications with theorem‑like rigor and a clearly defined completion point.

Abstract

Verification of Calculations involves error estimation, whereas Verification of Codes involves error evaluation, from known benchmark solutions. The best benchmarks are exact analytical solutions with sufficiently complex solution structure; they need not be realistic since Verification is a purely mathematical exercise. The Method of Manufactured Solutions (MMS) provides a straightforward and quite general procedure for generating such solutions. For complex codes, the method utilizes Symbolic Manipulation, but here it is illustrated with simple examples. When used with systematic grid refinement studies, which are remarkably sensitive, MMS produces strong Code Verifications with a theorem-like quality and a clearly defined completion point.

References

20