Paper 2, Section II, B
(a) The advection equation
is discretised using an equidistant grid with stepsizes and . The spatial derivatives are approximated with central differences and the resulting ODEs are approximated with the trapezoidal rule. Write down the relevant difference equation for determining from . What is the name of this scheme? What is the local truncation error?
The boundary condition is periodic, . Explain briefly how to write the discretised scheme in the form , where the matrices and , to be identified, have a circulant form. Using matrix analysis, find the range of for which the scheme is stable. [Standard results may be used without proof if quoted carefully.]
[Hint: An circulant matrix has the form
All such matrices have the same set of eigenvectors , where , and the corresponding eigenvalues are .]
(b) Consider the advection equation on the unit square
where satisfies doubly periodic boundary conditions, , and and are given doubly periodic functions. The system is discretised with the Crank-Nicolson scheme, with central differences for the space derivatives, using an equidistant grid with stepsizes and . Write down the relevant difference equation, and show how to write the scheme in the form
where the matrix should be identified. Describe how (*) can be approximated by Strang splitting, and explain the advantages of doing so.
[Hint: Inversion of the matrix in part (a) has a similar computational cost to that of a tridiagonal matrix.]