Solution

ID: past-exam-of-the-numerical-solutions-of-partial-differential-equations-course-of-the-university-of-oxford/2023/3/c/solution

Use the forward Euler method in time and evaluate both spatial finite difference operators at the old time level:
With and , the explicit update is
Every value on the new time level is computed directly from three old values. The sum of the stencil weights is one, as required to preserve constant solutions of the advection-diffusion equation.

New to topics? Read the docs here!