1.4. FLOW AND DECAY OF A POLLUTANT IN A STREAM 25
(a). Find 4 × 4 matrix version of (1.3.3).
(b). Repeat problem 6 with this 4 × 4 matrix
8. Experiment with variable space steps
k = g{ = O@q by letting q =
5
> 10> 20 and 40.
steps so that the stability condition holds.
9. Experiment with variable time steps
gw = W@pd{n by letting pd{n =
100> 200 and 400 with q = 10 and W = 400.
10. Examine the graphical output from the experiments in exercises 8 and
9. What happens to the numerical solutions as the time and space step sizes
decrease?
11. Suppose the thermal conductivity is a linear function of the temp erature,
say,
N = frqg = =001 + =02x where x is the temperature.
(a). Modify the finite di
erence model in (1.3.3).
(b). Modify the M
AT LAB code heat1d.m to accommodate this variation.
Compare the numerical solution with those given in Figure 1.3.1.
1.4 Flow and Decay of a Pollutant in a Stream
1.4.1 Intro duction
Consider a river that has been polluted upstream. The concentration (amount
per volume) will decay and disperse downstream. We would like to predict at
any point in time and in space the concentration of the pollutant. The model
of the concentration will also have the form
x
n+1
= Dx
n
+e where the matrix D
will be defined by the finite dierence model, which will also require a stability
constraint on the time step.
1.4.2 Applied Area
Pollution levels in streams, lakes and underground aquifers have become very
serious common concern. It is important to be able to understand the conse-
quences of possible pollution and to be able to make accurate predictions ab out
"spills" and future "environmental" policy.
Perhaps, the simplest model for chemical pollution is based on chemical
decay, and one model is similar to radioactive decay. A continuous model is
x
w
= gx where g is a chemical decay rate and x = x(w) is the unknown
concentration. One can use Euler’s method to obtain a discrete version
x
n+1
=
x
n
+ w(g)x
n
where x
n
is an approximation of x(w) at w = nw, and stability
requires the following constraint on the time step 1
wg A 0.
Here we will introduce a second model where the pollutant changes location
because it is in a stream. Assume the concentration will depend on both space
and time. The space variable will only be in one direction, which corresponds
to the direction of flow in the stream. If the pollutant was in a deep lake, then
the concentration would depend on time and all three directions in space.
© 2004 by Chapman & Hall/CRC
See Figures 1.3.1 and 1.3.2 and be sure to adjust the time