In this example we use CentPack's one-dimensional third order semi-discrete formulation, centpack_1d_SD3, to evolve the solution of the inviscid Burgers' equation

over the interval , from to , with initial conditions given by

and periodic boundary conditions, . Solution computed using 400 cells and cfl number 0.75.
The image below display the initial coditions, click on it to see an animation up to .

Click on the image to see an animation
The files implementing this exaple are included in the current CentPack distribution, CP-1.0. Read here how to run and compile this example.
|