This method is used to solve partial differential equations that result in advection, such as
\[ \frac{\partial u}{\partial t} = a \frac{\partial u}{\partial x} \]
Equations such as these are very easy to solve for (the initial condition just propagates forward/backward in time), but it is clear that finding a finite difference method to model the equation is less than trivial.
Input:
Domain in space
Domain in time
Time step
Space step
Constant \(a\) found in PDE
Boundary conditions \( \eta(x) \) at \(t_0\)
Output:
An image where space is represented vertically and time horizontally from left to right.
Usage/Example:
Output:
We still get the same ringing on the boundary as before in Lax-Wendroff, but this time it is only on the trailing front. The leading edge of the wave is much more well-defined this time.