README.html | |
Source file: README.txt | |
Directory: /home/rjl/git/rjleveque/clawpack-4.x/apps/tsunami/bowl-slosh | |
Converted: Tue Jul 26 2011 at 12:58:49 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}}$
|
GeoClaw Sample CodeWaves in a parabolic bowl with a flat surface sloshing around. An exact analytic solution is known in which the surface stays flat. In this code, $x$ and $y$ are in meters (iccordsys=1 in setrun.py [.html]). Topography: $B(x,y) = h_0((x^2 + y^2)/a^2 -1)$, Depth: $h(x,y,t) = \max\left(0,~~ (\sigma h_0/a^2)(2x\cos(\omega t) + 2y\sin(\omega t) - \sigma) - B(x,y)\right)$ Velocities: $u(x,y,t) = -\sigma \omega \sin(\omega t),\qquad v(x,y,t) = \sigma \omega \cos(\omega t).$ where $\omega = \sqrt{2gh_0} / a$. The period of oscillation is $T = 2\pi / \omega$. The following parameters are currently hardwired several places: $a = 1, ~~\sigma = 0.5, ~~h = 0.1,~~g = 9.81$ This should be cleaned up: better to put them in a setprob.data file that is read in where needed.
References
This test problem has been used in several other papers too. To run the code, see Instructions
Plots of resultsAfter running this code and creating plots via "make .plots", you should be able to view the plots in _plots/_PlotIndex.html .
Fortran files
Python files
Data filesThe .data files are automatically generated using the information in setrun.py [.html].
|