Index of /clawpack/users-4.6/claw/book/chap17/advdiff

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]Makefile 2013-01-21 18:05 1.7K 
[TXT]Makefile.html 2013-01-21 21:31 3.8K 
[DIR]_plots/ 2013-01-21 19:56 -  
[   ]afterframe.m 2013-01-21 18:05 495  
[TXT]afterframe.m.html 2013-01-21 21:31 2.1K 
[   ]beforeframe.m 2013-01-21 18:05 18  
[TXT]beforeframe.m.html 2013-01-21 21:31 1.5K 
[   ] 2013-01-21 19:56 2.1K 
[TXT] 2013-01-21 21:31 4.4K 
[   ]driver.f 2013-01-21 18:05 761  
[TXT]driver.f.html 2013-01-21 21:31 2.6K 
[   ]driver.o 2013-01-21 19:56 964  
[   ]pyclaw.log 2013-01-21 19:56 1.4K 
[   ]qinit.f 2013-01-21 18:05 542  
[TXT]qinit.f.html 2013-01-21 21:31 2.3K 
[   ]qinit.o 2013-01-21 19:56 1.0K 
[   ]qinit1.f 2013-01-21 18:05 564  
[TXT]qinit1.f.html 2013-01-21 21:31 2.3K 
[   ]rp1.f 2013-01-21 18:05 1.7K 
[TXT]rp1.f.html 2013-01-21 21:31 4.0K 
[   ]rp1.o 2013-01-21 19:56 2.3K 
[   ] 2013-01-21 18:05 1.8K 
[TXT] 2013-01-21 21:31 3.7K 
[   ]setplot.pyc 2013-01-21 19:56 1.4K 
[   ] 2013-01-21 19:56 411  
[TXT] 2013-01-21 21:31 2.1K 
[   ]setprob.f 2013-01-21 18:05 647  
[TXT]setprob.f.html 2013-01-21 21:31 2.4K 
[   ]setprob.o 2013-01-21 19:56 1.4K 
[   ] 2013-01-21 18:05 5.5K 
[TXT] 2013-01-21 21:31 8.9K 
[   ]src1.f 2013-01-21 18:05 1.7K 
[TXT]src1.f.html 2013-01-21 21:31 3.9K 
[   ]src1.o 2013-01-21 19:56 3.2K 
[   ]tridiag.f 2013-01-21 18:05 9.2K 
[TXT]tridiag.f.html 2013-01-21 21:31 14K 
[   ]tridiag.o 2013-01-21 19:56 7.1K 
[   ]xclaw 2013-01-21 19:56 174K 

 Source file:   README.txt
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap17/advdiff
 Converted:   Mon Jan 21 2013 at 20:15:36   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-diffusion equation solved with a fractional step method. The diffusion equation is solved in src1.f using Crank-Nicolson. The tridiagonal system is solved using the LAPACK routine in tridiag.f [.html].

The advection velocity u and diffusion coefficient dcoef are set in [.html].

Example [book/chap17/advdiff] 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.

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

rp1.f [.html]
This is the Riemann solver, which takes the $q$ values stored in the arrays ql and qr and returns the waves in the array wave and speeds in the array s that result in solving the Riemann problem at each cell interface, and the fluctuations amdq and apdq. See $CLAW/doc/rp1.html for more information about 1d Riemann solvers.

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

tridiag.f [.html]
This subroutine solves the tridiagonal system for Crank-Nicolson on the diffusion step.

Python files [.html]
This file contains a function that specifies what run-time parameters will be used. [.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. [.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/1d/lib/claw1ez.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 . [.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/1d/lib are used. See the Makefile [.html] to determine which ones are used.