Undergraduate Computer Science Student at West Virginia University
Burgers’ equation is a fundamental partial differential equation from fluid mechanics. It is used to model various physical phenomena such as gas dynamics and traffic flow. The equation is given by:
\[\frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} = \nu \frac{\partial^2 u}{\partial x^2}\]The focus of this demonstration is the inviscid case, where the viscosity term $( \nu )$ is zero.
\[\frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} = 0\]
To solve Burgers’ equation numerically, we can use methods such as finite difference, finite volume, finite element, etc. Due to the nonlinearity of the equation, shocks will form in the solution. Shocks are discontinuities in the solution that can be difficult to resolve numerically.
Many typical numerical methods for solving PDEs will not preserve these shocks properly. In the demonstration above, a finite volume method, which uese a simple Reimann solver to compute the flux at the boundaries between spacial cells, is compared to the Lax-Friedrichs method, an upwinding finite difference method that is known for its effectivness in solving conservation laws.