Assigned Wednesday, Oct. 7, 2008, due Wednesday, Oct. 14, 2008
$\qquad \dfrac{\partial S}{\partial t} + \vec u \cdot \nabla S = \nu \Delta S$
Do this by adding a second order approximation to $\nu \Delta S$ to the DoubleArray2D "con"
in the routine evaluateConvectionOp(...) contained in ConvenctionRoutines.cpp. Note: the loops currently
in the code exclude the boundary points, and thus, as discussed in lecture, implicitly return the value of zero
for the ODE associated with the boundary points.
Since your routines now solve the convection diffusion equation, it is strongly suggested that you rename the files and
routines appropriately. (For example, you might change the name of the routine evaluateConvectionOp(...) to something like evaluateConvectionDiffusionOp(...)).
You will also need to pass in the value of the diffusion coefficient to the convection-diffusion operator. A good
way to do this is to add a data member to the RunParameters class defined in RunParameters.h.
(a) As you increase the viscosity what happens to the solutions?
(b) Does the method ever become unstable?
(c) If the method does become unstable - then why does it do so?
(d) Do you get similar results when you use first order upwind?