geoscience-community-codes / tephra2

Tephra2 is a tephra dispersion simulation tool, used to estimate the mass of tephra that will accumulate at a site or over a region, given explosive eruption conditions.
https://gscommunitycodes.usf.edu/geoscicommunitycodes/public/tephra2/tephra2.php
GNU General Public License v3.0
14 stars 11 forks source link
inversion-model tephra tephra-dispersion-simulation volcanology

OVERVIEW

tephra2 (VERSION 2.0) is a tephra dispersion simulation tool, written in C, used to estimate the mass of tephra that will accumulate at a site or over a region, given explosive eruption conditions. The tephra2 model simplifies eruption conditions. The code calculates an expected tephra accumulation for a given total eruption mass, eruption column height, and particle size distribution. Wind velocity varies as a function of height but remains constant within a given stratum. Wind velocities are sampled from the NOAA REANALYSIS database at the location of the volcano. Tephra2 outputs the mass per unit area (kg per meter squared) and the weight percent of individual grain sizes at specified locations. The output is presented as a text table of data that can be used to create an isomass map, to visualize expected accumulation over a region.

Two executables can be compiled, tephra2_2020 (the forward model) and tephra2-inversion_2020 (the inversion model). The inversion model requires MPI (Message Passing Interface) libraries and should be run on a compute cluster with multiple compute nodes.

COMPILING

tephra2 is written in C, a compiled language, and must be compiled before it can be executed. See README for some quickstart instructions. Specifically, to compile the linux executables, in the top level directory, on the command line type:

make

This will compile both the forward model and the inversion model. If you do not have openmpi installed the inversion model will fail to compile, but the forward model will still be compiled. This is OK if you only want the forward model.

INSTALL THESE DEPENDENCIES BEFORE COMPILING

WIND DATA

How to download NOAA REANALYSIS data to create wind files for tephra2

USAGE

Both the forward model and the inversion model require a configuration file. The configuration file is arranged as a list of keywords followed by their corresponding value(s). The program user can change any of the values; the keywords must not be changed.

To run the forward model, at the command line, type:

tephra2_2020 tephra2.conf grid_file wind_file > tephra2.out

where,

ADDITIONAL DEPENDENCIES

=========================================================================

versions --

01-27-2018 Formally versioning this version of tephra2 as Version 2.0, to distinguish it from other, earlier versions.

03-12-2014 Initial upload of the tephra2 probability scripts (perl scripts) which use the tephra2 model of ash dispersion to create survivor curves for specific locations around a volcano.

07-09-2013 Initial upload to GitHub. tephra2 is a tephra dispersion model based on an analytical (closed-form) solution of the advection-diffusion equation. This initial version uses a plume model based on the beta function and incorporates a 2-D wind model that varies in speed and direction with changes in elevation.