Index of /clawpack/users/claw/book/chap20/rotate

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]Makefile 2013-01-21 18:05 1.9K 
[   ]advection 2013-01-21 18:05 3.4K 
[   ]afterframe.m 2013-01-21 18:05 85  
[DIR]amr/ 2013-01-21 18:05 -  
[   ]driver.f 2013-01-21 18:05 815  
[   ]psi.f 2013-01-21 18:05 277  
[   ]qinit.f 2013-01-21 18:05 962  
[   ]rpn2ad.f 2013-01-21 18:05 2.4K 
[   ]rpt2ad.f 2013-01-21 18:05 1.0K 
[   ]setaux.f 2013-01-21 18:05 917  
[   ]setplot.py 2013-01-21 18:05 2.5K 
[   ]setplot2.m 2013-01-21 18:05 3.2K 
[   ]setprob.f 2013-01-21 18:05 116  
[   ]setrun.py 2013-01-21 18:05 5.7K 
[   ]claw.data 2013-01-21 19:56 2.4K 
[   ]driver.o 2013-01-21 19:56 1.1K 
[   ]psi.o 2013-01-21 19:56 612  
[   ]qinit.o 2013-01-21 19:56 1.5K 
[   ]rpn2ad.o 2013-01-21 19:56 2.3K 
[   ]rpt2ad.o 2013-01-21 19:56 1.8K 
[   ]setaux.o 2013-01-21 19:56 1.5K 
[   ]setprob.o 2013-01-21 19:56 564  
[   ]xclaw 2013-01-21 19:56 214K 
[   ]setplot.pyc 2013-01-21 19:56 1.9K 
[DIR]_plots/ 2013-01-21 19:56 -  
[   ]pyclaw.log 2013-01-21 19:56 1.6K 
[TXT]Makefile.html 2013-01-21 21:31 4.0K 
[TXT]afterframe.m.html 2013-01-21 21:31 1.6K 
[TXT]claw.data.html 2013-01-21 21:31 4.8K 
[TXT]driver.f.html 2013-01-21 21:31 2.6K 
[TXT]psi.f.html 2013-01-21 21:31 1.9K 
[TXT]qinit.f.html 2013-01-21 21:31 2.7K 
[TXT]rpn2ad.f.html 2013-01-21 21:31 5.0K 
[TXT]rpt2ad.f.html 2013-01-21 21:31 2.8K 
[TXT]setaux.f.html 2013-01-21 21:31 2.7K 
[TXT]setplot.py.html 2013-01-21 21:31 4.5K 
[TXT]setplot2.m.html 2013-01-21 21:31 6.3K 
[TXT]setprob.f.html 2013-01-21 21:31 1.6K 
[TXT]setrun.py.html 2013-01-21 21:31 9.2K 

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

Advection equation for solid body rotation

Edge velocities are stored in aux array (see setaux.f [.html]) with velocity specified by differencing the streamfunction defined in psi.f [.html]. The velocities are $u = \psi_y, v = -\psi_x$.

Example [book/chap20/rotate] 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.

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

rpt2ad.f [.html]
Transverse Riemann solver.

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

setaux.f [.html]
Computes the advection velocity normal to each cell edge and stores in aux arrays for use in the Riemann solvers.

psi.f [.html]
Defines the stream function $\psi(x,y)$ for advection. The advection velocity is $u = \psi_y, v = -\psi_x$.

Python files

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

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 and the versions here may not be the ones actually used.

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]. Each line contains one or more values to be read in, followed by comments that are ignored by the Fortran code but may be used by Pythons scripts.

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

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.