Solution

ID: past-exam-of-the-short-options-paper-shared-by-parts-a-and-b-of-the-physics-course-of-the-university-of-oxford/2019/s31/1/d/solution

Use a smooth exact solution such as on a domain with matching boundary conditions, and compare numerical and exact values at a fixed physical time. To measure spatial order, halve while making temporal error negligible; the error norm should fall by a factor of four. To measure temporal order, halve on a sufficiently fine fixed spatial grid and again expect a factor of four. Report observed order and use several refinements to identify the asymptotic regime.
Check more than one smooth mode, boundary implementation and expected conservation or decay properties. A manufactured solution with an added known source can test nontrivial boundaries and forcing. Repeat in maximum and root-mean-square norms, stop before finite-precision or solver tolerances dominate, and separate stability failures from errors in convergence order. A single small error or a single visually smooth solution does not establish accuracy.

New to topics? Read the docs here!