next up previous

Exercise 15: Approximate the solution to a centered difference FDE.
Use a tridiagonal linear equation solver to approximate the solution to the centered difference FDE for the steady state convection diffusion equation

Use 10, 20, and 100 interior grid points and experiment with values of the ``grid peclet number'' ranging from 0 to 100. In each experiment, use xmgr to plot the results of the numerical solution and the exact solution. Repeat using a one sided difference for the first derivative.