5 Stability of the simple explicit scheme
The purpose of the time-stepping scheme is to approximate at later and later times . It is clear that the larger we take the time step , the fewer steps will be necessary to reach a particular time . One constraint on the size of is that we know from our earlier look at difference methods that derivative approximations are most accurate when small increments are used. However, as we will see in the next couple of pages, a far more telling constraint on the size of arises on consideration of stability . We begin with an Example.
Example 16
The temperature of a metal bar of length at a distance from one end and at time is modelled by the partial differential equation
It is given that the metal has diffusivity , that the two ends of the bar are kept at temperature and that the initial temperature distribution is
Use the explicit difference scheme with and to approximate at and .
Solution
In this case so that the numerical scheme can be written
The first stage is to use the given data to find
The first time-step will find . First we note that the boundary condition implies that .
The second time-step will find . First we note that the boundary condition implies that . Now
Figure 6 shows the results found in Example 16.
Figure 6
Something has gone wrong here. And it only gets worse in subsequent time-steps. After 9 time-steps the numerical solution approximating at is
(to 4 decimal places). This is an example of instability . A part of the numerical solution wants to keep growing and growing in a way that is not a part of the engineering application being modelled.
There are many different definitions of (in)stability, and they often depend on the specific application in mind. For the heat conduction problem under discussion here, the following definition is sufficient.
Key Point 19
The explicit difference scheme
where , approximating the heat conduction problem
is said to be stable if the approximations do not grow in magnitude with .
(Of course, there are applications where the principal quantity of interest does grow with time, and in these cases other definitions of stability are appropriate.)
The main stability result for the explicit scheme is proved in many textbooks on the subject, but for this Workbook it is sufficient to simply state it.
Key Point 20
The explicit scheme is stable if and only if
Writing this another way we see that the restriction on the time-step is that
5.1 Why is the stability constraint a problem?
In the above account it has been stated that the stability constraint is a severe restriction on the time-step . Here we discuss why this is the case.
For sake of argument let us take an example where and choose . The stability requirement insists that we must choose
which is much smaller than . If we require an even smoother approximation in the direction we could halve taking it to be equal to . It is now necessary that
Decreasing by a factor of 2 causes to decrease by a factor of 4. The problem is that the upper bound on involves the square of , which is likely to be very small.
The following method overcomes the requirement of tiny time-steps.