CLAWPACK

1D Acoustics with simple waves

Example [book/chap3/acousimple] to accompany Figure 3.1 of the book Finite Volume Methods for Hyperbolic Problems by R. J. LeVeque.

Converted to Clawpack 5.0 form in 2013.

Added plots of characteristic variables in 2023 using v5.9.0

1d acoustics in a constant medium.

qt + Aqx = 0

where

q(x, t) = (p(x, t),  u(x, t))T

and the coefficient matrix is

A =  0 K 1 ⁄ ρ 0 .

The density rho and bulk modulus K are set in setrun.py and then written out to setprob.data, which is read in by the Fortran code.

Files (html versions)