Index of /clawpack/users-4.x/claw/book/chap21/corner

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]Makefile 2013-01-21 18:05 1.9K 
[TXT]Makefile.html 2013-01-21 21:31 4.0K 
[DIR]_plots/ 2013-01-21 19:57 -  
[DIR]amr/ 2013-01-21 20:15 -  
[   ]claw.data 2013-01-21 19:57 2.4K 
[TXT]claw.data.html 2013-01-21 21:31 4.8K 
[   ]driver.f 2013-01-21 18:05 823  
[TXT]driver.f.html 2013-01-21 21:31 2.6K 
[   ]driver.o 2013-01-21 19:57 1.1K 
[   ]fdisc.f 2013-01-21 18:05 530  
[TXT]fdisc.f.html 2013-01-21 21:31 2.3K 
[   ]fdisc.o 2013-01-21 19:57 760  
[IMG]interface.png 2013-01-21 18:05 14K 
[   ]makegridfig.py 2013-01-21 18:05 296  
[TXT]makegridfig.py.html 2013-01-21 21:31 1.8K 
[   ]pyclaw.log 2013-01-21 19:57 1.0K 
[   ]qinit.f 2013-01-21 18:05 858  
[TXT]qinit.f.html 2013-01-21 21:31 2.6K 
[   ]qinit.o 2013-01-21 19:57 1.4K 
[   ]rpn2acv.f 2013-01-21 18:05 3.6K 
[TXT]rpn2acv.f.html 2013-01-21 21:31 7.0K 
[   ]rpn2acv.o 2013-01-21 19:57 3.4K 
[   ]rpt2acv.f 2013-01-21 18:05 2.6K 
[TXT]rpt2acv.f.html 2013-01-21 21:31 5.4K 
[   ]rpt2acv.o 2013-01-21 19:57 2.5K 
[   ]setaux.f 2013-01-21 18:05 1.4K 
[TXT]setaux.f.html 2013-01-21 21:31 3.4K 
[   ]setaux.o 2013-01-21 19:57 1.8K 
[   ]setplot.py 2013-01-21 18:05 3.4K 
[TXT]setplot.py.html 2013-01-21 21:31 5.6K 
[   ]setplot.pyc 2013-01-21 19:57 2.4K 
[   ]setprob.data 2013-01-21 19:57 520  
[TXT]setprob.data.html 2013-01-21 21:31 2.2K 
[   ]setprob.f 2013-01-21 18:05 624  
[TXT]setprob.f.html 2013-01-21 21:31 2.3K 
[   ]setprob.o 2013-01-21 19:57 1.7K 
[   ]setrun.py 2013-01-21 18:05 5.8K 
[TXT]setrun.py.html 2013-01-21 21:31 9.2K 
[   ]xclaw 2013-01-21 19:57 219K 

README.html
  README.html CLAWPACK  
 Source file:   README.txt
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap21/corner
 Converted:   Mon Jan 21 2013 at 20:15:39   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

2-d acoustics with variable coefficients.

Two materials with a single interface, specified in fdisc.f [.html] (which is called from cellave.f [.html] to compute the fraction of each grid cell lying in the left and right states).

Figure created by makegridfig.py [.html]

The sound speed and impedance are stored in the aux array, specified in setaux.f [.html]. For cells cut by the interface, the arithmetic average of rho and harmonic average of the bulk modulus are used to determine these parameters for this cell.

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

Converted to Clawpack 4.5 form in 2011.

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.

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

rpt2acv.f [.html]
Transverse Riemann solver.

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

setaux.f [.html]
Sets the aux arrays.

fdisc.f [.html]
Determines the interface in material properties.

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.