CLAWPACK_PLOT
Wave Propagation Approach to Hyperbolic PDE's
CLAWPACK_PLOT is a library of MATLAB routines for displaying
the results of computations made by CLAWPACK,
which applies a wave propagation approach to hyperbolic
partial differential equations in 1, 2 or 3 spatial dimensions.
When you run a CLAWPACK program, a number of files are created
containing data computed by the program at successive times. For
instance, in one case, my program created the following files:
fort.info
fort.nplot
fort.q0000
fort.q0001
...
fort.q0010
fort.t0000
fort.t0001
...
fort.t0010
This data can plotted using CLAWPACK_PLOT. The easiest
way to do this is to put all your CLAWPACK data files
in the same directory as the CLAWPACK_PLOT routines,
and issue the appropriate command. In the 1D case, the
appropriate command is
plotclaw1
Related Data and Programs:
CLAW_PIX
is a simplified version of CLAWPACK_PLOT, suitable for the
1D case. It displays all the data automatically,
and saves each frame as a PNG
file, suitable for an animation.
CLAWPACK
is a library of FORTRAN77 routines for the solution of wave
propagation to hyperbolic partial differential equations
in 1, 2 or 3 spatial dimensions.
License:
Copyright 1995-2002 R. J. LeVeque
This software is made available for research and instructional use only.
You may copy and use this software without charge for these non-commercial
purposes, provided that the copyright notice and associated text is
reproduced on all copies. For all other uses (including distribution of
modified versions), please contact the author at the address given below.
This software is made available "as is" without any assurance that it
will work for your purposes. The software may in fact have defects, so
use the software at your own risk.
CLAWPACK Version 4.1, September, 2002
http://www.amath.washington.edu/~claw
Reference:
-
Randy LeVeque,
Finite Volume Methods for Hyperbolic Problems,
Cambridge University Press, 2002.
-
Randy LeVeque,
CLAWPACK Version 4.2 User's Guide,
../../pdf/clawpack.pdf
Examples and Tests:
-
EXAMPLE01
is a 1D problem, using advection with constant
velocity and outflow boundary conditions. The velocity is set
in the data file.
-
EXAMPLE02
is a 1D problem involving the acoustics equation.
Source Code:
Basic Clawpack plotting routines and options.
-
plotclaw1.m, plot 1d results;
-
plotclaw2.m, plot 2d results;
-
plotclaw3.m, plot 3d results;
-
setplot1.m,
script for setting parameters for 1d plots;
-
setplot2.m,
script for setting parameters for 2d plots;
-
setplot3.m,
script for setting parameters for 3d plots;
-
setplot.m,
help on using setplot1, setplot2 or setplot3;
-
readamrdata.m,
reads output files produced by Clawpack;
-
plotframe1ez.m,
functional form of plotframe1;
-
setplotstyle.m,
sets symbols and colors for line/scatter plots;
-
queryframe.m,
queries the user for next frame information;
-
getlegendinfo.m,
returns legend information on line plots;
-
printgif.m,
prints a gif file from current figure;
-
printjpg.m,
prints a jpg file from current figure;
Data analysis routines.
General graph properties for 2d and 3d plots.
-
showcontourlines.m,
shows contour lines;
-
hidecontourlines.m,
hides contour lines;
-
showgridlines.m,
shows computational grid;
-
hidegridlines.m,
hides computational grid;
-
showpatchborders.m,
shows patch borders;
-
hidepatchborders.m,
hides patch borders;
-
showmesh.m,
shows a coarsened mesh on specified levels;
-
hidemesh.m,
hides a coarsened mesh on specified levels;
-
mappedgrid.m,
parameter for plotting mapped grids.;
-
setcolors.m,
gives user control over how colors are set;
-
setopengl.m,
Sets OpenGL renderer;
-
showslices.m,
shows slices/manifold;
-
hideslices.m,
hides slices/manifold;
-
setslicecolor.m,
sets color of slice/manifold;
-
setslicealpha.m,
set transparency value of slice/manifold;
-
yrbcolormap.m,
yellow/red/blue colormap;
-
redwhite.m,
red/white colormap;
-
rybcolormap.m,
red/yellow/blue colormap;
-
getblocknumber.m,
get block number for plotting results of multi-block calculations;
2d specific graphics routines
3d specific graphics routines
-
sliceloop.m,
loop over slices on 3d plots;
-
surfloop.m,
loop over isosurfaces;
-
setviews.m,
sets pre-defined viewing angles;
-
showcubes.m,
shows 3d amr patch cube borders;
-
hidecubes.m,
hides 3d amr patch cube borders;
-
showsurfs.m,
shows isosurfaces created with ISOSURFVALUES;
-
hidesurfs.m,
hides isosurfaces created with ISOSURFVALUES;
-
showsurflevels.m,
show isosurfaces at specified AMR levels;
-
hidesurflevels.m,
hide isosurfaces at specified AMR levels;
-
reducesurf.m,
reduces number of faces on isosurface;
-
showsurfmesh.m,
shows isosurface mesh;
-
hidesurfmesh.m,
hides isosurface mesh;
-
setsurfalpha.m,
sets isosurface transparency value;
-
setsurfcolor.m,
sets isosurface color;
You can go up one level to
the FORTRAN77 source codes.
Last revised on 07 April 2006.