README May 2007 MF2K_GWT MODFLOW-2000 with GWT Package - Version: 1.9.6 May 2007 Three-dimensional finite-difference ground-water flow model with Ground-Water Transport (GWT) Process The GWT process was called mf2k_gwt in the MODFLOW-96 release and has been renamed GWT for its inclusion in the latest release of MODFLOW. See the file doc/gwt.txt for descriptions, references, and additional contacts for this software. Instructions for installation, execution, and testing are provided below. TABLE OF CONTENTS A. DISTRIBUTION FILES B. EXTRACTING FILES C. COMPILING D. INSTALLING E. RUNNING THE SOFTWARE F. TESTING A. DISTRIBUTION FILES The following distribution packages (containing the source, test data sets, and information files) are currently available for UNIX systems: mf2k_gwt.src.tar.gz - source code for UNIX systems The distribution file contains: Source code for MODFLOW-2000 with GWT. GWT user guides in pdf files. Test data sets. B. EXTRACTING FILES The directory mf2k_gwt is created (or overwritten) when the files are extracted from the tar file. If the mf2k_gwt directory already exists, you may want to delete or rename it before extracting the files. The following are the steps to extract the files from a distribution tar file. 1. If the tar file is not already in the directory under which you want the distribution installed, move it there. For example: mv mf2k_gwt.src.tar.gz /usr/opt/wrdapp 2. If you are not in the directory where the tar file is located, go there. For example: cd /usr/opt/wrdapp 3. Uncompress the distribution file. For example: gunzip mf2k_gwt.src.tar.gz 4. Extract the distribution files from the tar file. For example: tar -xvpof mf2k_gwt.src.tar This creates the following directory structure (the contents of each directory are shown to the right): mf2k_gwt ; copy of this README file `-----bin ; compiled executable `-----doc ; documentation files `-----src ; source code `-----test ; scripts to run verification tests `-----data ; standard data sets used in verification tests Notes: It is recommended that no user files be kept in the mf2k_gwt directory structure. If you do plan to put files in the mf2k_gwt directory structure, do so only by creating subdirectories in mf2k_gwt. C. COMPILING Although executable versions of the programs are provided, the Fortran source code is also provided in the mf2k_gwt\src directory so that the programs can be recompiled if necessary. However, no support can be provided for users generating their own versions of the software. In general, the requirements are a Fortran compiler and the knowledge of using the compiler. D. INSTALLING The test scripts require an executable name mf2k_gwt in the ../bin directory. To make the executable (mf2k_gwt) easy to use, it should be installed in a directory included in the user's search path. E. RUNNING THE SOFTWARE The data arrays in MODFLOW-2000 with GWT are dynamically allocated, so models are not limited by hard-coded array limits. However, it is best to have enough random-access memory (RAM) available to hold all of the required data. If there is less available RAM than this, the program will use virtual memory, but this slows computations significantly. After mf2k_gwt is properly installed in a directory that is included in your PATH, the program is initiated using the command: mf2k_gwt. mf2k_gwt uses two Name Files to indicate which files are to be used in the simulation. mf2k_gwt prompts the user to enter the name of the MODFLOW Name File, and then it automatically opens all the files specified in that Name File and the mf2k_gwt Name File whose name is specified in the MODFLOW Name File. The Name File is read on unit 99. Units 98 and 97 are used to facilitate batch mode execution. If the file modflow.bf exists in the current directory then mf2k_gwt reads the name of the MODFLOW Name File from it and records messages produced by mf2k_gwt in the file modflow.rpt. Thus, units 97-99 should not be used for any other model files. F. TESTING Test data sets are provided to verify that the program is correctly installed and running on the system. The tests may also be looked at as examples of how to use the program. Tests are run in the mf2k_gwt/test directory. The directory mf2k_gwt/data contains the input data and expected results for each test. To test the installation, change to the mf2k_gwt/test directory and type the command: ./test.sh [m [n]] where: m = the number of the first test to perform, default=1 n = the number of the last test to perform, default=5 For example: command what happens ------------------ ------------------------------------ ./test.sh runs all of the tests ./test.sh n runs test 'n' through the last test ./test.sh n m runs test 'n' through 'm' After the tests are completed, the results are compared to the expected results. If all goes well, there should be no differences. To clean up after the tests, type the command: ./clean.sh The tests are described in the table below. Test is the test number and the usage column indicates how a file is used, with i for input and o for output. # test name description of test ------------ ------------------------------------------------------- 1 finite One-Dimensional Steady Flow problem in WRIR 96-4267 2 point3 Three-Dimensional Steady Flow in WRIR 96-4267 3 radial Two-Dimensional Radial Flow and Dispersion in WRIR 96-4267 4 dirac Point Initial Condition in Uniform Flow in WRIR 96-4267 5 testcase Test Simulation 4 in WRIR 00-4167. 6 slurryc3 Slurry wall test problem using coarse grid in OFR 02-52 7 teststrm Test Simulation 2 in OFR 04-1042 Konikow, L.F., Goode, D.J., and Hornberger, G.Z., 1996, A three- dimensional method-of-characteristics solute-transport model (MOC3D): U.S. Geological Survey Water-Resources Investigations Report 96-4267, 87 p. Merritt, M.L. and Konikow, L.F., 2000, Documentation of a computer program to simulate lake-aquifer interaction using the MODFLOW ground-water flow model and the MOC3D solute-transport model: U.S. Geological Survey Water-Resources Investigations Report 00-4167, 146 p. Hornberger,G.Z., Konikow, L.F., and Harte, P.T., 2002, Simulating horizontal-flow barriers using the MODFLOW Ground-Water Transport Process: U.S. Geological Survey Open-File Report 02-52, 28 p. Prudic, D.E., Konikow, L.F., and Banta, E.R., 2004, A new Streamflow- Routing (SFR1) Package to simulate stream-aquifer interaction with MODFLOW-2000: U.S. Geological Survey Open-File Report 2004-1042, 95 p.