12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

514 chapter 196. Now modify your program to solve Burgers’ shock equation (19.8) usingthe Lax–Wendroff method (19.12).7. Save the initial data and the solutions for a number of times in separate filesfor plotting.8. Plot the initial wave and the solution for several time values on the samegraph in order to see the formation of a shock wave (like Figure 19.1).9. Run the code for several increasingly large CFL numbers. Is the stabilitycondition β

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!