Finite difference approximation of diffusion
equation
Diffusion equation: in one space dimension
Forward time central space (FTCS)
Backward time central space (BTCS)
The matrix on the L.H.S. of above equation is invertible as it is strictly
diagonally dominant.
Crank-Nicolson method
A finite difference equation is consistent with a PDE if the
difference between the PDE and FDE (ie., the T. E.) vanishes as
the sizes of the grid spacing go to zero independently.
When applied to a PDE that has a bounded solution, a FDE is
stable if it produces a bounded solution and is unstable if it
produces an unbounded one.
A fd method is convergent if the solution of the FDE
approaches the exact solution of the PDE as the sizes of the
grid spacing approach zero.
Consider the equation u_t=u_xx
Apparently, we cannot choose the time step/mesh width arbitrary!
So the instability must be due to choices in the numerical scheme.
j-1
Home work:
(1) Derive the truncation error of both BTCS and Crank-Nicolson
scheme and find the order of accuracy of the scheme.
Relative advantages and disadvantages of the two
approaches