CLAWPACK

Gallery of all applications

1-dimensional advection

$CLAW/apps/advection/1d/example1 ... README ... Plot Index

Advecting Gaussian with outflow boundary.

      


1-dimensional acoustics

$CLAW/apps/acoustics/1d/example1 ... README ... Plot Index

Acoustics equations with outflow boundary conditions.

      


$CLAW/apps/acoustics/1d/example2 ... README ... Plot Index

Acoustics equations with funky initial data, reflecting boundary at left and outflow at right.

      


1-dimensional Burgers' equation

$CLAW/apps/burgers/1d/sine2n ... README ... Plot Index

Burgers' equation with sinusoidal initial data, steepening to N-wave.

      


1-dimensional Euler equations

$CLAW/apps/euler/1d/hump ... README ... Plot Index

Initial hump in density and pressure propagating outwards and forming shocks.

      


2-dimensional advection

$CLAW/apps/advection/2d/example1 ... README ... Plot Index

Advecting square with periodic boundary conditions.

      


$CLAW/apps/advection/2d/example1/amr ... README ... Plot Index

Advecting square with periodic boundary conditions. Using AMR

        


$CLAW/apps/advection/2d/example1_gauges/amr ... README ... Plot Index

Advecting square with periodic boundary conditions. Using AMR and plotting solution at several gauges

        


$CLAW/apps/advection/2d/swirl ... README ... Plot Index

Advection equation with a time-dependent velocity field that swirls one way and then the other.

      


$CLAW/apps/advection/2d/swirl/amr ... README ... Plot Index

Advection equation with a time-dependent velocity field that swirls one way and then the other. Using AMR

      


$CLAW/apps/advection/2d/annulus ... README ... Plot Index

Advection equation with solid body rotation in an annular region, solved using polar coordinates.

      


$CLAW/apps/advection/2d/annulus/amr ... README ... Plot Index

Advection equation with solid body rotation in an annular region, solved using polar coordinates. Using AMR

        


2-dimensional acoustics

$CLAW/apps/acoustics/2d/example1 ... README ... Plot Index

Acoustics with radially symmetric solution.

      


2-dimensional Burgers'

$CLAW/apps/burgers/2d/pwconst ... README ... Plot Index

2d Burgers' equation with piecewise constant initial data and periodic boundary conditions.

      


Tsunami models using GeoClaw

$CLAW/apps/tsunami/bowl-radial ... README ... Plot Index

Radially symmetric solution in a bowl with Gaussian hump initial data. Solved in Cartesian coordinates.

      


$CLAW/apps/tsunami/bowl-slosh ... README ... Plot Index

Sloshing water in a parabolic bowl, initialized so the solution should agree with a known exact solution in which the surface is always linear.

        


$CLAW/apps/tsunami/chile2010 ... README ... Plot Index

Tsunami of 27 February 2010 off the coast of Chile, with a comparison to DART buoy data.

        


$CLAW/apps/tsunami/chile2010b ... README ... Plot Index

Tsunami of 27 February 2010 off the coast of Chile, with a comparison to DART buoy data. (Updated version.)

          


Chapter 3: Characteristics and RiemannProblems for Linear Hyperbolic Equations.

$CLAW/book/chap3/acousimple ... README ... Plot Index

Acoustics example with data breaking into left and right-going waves, with solid wall at left and outflow at right.

      


Chapter 6: High-resolution methods

$CLAW/book/chap6/compareadv ... README ... Plot Index

Advection equation with first order upwind method. Periodic boundary conditions, looping around through unit period.

      


$CLAW/book/chap6/wavepacket ... README ... Plot Index

Advection equation with first order upwind method. Periodic boundary conditions, looping around through unit period.

      


Chapter 7: Boundary Conditions and Ghost Cells

$CLAW/book/chap7/advinflow ... README ... Plot Index

Advection equation with inflow boundary conditions.

      


$CLAW/book/chap7/acouinflow ... README ... Plot Index

Acoustics equations with inflow boundary condition.

      


$CLAW/book/chap7/standing ... README ... Plot Index

Acoustics eqautions with solid wall boundary conditions and a standing wave solution.

        


Chapter 9: Variable-Coefficient Linear Equations

$CLAW/book/chap9/acoustics/interface ... README ... Plot Index

Acoustics equations with variable coefficients and a single interface with no impedance jump.

      


$CLAW/book/chap9/acoustics/layered ... README ... Plot Index

Acoustics equations with variable coefficients in periodic layered medium.

      


Chapter 10: Other Approaches to High Resolution.

$CLAW/book/chap10/tvb ... README ... Plot Index

TVB method on the advection equation with wave-packet data and periodic boundary conditions.

      


Chapter 11: Nonlinear Scalar Conservation Laws.

$CLAW/book/chap11/burgers ... README ... Plot Index

Burgers' equation with oscillatory initial data to demonstrate decay to an N wave.

      


$CLAW/book/chap11/greenlight ... README ... Plot Index

Traffic flow equations. Riemann problem for cars starting at a green light.

      


$CLAW/book/chap11/redlight ... README ... Plot Index

Traffic flow equations. Riemann problem for cars stopping at a red light.

      


Chapter 12: Finite Volume Methods forNonlinear Scalar Conservation Laws.

$CLAW/book/chap12/efix ... README ... Plot Index

Burgers' equation with a transonic rarefaction wave. Comparison of results obtained with or without the entropy fix.

      


$CLAW/book/chap12/llf ... README ... Plot Index

Burgers' equation with a transonic rarefaction wave. Using the Local Lax-Friedrichs method.

      


$CLAW/book/chap12/nonconservative ... README ... Plot Index

Burgers' equation solved with a nonconservative upwind method, to demonstrate that this does not approximate the weak solution properly.

      


Chapter 13: Nonlinear Systems of Conservation Laws.

$CLAW/book/chap13/collide ... README ... Plot Index

1d Shallow water equations with initial data consisting of two 2-shocks, which collide and produce a 1-rarefaction and 2-shock.

      


Chapter 17: Source Terms and Balance Laws.

$CLAW/book/chap17/advdiff ... README ... Plot Index

Advection-diffusion equation solved with a fractional step method.

      


Chapter 20: Multidimensional Scalar Equations.

$CLAW/book/chap20/burgers ... README ... Plot Index

2D Burgers' equation at angle theta to the x-axis.

      


$CLAW/book/chap20/rotate ... README ... Plot Index

Advection equation for solid body rotation

        


Chapter 21: Multidimensional Systems.

$CLAW/book/chap21/radialdam ... README ... Plot Index

Radial dam-break problem for 2D shallow water equations.

        


Chapter 22: Elastic Waves.

$CLAW/book/chap22/corner ... README ... Plot Index

Elasticity equations in a region consisting of two materials with a corner.

      


Chapter 23: Finite Volume Methods on Quadrilateral Grids.

$CLAW/book/chap23/acoustics ... README ... Plot Index

2d acoustics with a radially-symmetric solution, solved on a skewed grid.