Eigenvalues as a function of k for the linear diffusion equation with various time stepping schemes. Dimensionless timestep n = 2*dt*K/dx^2, where K is the diffusion constant and dx is the grid spacing. This time we use a very long timestep (compare diffusion.c):
To plot wavenumber on the x-axis, I define
Forward time, centered space (FTCS):
Midpoint method with perturbed halfstep, dt*(1+d)/2:
Implicit time, centered space (ITCS):
Implicit midpoint method. This time, the intermediate timestep is (1+c)/2:
Analytic result:
Nyquist Frequency:
This file was created by Graphing Calculator 3.5.
Visit Pacific Tech to download the helper application to view and edit these equations live.