Wednesday, December 10, 2014

How to install TITAN2D fedora 20

TITAN2D is a free software application developed by the Geophysical Mass Flow Group at the State University of New York (SUNY) at Buffalo. TITAN2D was developed for the purpose of simulating granular flows (primarily geological mass flows such as debris avalanches and landslides) over digital elevation models (DEM)s of natural terrain. The code is designed to help scientists and civil protection authorities assess the risk of, and mitigate, hazards due to dry debris flows and avalanches. TITAN2D combines numerical simulations of a flow with digital elevation data of natural terrain supported through a Geographical Information System (GIS) interface such as GRASS.

TITAN2D is capable of multiprocessor runs. A Message Passing Interface (MPI) Application Programming Interface (API) allows for parallel computing on multiple processors, which effectively increases computational power, decreases computing time, and allows for the use of large data sets.

Adaptive gridding allows for the concentration of computing power on regions of special interest. Mesh refinement captures the complex flow features that occur at the leading edge of a flow, as well as locations where rapid changes in topography induce large mass and momentum fluxes. Mesh unrefinement is applied where solution values are relatively constant or small to further improve computational efficiency.

TITAN2D requires an initial volume and shape estimate for the starting material, a basal friction angle, and an internal friction angle for the simulated granular flow. The direct outputs of the program are dynamic representations of a flow's depth and momentum. Secondary or derived outputs include flow velocity, and such field-observable quantities as run-up height, deposit thickness, and inundation area.



HOW TO INSTALL
---------------------------------------------------------------------------
fedora 20 install titan-2d
---------------------------------------------------------------------------

1 Preliminary Note
install fresh fedora 20


2 Installing

yum groupinstall 'Development Tools'

yum install tkinter gcc gcc-c++ zlib-devel gfortran compat-gcc-34-g77 ImageMagick gdal

cd /tmp

http://rpm.pbone.net/index.php3/stat/4/idpl/25105069/dir/fedora_20/com/GMT-devel-4.5.11-1.fc20.i686.rpm.html

yum install GMT-4.5.11-1.fc20.i686.rpm


3 Installing Grass53

yum install grass

yum install mpich2


cd /

vi .bashrc

export PATH=/usr/lib/mpich2/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/mpich2/bin:${LD_LIBRARY_PATH}




DOWNGRADE grass 5.3.0
--------------------------------------------------------------------

cd /tmp/
wget http://grass.osgeo.org/grass53/source/grass-5.3.0.tar.gz


cp /tmp/grass-5.3.0.tar.gz /usr/bin/
cd /usr/bin/
tar zxvf grass-5.3.0.tar.gz

cp /tmp/grass-5.3.0.tar.gz /usr/local/
cd /usr/local/
tar zxvf grass-5.3.0.tar.gz


cd /tmp/
wget ftp://rpmfind.net/linux/fedora/linux/releases/19/Everything/i386/os/Packages/m/mpich2-devel-1.5-3.fc19.i686.rpm

yum install mpich2-devel-1.5-3.fc19.i686.rpm



wget http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.3.tar.gz


tar xzvf openmpi-1.6.3.tar.gz

cd openmpi-1.6.3
./configure --prefix=/usr/local
make
make install


wget http://softlayer-sng.dl.sourceforge.net/project/titan2d/titan2d/titan-2.0.0/titan-2.0.0.tar.gz

tar xzvf titan-2.0.0.tar.gz
cd titan-2.0.0
./configure --with-grass=/usr/lib/grass-6.4.3 --without-hdf5 --with-mpi=/usr/lib/mpich2 


make     


make install