README.html | clawcode2html |
Source file: README.txt | |
Directory: /Users/rjl/rjlsvn/papers/pathconwb10/code | |
Converted: Mon Jan 18 2010 at 10:38:58 | |
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 Code to accompany this paper:
R.J. LeVeque, A Well-Balanced Path-Integral f-wave Method for Hyperbolic Problems with Source Terms, link to paper Submitted to a Special Issue of the Journal of Scientific Computing for the proceedings of a workshop on Numerical approximations of hyperbolic systems with source terms and applications, Castro-Urdiales, Spain, 2009 NumHyp2009
Advection equation with a source term, $q_t + uq_x= -q\sigma_x(x)$. Test 4 different methods for handling the source term, depending on the parameter mthsrc defined in setrun.py [.html].
See instructions at the bottom of this page for how to run the code and make figures.
Plots of resultsAfter running this code and creating plots via "make .plots", you should be able to view the plots in _plots/_PlotIndex.html .If you want to change parameters and run all 4 methods automatically to compare results, you can use run_tests.py [.html]. After running that code via "python run_tests.py", you should be able to view all the plots at these links:
Fortran files
Python files
Data filesThese files are generated automatically by "make .setdata" from the data in setrun.py [.html].
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.
InstructionsFirst do: $ f2py -c fcns.f -m fcnsto create some Python modules needed for plotting to make sure functions are consistent with what is specified in fcns.f [.html]. Note that this requires f2py. To run one particular test case, modify setrun.py [.html] as desired and then:
$ make .plots To run all four methods on the same example:
$ python run_tests.py To run all examples and create figures used in the paper:
$ python make_figs_for_paper.py $ pdflatex show_figs_for_paper # to view resulting plots This uses make_figs_for_paper.py [.html]. The figures that appear in the paper were produced by make_figs_for_paper.py [.html] using svn revision 345 of Clawpack 4.0 available via:
svn checkout http://kingkong.amath.washington.edu/svn/claw4/trunk@344 claw4 See www.clawpack.org/doc for installation instructions and documentation on running and plotting options.
|