The MacCormack Scheme
Contents
The MacCormack Scheme#
The MacCormack scheme is another multi-step scheme. It is composed of a predictor step and a corrector step. It is one of the simplest of the predictor-corrector class of numerical schemes.
The predictor step is used to obtain an estime \(\tilde{u}\) of the unknown function \(u\) at \(t^{n+1}\):
Note the use of a forward formula to approximate the spatial derivative. The corrector step uses the estimates \( \tilde{u}^{n+1}\) to approximate the spatial derivative with a backward formula:
To obtain the solution at \(t^{n+\frac{1}{2}}\), we simply average the function at \(t^n\) and the estimate at \(t^{n+1}\):
The final scheme is:
Consistency, stability and convergence#
For the linear advection equation, the MacCormack scheme is equivalent to the Lax-Wendroff scheme, so its properties are the same as those of the latter.
Application: propagation of top hat function#
The MacCormack scheme applied to the top hat initial condition gives the same solution as the Lax-Wendroff scheme.