Index of /clawpack/clawpack-4.6.3/book/chap23/acoustics

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]Makefile 2013-01-21 18:05 1.9K 
[   ]bc2quad.f 2013-01-21 18:05 7.5K 
[   ]driver.f 2013-01-21 18:05 826  
[   ]make_all.sh 2013-01-21 18:05 133  
[   ]mapc2p.f 2013-01-21 18:05 496  
[   ]mapc2p.py 2013-01-21 18:05 218  
[   ]qinit.f 2013-01-21 18:05 1.1K 
[   ]rpn2acvq.f 2013-01-21 18:05 4.0K 
[   ]rpt2acvq.f 2013-01-21 18:05 2.5K 
[   ]setaux.f 2013-01-21 18:05 2.8K 
[   ]setplot.py 2013-01-21 18:05 4.6K 
[   ]setprob.f 2013-01-21 18:05 595  
[   ]setrun.py 2013-01-21 18:05 5.7K 
[   ]driver.o 2013-01-21 19:59 1.1K 
[   ]qinit.o 2013-01-21 19:59 1.8K 
[   ]rpn2acvq.o 2013-01-21 19:59 3.8K 
[   ]bc2quad.o 2013-01-21 19:59 12K 
[   ]claw.data 2013-01-21 19:59 2.4K 
[   ]mapc2p.o 2013-01-21 19:59 904  
[   ]rpt2acvq.o 2013-01-21 19:59 3.5K 
[   ]setaux.o 2013-01-21 19:59 3.0K 
[   ]setprob.data 2013-01-21 19:59 390  
[   ]setprob.o 2013-01-21 19:59 1.6K 
[   ]xclaw 2013-01-21 19:59 219K 
[   ]mapc2p.pyc 2013-01-21 19:59 577  
[   ]setplot.pyc 2013-01-21 19:59 3.1K 
[DIR]_plots/ 2013-01-21 19:59 -  
[   ]pyclaw.log 2013-01-21 19:59 6.5K 
[DIR]1drad/ 2013-01-21 20:15 -  
[TXT]Makefile.html 2013-01-21 21:31 4.0K 
[TXT]bc2quad.f.html 2013-01-21 21:31 11K 
[TXT]claw.data.html 2013-01-21 21:31 4.8K 
[TXT]driver.f.html 2013-01-21 21:31 2.6K 
[TXT]make_all.sh.html 2013-01-21 21:31 1.7K 
[TXT]mapc2p.f.html 2013-01-21 21:31 2.3K 
[TXT]mapc2p.py.html 2013-01-21 21:31 1.7K 
[TXT]qinit.f.html 2013-01-21 21:31 2.8K 
[TXT]rpn2acvq.f.html 2013-01-21 21:31 7.3K 
[TXT]rpt2acvq.f.html 2013-01-21 21:31 5.0K 
[TXT]setaux.f.html 2013-01-21 21:31 5.3K 
[TXT]setplot.py.html 2013-01-21 21:31 7.0K 
[TXT]setprob.data.html 2013-01-21 21:31 2.1K 
[TXT]setprob.f.html 2013-01-21 21:31 2.3K 
[TXT]setrun.py.html 2013-01-21 21:31 9.1K 

README.html
  README.html CLAWPACK  
 Source file:   README.txt
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap23/acoustics
 Converted:   Mon Jan 21 2013 at 20:15:42   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

$\phantom{******** If you see this on the webpage then the browser could not locate *********}$
$\phantom{******** the jsMath file load.js *********}$

$\newcommand{\vector}[1]{\left[\begin{array}{c} #1 \end{array}\right]}$ $\newenvironment{matrix}{\left[\begin{array}{cccccccccc}} {\end{array}\right]}$ $\newcommand{\A}{{\cal A}}$ $\newcommand{\W}{{\cal W}}$

 


CLAWPACK Sample Code

2d acoustics with a radially-symmetric solution.

Solved on a quadrilateral grid using the mapping specified in mapc2p.f. This is currently set to cover a chevron-shaped region with a grid that is not orthogonal and not smooth along one line.

See setaux.f for a description of how grid information is stored in the aux array. Variable coefficients for the acoustics equation are also allowed, though in this example the they are constant and set in setprob.f.

The data is a smooth radial hump specified in qinit.f The 1d equation with source term is solved in subdirectory 1drad to create an accurate reference solution.

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

Converted to Clawpack 4.4 form in 2009.

Plots of results

After running this code and creating plots via "make .plots", you should be able to view the plots in _plots/_PlotIndex.html .

Fortran files

Makefile [.html]
Determines which version of fortran files are used when compiling the code with make and specifies where output and plots should be directed. Type "make .help" at the Unix prompt for options.

driver.f [.html]
The driver routine allocates storage and then calls the main Clawpack routine.

setprob.f [.html]
A routine by this name is called by the library routine clawpack/2d/lib/claw2ez.f [.html] and is generally used to set any values needed for the specific problem being solved.

rpn2acvq.f [.html]
Normal Riemann solver (normal to cell interface).

rpt2acvq.f [.html]
Transverse Riemann solver.

qinit.f [.html]
This subroutine sets the initial data at time $t=0$.

Python files

setrun.py [.html]
This file contains a function that specifies what run-time parameters will be used.

Some parameters that you might want to modify are described in the documentation .

setplot.py [.html]
This file contains a function that specifies what plots will be done and sets various plotting parameters.

Data files

Warning: These files are generally changed when setting up a run, usually in setrun.py [.html].

claw.data [.html]
This file contains a number of parameter values that are used by CLAWPACK. The values in this file are read by the library routine clawpack/2d/lib/claw2ez.f [.html].

setprob.data [.html]
This file may contain various parameters used in setting the initial conditions or otherwise setting up the problem.

Library routines

In addition to the Fortran routines in this library, several library routines from $CLAW/clawpack/2d/lib are used. See the Makefile [.html] to determine which ones are used.