The following plots compare the solutions for different CFL numbers. Each plot shows three different solutions, generated on grids with 150, 300 and 600 points and a plot of the initial data. (The central peak with amplitude = 1.0 is the inital pulse.)
These plots compare on the same graph three solutions each with different CFL numbers. The grid spacing is constant in these plots at 600 points. (Unfortunately, these plots compare waves at different times, so the waves are not centered at the same place. Ideally, their amplitudes and widths would be the same, however, deviations from the ideal and each other are obvious.)
These results can be best understood by examining the truncation error for this scheme. The largest order term in the truncation error is proportional to the grid spacing and the CFL number. This term is also dissipative. This gives two obvious conclusions. First, as (/\x) is increased the error increases linearly. Second, the error is smaller as the CFL number approaches zero.
The error terms are not given here, but they are in the readme
file for projects 3 and 4.
Click here
to see the project 4 web page.
- CFL = 0.9
- Grids with 150, 300, and 450 elements
- 200 iterations
Convergance Factors
What happens as beta changes? Below several solutions are given with different values for beta. In each case two solutions are plotted together. One solution is generated on a grid with 600 points, and the other on a grid with 150 points. This allows one to compare discretization effects.
Also notice that dispersion errors increase dramatically when beta simply changes sign (with constant magnitude). For example compare solutions for beta = +0.5 to solutions for beta = -0.5, etc. Below we show how to compensate for the increased dispersion by using a smaller CFL number.
Here we compare beta = -1.3 at three different CFL numbers