clawpack / riemann_book

An interactive book about the Riemann problem for hyperbolic PDEs, using Jupyter notebooks.
BSD 3-Clause "New" or "Revised" License
266 stars 96 forks source link

a simplified version of burgers exact solution #241

Closed burakbayramli closed 2 years ago

burakbayramli commented 2 years ago

Hi there, I was having difficulty following the logic spread between burgers_demos.py, burgers.py and riemann_tools.py, so I took pieces necessary from these files to create a simplified version, for both rarefaction and shock options. The output for each time slice is a simple png file which can be combined into a gif animation using ImageMagick on the command line (available on many platforms).