TOUGH2: Free Programs
Below find a list of FORTRAN77 programs for use with TOUGH2. Some of these are modules that offer additional process capabilities or user features, others are utility programs for pre- or post-processing of data. To download programs simply click on the highlighted file names. This will display the program which can then be saved to a file.
EXT - a FORTRAN77 program that reads a regular TOUGH2 output file, and generates a data file compatible with the TECPLOT contouring program. EXT consists of four FORTRAN77 program files: ext.f, rmesh.f, catalog.f and inspect.f. Some operating systems (most PCs) do not provide intrinsic functions "iargc" and "getarg" used by EXT; for these, an additional file cmdarg.f is needed and available. Compile and link them into an executable ext; then convert a standard TOUGH2 output file 'tout' into a data format useable by TECPLOT by typing "ext tout". For time steps for which full outputs are printed in 'tout', this will generate files 'tout.1', 'tout.2', etc. in TECPLOT-compatible format. Click here for further information on using EXT.
Note for using ext under Linux (from Shaoping Shi). To successfully compile ext.f under Linux, we suggest to use the Intel Fortran compiler for Linux. This compiler supports double precision (using option -r8) and comes with the Portability Library. To use the Portability Library, use option "-Vaxlib" when linking the object files, e.g. ifort -r8 -Vaxlib -o ext ext.f rmesh.f catalog.f inspect.f, where "ext" will be the executable.
ELCON - a FORTRAN77 program for writing TOUGH2-compatible CONNEction data between a user-defined grid block and a user-defined sub-region of an existing MESH. This is useful for attaching a grid block to MESH boundaries.
ina_xz.f - a FORTRAN77 program for placing ELEMEnts in a user-specified x-z region in inactive position. This is useful for assigning such elements to specific subdomains, by using a text editor and changing material assignments in the ELEME data. It also offers a convenient way for removing grid blocks from certain spatial regions from the MESH (after the blocks have been placed in inactive position they can easily be removed by using a text editor).
A set of timing functions is available, thanks to Stefan Finsterle, for obtaining and printing CPU time on different hardware platforms. These routines replace the subroutine SECOND in TOUGH2 modules t2cg1.f or t2cg2.f which was designed for IBM RS/6000 machines. To download, click on the appropriate name: Cray, DEC, HP, PC, SGI, Stardent, Sun, Digital Visual Fortran (for PC).
Ron Falta provided a FORTRAN77 utility program GCECONTAM2 for generating a formatted INCON file for T2VOC. It uses the data blocks ROCKS, CHEMP, RPCAP, and ELEME (with element coordinates), along with a short list of input parameters to generate initial conditions for gravity-capillary equilibrium, with or without VOC contamination. Explanations are given in comments in the program, as well as in a PowerPoint file gcecontam2.ppt.
go to TOUGH2 home page