Inviscid Burgers's Equation

Burgers's equation is one of the simplest cases of a nonlinear, hyperbolic partial differential equation. It is useful as a test problem in computational fluid dynamics. The one-dimensional, inviscid (i.e., zero viscosity) form of the equation is given by
where is the space coordinate, is time, and is some conserved physical quantity (e.g., momentum). In this Demonstration, solutions to this equation can be visualized for three different initial waveforms. The left plot shows the changing waveform with time and the right plot shows the solution in three dimensions. The time can be varied in 10 discrete steps.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The inviscid Burgers's equation is a flux-conservative partial differential equation, and is thus amenable to finite-volume methods, which are often used for numerically solving nonlinear, hyperbolic partial differential equations. Hyperbolic problems are represented in the flux-conserving form
where is the flux function for some conserved quantity . The inviscid Burgers's equation is easily represented in this form if the flux function is considered to be The finite-volume method takes the following form with forward-Euler time-stepping
where is the space index, is the time index, is the flux at the right boundary enclosing the volume around point , and is the flux at the left boundary enclosing the volume around point . There are several different finite-volume methods, which differ in their determination of and In this Demonstration, the Harten-Lax-van Leer (HLL) method is used because it is good at capturing shocks in an evolving waveform, which is a feature often found in solutions to Burgers's equation.
Reference: R. J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge, UK: Cambridge University Press, 2002.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+