From the GeoClaw Tsunami Tutorial
See CopalisBeach examples for more about the Copalis Beach location and a list of other examples and tutorials based on this location.
This directory $GTT/CopalisBeach/example1
contains some initial GeoClaw setrun and setplot functions to start
exploring tsunami modeling. See CopalisBeach examples for more about the Copalis
Beach location and a list of other examples and tutorials based on this
location.
Tutorial pages for this example¶
These pages discuss the four tsunami simulations that are set up in this directory:
You might want to first look at the sample results and then dig more into the description of how one of the runs is set up and what is generated when you run the code.
Notebooks in the topo directory and are used to create the topo
and dtopo files needed to run this example. You can also fetch the input data
with the script $GTT/CopalisBeach/fetch_input_data.py, as described in
Input files.
Contents of the directory¶
The directory $GTT/CopalisBeach/example1 contains the following files:
setrun1a.py, an first pass to model on coarse grids (up to AMR level 3)setrun1b.py, a modified version to include up to AMR level 5setrun1c.py, a modified version to include up to AMR level 7setrun1d.py, a modified version to include up to AMR level 8setplot.py, to make plots of time frames and a couple gaugesmore_plots.ipynb, a notebook illustrating comparison transect and gauge plots (To appear)Makefile1a, a standard GeoClawMakefilebut usingsetrun1a.pyand redirecting output/plots to_output1a/_plots1a.There are similar
Makefile1b,Makefile1c,Makefile1dfilesfetch_sample_results.ipynba notebook to fetch thesample_resultsdirectory (which includes the 4_plotsdirectories) from an online data repository (so you can view them without running the code).fetch_sample_results.pyPython script version
Sample results¶
See Sample results for example1 for some sample results from the 4 runs set up by the
different setrun.py scripts in this directory, with some discussion of
what is seen.
To obtain the full _plots directory created by each run, you could
run all the simulations following the instructions below.
Alternatively, you can quickly fetch archived versions of the plots that result
from all 4 examples via:
$ python fetch_sample_results.pyor run the notebook fetch_sample_results.ipynb, fetch
Running the code¶
If you want to run the simulations included in this example, you will need to either create or download the topo and dtopo files that are used as input. See Input files for instructions.
Once you have the required input files, the
shell scripts make_example1a.sh and make_all.sh
can be used to run the code and make plots for all these examples.
Run these via e.g.
$ source make_example1a.sh