Running Titan2D on Vhub: Example on Colima Volcano
Search
- Version 24
- by (unknown)
- Version 25
- by (unknown)
Deletions or items before changed
Additions or items after changed
1 | == Introduction == | |||
---|---|---|---|---|
2 | ||||
3 | The Titan2D toolkit is used for modeling of geophysical mass flows over natural terrain (volcanic flows, avalanches, landslides etc.). Titan2D uses an adaptive finite volume scheme, and assumes that a large class of granular flows of geophysical origin can be modeled as an incompressible continuum satisfying a Mohr-Coulomb law (see References on the Titan2D [https://vhub.org/tools/titan2d tool page] for detailed mathematical formulation). The solution is parallelized using the message-passing interface (MPI), and simulations for difficult terrains can be relatively time consuming even on large computational clusters. An essential input is the digital elevation model (DEM), since the flow simulation requires elevation, slope, curvature, and material information at every cell to be computed. This tool fronts a Titan2D simulation, but does not prepare the necessary DEM input that Titan2D relies upon, which is a prerequisite. (Note that the preparation of these DEMs could, and probably should, be a tutorial topic of its own.) | |||
4 | ||||
5 | The Titan2D User Guide ([[File(titan_userguide.pdf)]]) contains a detailed description of Titan2D and some information on the preparation of the inputs. This particular tutorial is intended to briefly describe how to run Titan2D in the VHub environment. Within VHub, Titan2D and its Java-based GUI (graphical user interface) are already installed, along with the supporting cast of necessary software packages. At this time (2011-01) the actual execution of the Titan2D code can occur either within the limitations of the VHub server (local execution in the GUI job submission tab), or remotely on a large cluster (the Hub-submit option in the GUI). For local execution the runs must necessarily be limited in their size to a few (less than 4) processing cores, at most 1 GB or so of memory, and at most a few hundred MB of disk. When using the remote cluster there are fewer restrictions, you can utilize tens to hundreds of cores and the associated memory (currently about 1GB per core). Storage is still an issue until the VHub storage pool is increased - you will need to ensure that your calculation will not generate more data than you can easily transfer back to VHub (at most a few hundred MB). You can approximate how much storage you need by the size of your DEM - multiply the size of your DEM by the number of time steps for which you output images of the flow. Decreasing the number of output steps will greatly reduce the storage requirements. | |||
6 | ||||
7 | ||||
8 | == Walk-Through Example == | |||
9 | ||||
10 | The stock example (also available from http://www.gmfg.buffalo.edu) comes as a prepared GIS/DEM for Vulcan de Colima, and can be found in the /apps/titan2d/current/examples directory on VHub, which also contains a file called [[File(example.readme)]] that lists a set of initial mass flow parameters. | |||
11 | The example.readme description refers to the old Python-style GUI for Titan2D, but the mapping to the Java GUI for the mass flow parameters should be direct and intuitive, as they both use the same input fields and styles. Ignore the last few paragraphs on how to run Titan2D, as we are using VHub instead. | |||
12 | === Load/Save Tab === | |||
13 | ||||
14 | Here you specify the path (directory) where you want to store your new run. The directory name must begin with `/home/vhub/username` where ''username'' corresponds to your personal Vhub username (shown at the very top of this web page). In this example the test run is saved in the subdirectory ''test''. Another appropriate name for this subdirectory could be ''titan2d''. The `Run Name` is actually a folder inside the previous subdirectory where all the files with the parameters and results are saved. You need to press the `Save` button in order to create the folder (if it doesn't exist already) and to save the parameters that you have entered. To load a previous run you need to enter in the field next to `Input Directory` the full path, including the name of the run, to the files with parameters and results. Following the example of the figure, the directory would be `/home/vhub/kmarcus/test/TEST1`. | |||
15 | [[BR]] | |||
16 | ||||
17 | [[Image(titan_save_tab.jpg, nolink,50%)]] | |||
18 | ||||
19 | === GIS Tab === | |||
20 | ||||
21 | For this example we'll be using a digital elevation model (DEM) of Volcan de Colima (Mexico). These data are located in the directory of the application. The `Main Directory` is `/apps/titan2d/current/examples/Colima/grass.data/grass5` and the `Sub-Directory` is `Colima`. Both the `GIS Map Set` and `GIS Map` folder names are `ColimaR`. And the `GIS Vector` file name is `Flow1991_lin.spr`. | |||
22 | [[BR]] | |||
23 | [[Image(titan_gis_tab.jpg, nolink,50%)]] | |||
24 | ||||
25 | === General Tab === | |||
26 | ||||
27 | [[Image(titan_general_tab_new.jpg, nolink,50%)]] | |||
28 | ||||
29 | === Material Map Tab === | |||
30 | ||||
31 | [[Image(titan_materialmap_tab.jpg, nolink,75%)]] | |||
32 | ||||
33 | === Piles Tab === | |||
34 | ||||
35 | [[Image(titan_piles_tab_new.jpg, nolink,75%)]] | |||
36 | The orientation angle value must range from -180° (clockwise rotation) to +180° (counter-clockwise rotation) from east = 0° | |||
37 | ||||
38 | === Job Submission Tab === | |||
39 | ||||
40 | Once the GUI tabs have been filled out for the GIS/DEM and mass flow parameters, you reach the Job Submission tab. For execution in the VHub environment you should choose Local execution (the Hub-submit option can be used to run on a remote cluster, useful for larger jobs, but it takes longer to queue up and wait for the jobs to run). The stock example parameters should take less than a minute to run on a single processing core, and once completed successfully you can use your preferred method for accessing the VHub filesystem to browse the results. Note that you can find some | |||
41 | help in using WebDAV [https://vhub.org/topics/ManagingYourVHubStorageUsingWebDAV here]. | |||
42 | ||||
43 | Please only use the 'Local' and 'Hub-Submit' options, the 'PBS' and 'Condor' options will not work in the VHub environment. | |||
44 | [[BR]] | |||
45 | ||||
46 | [[Image(titan_jobsubmission_tab_new.jpg, nolink,50%)]] | |||
47 | ||||
48 | === Job Monitor Tab === | |||
49 | ||||
50 | - | From the 'Job Monitor' tab, click on a job and then click on the 'Job Details' button. A new window will appear that will show the output from the job |
+ | From the 'Job Monitor' tab, click on a job and then click on the 'Job Details' button. A new window will appear that will show the output from the job.
|
51 | [[BR]] | |||
52 | ||||
53 | [[Image(titan_jobmonitor_tab.jpg, nolink,50%)]] | |||
54 | ||||
55 | === Job Details Window === | |||
56 | + | |||
57 | + | The following two images were created in a previous version of the tool TITAN2D, but this capability is obsolete. For creating a preliminary plot with the results you can use the [https://vhub.org/tools/titanview Titan2d Viewer] tool.
|
||
58 | + | [[BR]]
|
||
59 | ||||
60 | [[Image(titan_3dimage_new.jpg, nolink,50%)]] | |||
61 | ||||
62 | [[Image(titan_contourimage_new.jpg, nolink,50%)]] | |||
63 | ||||
64 | ||||
65 | == !WebDav Access == | |||
66 | ||||
67 | You can use webdav to access the output files on VHub (Mac OS X example, see | |||
68 | [https://vhub.org/topics/ManagingYourVHubStorageUsingWebDAV this page] for help using webdav on other platforms). | |||
69 | ||||
70 | [[Image(titan_connecttoserver_webdav.jpg, nolink,50%)]] | |||
71 | ||||
72 | [[Image(titan_finder_webdav.jpg, nolink,50%)]] |