CLAWPACK

Advection with inflow boundary conditions.

Inflow boundary condition u(0, t) = g(t) at x = 0 are specified by the user in the routines g.f and bc1.f by setting the ghost cells at the left edge to:

Qn0 = g(t + Δx ⁄ 2u)

Qn − 1 = g(t + 3Δx ⁄ 2u)

Example [book/chap7/advinflow] to accompany the book Finite Volume Methods for Hyperbolic Problems by R. J. LeVeque.

Converted to Clawpack 5.0 form in 2013.

Files (html versions)