Consider the linear advection equation
where
with periodic boundary conditions.
Consider also two different initial conditions
Compute the solution on a 128-point mesh for both initial conditions and for CFL = 0.8. Compare the first- and second-order upwind schemes versus the Lax-Wendroff scheme after 100 time steps and after 10,000 time steps.