Computational Hyperbolic PDE
  • Fortran 57.5%
  • Python 19.9%
  • MATLAB 8.2%
  • Makefile 7.9%
  • Jupyter Notebook 6.4%
Find a file
2025-12-30 08:14:20 +05:30
acouinflow Clean up code 2023-12-07 18:12:41 +05:30
acousimple Improve plots 2024-01-05 10:47:18 +05:30
acoustics_1d_homogeneous Add moving wall acoustics example 2024-02-05 16:18:16 +05:30
acoustics_1d_layered Update readme 2023-12-31 13:09:05 +05:30
acoustics_1d_variable Add medium and ic options 2023-11-12 10:21:13 +05:30
acoustics_2d_corner Increase output times 2024-04-06 17:04:57 +05:30
acoustics_2d_mapped Improve plotting 2024-04-06 21:39:53 +05:30
acoustics_2d_radial Minor updates 2024-04-10 16:51:00 +05:30
acoustics_2d_variable Copying 2d acoustics variable 2023-12-22 15:37:16 +05:30
advdiff Improve code format 2024-03-25 09:44:21 +05:30
advection_1d Minor updates 2024-01-30 10:49:37 +05:30
advection_1d_reaction Add exact solution 2024-03-19 10:42:36 +05:30
advection_1d_variable Clean up code 2023-12-07 18:33:17 +05:30
advection_2d Add more options 2024-04-05 13:36:40 +05:30
advection_2d_annulus Copy adv in annulus 2023-12-22 14:47:22 +05:30
advection_2d_rotate Improve plotting 2024-04-06 21:39:53 +05:30
advection_reaction_2d Update readme 2024-12-12 10:45:26 +05:30
advinflow Copy advinflow from clawpack 2023-11-05 16:24:34 +05:30
book Add original book codes 2023-11-11 08:58:36 +05:30
bucklev_1d File file opening 2023-12-04 17:42:01 +05:30
burgers_1d Add new example 2025-04-04 14:14:24 +05:30
burgers_2d Add python version of 2d burger 2025-01-23 10:09:36 +05:30
compareadv Use iunit to read file 2025-12-30 08:14:20 +05:30
cubic_1d Copy examples from pyclaw 2023-12-30 09:45:57 +05:30
euler_1d Add noh problem, mx as argument 2024-04-11 17:55:04 +05:30
euler_1d_wcblast Copy from clawpack 2023-12-30 13:26:07 +05:30
euler_2d Update readme 2025-10-26 18:56:10 +05:30
kpp_2d Copy kpp example from pyclaw 2023-12-27 08:25:43 +05:30
mhd_1d Improve plot 2023-12-30 10:16:32 +05:30
onramp Improve code format 2024-03-25 09:44:21 +05:30
pyclaw Update notebook 2024-04-17 18:32:01 +05:30
shallow_1d Update readme 2025-01-23 10:10:07 +05:30
shallow_2d Minor update 2024-04-16 09:02:29 +05:30
traffic_1d Many improvements 2023-11-20 19:09:56 +05:30
traffic_1d_linear Add more velocity case 2023-12-25 21:16:53 +05:30
wavepacket Copy from chpde_doc 2023-09-24 09:54:47 +05:30
README.md Update README.md 2025-12-19 16:48:17 +01:00

Computational Hyperbolic PDE

These codes are based on Clawpack and the book

R. J. LeVeque, Finite volume methods for hyperbolic problems, CUP.

Most of the codes have been taken from various Clawpack repositories and modified slightly in some cases.

To install Clawpack, see the instructions here

https://cpraveen.github.io/comp/clawpack.html

Directory book contains original codes used for the book; they will not work with latest clawpack, you need to use v4.3 but I do not recommend this. Many of the codes have been converted here

https://github.com/clawpack/apps/tree/master/fvmbook

Examples from book on "Riemann Problems and Jupyter Solutions"

Read it here

https://www.clawpack.org/riemann_book/html/Index.html

or read the code on github

https://github.com/clawpack/riemann_book

More examples

  1. Shallow water
    1. Tsunami from ocean onto shelf and beach
    2. Sloshing liquid in a bowl

Visualization

After generating the solution files, e.g., for classic solver using

make .output

The solution files should now be in _output directory. Start ipython and run the following commands

import clawpack.visclaw.Iplotclaw as Iplotclaw
ip = Iplotclaw()
ip.plotloop()

Press enter to get the first plot and for later frames.