The CFL condition require that the numerical domain of dependence should contain the physical domain of dependence, which is . Therefore, for these methods,
Can be used. Satifies the CFL condition when
Cannot be used. It never satisfies the CFL condition.
Can be used. Satifies the CFL condition when
Cannot be used. It never satisfies the CFL condition.
Problem 2
Question (a)
Question (b)
The numerical domain of dependence for the Fromm method is
The CFL condition requires that the numerical domain of dependence should contain the physical domain of dependence, which is a single point . To satisfy the CFL condition, we need
that is
To discuss the stability of the Fromm method, we use the assumption
Substitute this into the Fromm method, we have
Divide by , we have
The amplification factor is
To be stable, we need , that is . Therefore, we have
Therefore,
Finally we have that the Fromm method is stable when .
To discuss the monotonicity of the Fromm method, it can be noticed that the four coefficients of the Fromm method can never be all positive at the same . That is, the Fromm method is not monotonic.
Question (c)
The Fromm method
Determine the truncation error by using Taylor expansion ( subscripts are omitted for simplicity)
Notice that
Therefore, we have
Problem 3
Question (a)
Use the Taylor expansion
Question (b)
The differential equation to solve is
On grid points , where , we use forward difference for and central difference for ,
Extract from the equation, we have
Substitute with formula in Question (a), and use to denote , we have
That indicates all these methods are unstable. As a result, it can be observed that all three solutions oscillate at the discontinuity. When , we have
That indicates all these methods are stable. It can be seen that the oscillation no longer exists in the solution. Among these three methods, Lax-Wendroff method is not monotonic, while the other two methods are monotonic. This is reflected in the solution, where the Lax-Wendroff method has overshoots at the discontinuity, while other two methods do not.