Assigned Wednesday, Oct. 1, 2008, due Wednesday, Oct. 8, 2008
In this assignment you will be experimenting with different methods for solving the two dimensional convection equation.
Files used in this assignment:
ConvectionTest.cpp | Program for testing several different discretizations for solving the convection equation. |
ConvectionRoutines.h, ConvectionRoutines.cpp | Convection routine function prototypes and source code |
GridParameters.h, RunParameters.h | Parameter class declarations. Declarations for the GridParameters and RunParameters classes. |
DoubleArray1D.h, DoubleArray2D.h | A "light" array class that provides dynamic allocation, optional bounds checking and high level array operations. Note: Array indexing starts at 0 ("C" convention) |
outputToGNUplot.h, outputToGNUplot.cpp |
Output header file and source for creating GNUplot or Matlab readable data files. Substitute your own output routines if you are not using GNUplot or Matlab. |
The main driver program is ConvectionTest.cpp. As the routine is now written,
it will prompt you for the input, and, in addition to displaying the errors it will output the solution to a data
file at every nth step.