
Consider the second two-dimensional example, the problem is now
acting a jumped discontinuous forcing function, that is
where
Using the same technique of finding the exact solution as the previous
example, the coefficient of
can be determined as follows
Therefore, the exact solution for the problem (2.2.1) is
We use the five-point finite difference method and uniform meshes similar to the above example. A similar matrix equation can be obtained, the only difference would be the column vector b, such that the entry of b would be the corresponding value of the forcing function and we set the function value at the jumped discontinuous points to be zero. The numerical solutions at the nodal point (1/4, 1/4) are as follows
|
|
|
|
|
|
| h=1/4 |
|
|
|
|
| h=1/8 |
|
|
|
|
| h=1/16 |
|
|
|
|
| h=1/32 |
|
|
|
|
| h=1/64 |
|
|
|
|
| h=1/128 |
|
|
||
| h=1/256 |
|
|
r(1)
|
|
|
|
|
|
r(2)
|
|
|
|
|
|
r(3)
|
|
|
|
|
|
r(4)
|
|
|
|
|
|
r(5)
|
|
|
||
|
r(6)
|
|
From the results above, we suggest the asymptotic error expansion to be
And we also see that extrapolating from the three solutions corresponding
to h = 1/4, 1/8 and 1/16, we get a numerical solution with error
which is smaller than the numerical solution error
corresponding to h = 1/256. But if we extend the idea from the Experiment
(1.3), we take the function value at the
jumped discontinuous points to be the average of the neighbouring nodal
points in the finite difference method. The following Tables 7.3
and Table 7.4 show the numerical solutions
at the same point (1/4, 1/4). We see that the results are quite better
than the results from Table 7.1 and Table
7.2. And we can obtain the a symptotic error
expansion
Furthermore, we obtain a similar results at any other nodal points [See Appendix G.7a-G.7f].
|
|
|
|
|
|
| h=1/4 |
|
|
|
|
| h=1/8 |
|
|
|
|
| h=1/16 |
|
|
|
|
| h=1/32 |
|
|
|
|
| h=1/64 |
|
|
|
|
| h=1/128 |
|
|
||
| h=1/256 |
|
|
r(1)
|
|
|
|
|
|
r(2)
|
|
|
|
|
|
r(3)
|
|
|
|
|
|
r(4)
|
|
|
||
|
r(5)
|
|
|
||
|
r(6)
|
|