Consider the convection-diffusion equation
With the boundary conditions
Consider the following initial profile
The exact solution is
Discretization:
From modified wave number analysis, Explicit Euler is unstable.
Discretization:
From modified wave number analysis, Leapfrog is stable when
Discretization:
From Von-Neumann stability analysis, Explicit Euler is stable when
Discretization:
From modified wave number analysis, Leapfrog is unstable.