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:
Notice how the boundary of the travelling wave is more tight than in up-winding, but there exists some ringing on both boundaries. This is due to the addition of the second-order diffusion term in the approximation allowing the approximation to overshoot then settle back down.