ABSTRACT

The data set used to illustrate subroutine up is taken from Example 11.7. The output generated by the program is presented in Output 11.4.

Output 11.4. Solution of the convection equation by the second-order upwind method

Convection equation solver (Upwind method), iu 2 and c 0.50

0 0.0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20.00 40.00 60.00 80.00100.00 80.00 60.00 40.00 20.00 0.00

0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

4 1.0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 5.49 20.65 40.02 60.00 80.00 89.01 78.69 59.95 40.00 20.00 5.49 0.65 0.02 0.00 0.00 0.00 0.00 0.00 0.00 0.00

8 2.0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.21 7.8821.87 40.27 60.02 77.58 84.25 76.26 59.4739.96

21. 21 7.88 1. 87 0.27 0.02 0.00 0.00 0.00 0.00 0.00 .....................................................................