MODFLOW
MODFLOW is the U.S. Geological Survey modular finite-difference flow model, which is a computer code that solves the groundwater flow equation. The program is used by hydrogeologists to simulate the flow of groundwater through aquifers. The source code is free public domain software, written primarily in Fortran, and can compile and run on Microsoft Windows or Unix-like operating systems.
Since its original development in the early 1980s, the USGS has made four major releases, and is now considered to be the de facto standard code for aquifer simulation. There are several actively developed commercial and non-commercial graphical user interfaces for MODFLOW.
MODFLOW was constructed in what was in 1980's called a modular design. This means it has many of the attributes of what came to be called object-oriented programming. For example, capabilities that simulate subsidence or lakes or streams, can easily be turned on and off and the execution time and storage requirements of those packages go away entirely. If a programmer wants to change something in MODFLOW, the clean organization makes it easy. Indeed, this kind of innovation is exactly what was anticipated when MODFLOW was designed.
Importantly, the modularity of MODFLOW makes it possible for different Packages to be written that are intended to address the same simulation goal in different ways. This allows differences of opinion about how system processes function to be tested. Such testing is an important part of multi-modeling, or alternative hypothesis testing. Models like MODFLOW and , a program from NCAR that simulates surface processes like rainfall-runoff and gully erosion, make this kind of testing more definitive and controlled. This results because other aspects of the program remain the same. Tests become more definitive because they become less prone to being influenced unknowingly by other numerical and programming differences.
Groundwater flow equation
The governing partial differential equation for a confined aquifer used in MODFLOW is:where
- , and are the values of hydraulic conductivity along the x, y, and z coordinate axes
- is the potentiometric head
- is a volumetric flux per unit volume representing sources and/or sinks of water, where negative values are extractions, and positive values are injections
- is the specific storage of the porous material ; and
- is time
Finite difference
where
This equation is formulated into a system of equations to be solved as:
where
or in matrix form as:
where
Limitations
- The water must have a constant density, dynamic viscosity throughout the modelling domain
- The principal components of anisotropy of the hydraulic conductivity used in MODFLOW is displayed on the right. This tensor does not allow non-orthogonal anisotropies, as could be expected from flow in fractures. Horizontal anisotropy for an entire layer can be represented by the coefficient "TRPY".
Versions
"Modular Model"
The USGS throughout the 1970s had developed several hundred models, written in different dialects of FORTRAN. At the time, it was common practice to rewrite a new model to fit the need of a new groundwater scenario. The concept for MODFLOW was originally designed in 1981 to provide a common modular groundwater model, which could be compiled on multiple platforms without major modification, and can read and write common formats. Different aspects of the groundwater system would be handled using the modules, similar to the idea of a "component stereo system". The original name of the code was "The USGS Modular Three-Dimensional Finite-Difference Ground-Water Flow Model", or informally as "The Modular Model." The name MODFLOW was coined several years after the initial code development, which started in 1981.The first version of MODFLOW was published on December 28, 1983, and was coded entirely in FORTRAN 66. The source code for this version is listed in USGS Open File Report 83-875 referred to above.
MODFLOW-88
This version of MODFLOW was rewritten in FORTRAN 77, and was originally released on July 24, 1987. The current version of is 2.6, released on September 20, 1996.MODPATH, was initially developed in 1989 to post-process the steady-state MODFLOW-88 data to determine three-dimensional pathlines of particles. This innovation has been indispensable for the fields of contaminant hydrogeology. It is still used as a post-processor in recent versions of MODFLOW.
A separate program, MODFLOWP, was developed in 1992 to estimate various parameters used in MODFLOW. This program was eventually built into MODFLOW-2000.
MODFLOW-96
MODFLOW-96 was originally released on December 3, 1996, and is a cleaned-up and revised continuation of MODFLOW-88. There are three final releases of MODFLOW-96:- , with HYDMOD package
- , MODFLOW-96 with parameter-estimation
MODFLOW-2000
MODFLOW-2000 was released on July 20, 2000, which merged MODFLOWP and HYDMOD codes into the main program and has integrated observation, sensitivity analysis, parameter estimation, and uncertainty evaluation capabilities. Many new packages and enhancements were also included, including new solvers, stream and saturated flow packages. The internal design concepts also changed from previous versions, such that packages, processes and modules are distinct. This version was coded in a mixture of FORTRAN 77, Fortran 90, and one solver was programmed in C. MODFLOW-2000 can also be compiled for parallel computing, which can allow multiple processors to be used to increase model complexity and/or reduce simulation time. The parallelization capability is designed to support the sensitivity analysis, parameter estimation, and uncertainty analysis capabilities of MODFLOW-2000.The final version of is version 1.19.01, released on March 25, 2010. There are four related or branched codes based on MODFLOW-2000:
- , with groundwater management capability using optimization
- , with Farm Process
- , groundwater flow and solute-transport model
- , variable-density flow and transport processes
- , variably saturated flow
MODFLOW-2005
The current version of is version 1.12.00, released on February 3, 2017. Related or branched codes include:
- , conduit flow process to simulate turbulent or laminar groundwater flow conditions
- , local grid refinement
- , groundwater management capability using optimization
- , estimate dynamically integrated supply-and-demand components of irrigated agriculture as part of the simulation of surface-water and ground-water flow
- , Newton formulation for solving problems involving drying and rewetting nonlinearities of the unconfined groundwater-flow equation.
MODFLOW-OWHM
Being based on the MODFLOW-2005 source code, MODFLOW-OWHM is the second core release of MODFLOW-2005. MODFLOW-OWHM provides the ability to simulated demand-driven, supply-limited hydrologic systems, as commonly occur in arid agricultural areas in which the demand for water exceeds supply. When the added capabilities are not used, MODFLOW-OWHM performs exactly like MODFLOW-2005, or MODFLOW-NWT, or MODFLOW-LGR.
There is an that explains the input for the packages that MODFLOW-OWHM supports and formal documentation is at the .
MODFLOW-USG
All version of MODFLOW listed above are constructed on what is called a structured grid. That is, the grid is composed of rectilinear blocks. The only exception is the LGR capability, which allows locally refined grids to be inserted into the structure of a "parent" grid. The local area is again composed of rectilinear blocks, but the blocks are smaller. Experimentation with a much more flexible grid structure resulted in the release of , designed to be adapted to a wide range of grid variations using unstructured grids. MODFLOW-USG was replaced with MODFLOW 6, which provided grid capabilities with and intermediate level of flexibility.MODFLOW 6
MODFLOW 6, released in 2017, is the sixth core version of MODFLOW to be released by the USGS. This release is a rewrite of MODFLOW-USG following an object oriented programming paradigm in Fortran, and provides a platform that includes the capabilities from several previous MODFLOW-2005 versions, including MODFLOW-NWT, MODFLOW-USG, and MODFLOW-LGR. There are still features lacking in the current release that are supported in MODFLOW-2005, such as subsidence, and stream flow routing only supports rectangular wetted perimeters. The current version is 6.1.0, released December 12, 2019.Packages
The names in this table are the labels used to turn MODFLOW capabilities on and off via a key input file. Most capabilities have many alternatives or can be omitted, but the ones related to the BASIC Package are always required. Many of the capabilities introduced are supported in later versions, though the grid change enabled with MODFLOW-USG and MODFLOW 6 meant that such backward compatibility was rather selective.Graphical user interfaces
There are several graphical interfaces to MODFLOW, which often include the compiled MODFLOW code with modifications. These programs aid the input of data for creating MODFLOW models.Non-commercial interfaces
Non-commercial MODFLOW versions are free, however, their licensing usually limit the use to non-profit educational or research purposes.- is a grid-independent graphical user interface from the USGS for MODFLOW-2005, MODPATH, and PHAST. There are no license restrictions. The source code is included.
- – Made by the USGS: it is updated often to match the current USGS MODFLOW development. It supports MODFLOW-96, MODFLOW-2000, MODFLOW-2005, MODPATH, ZONEBUDGET, GWT, MT3DMS, SEAWAT, and GWM. Source code for MODFLOW-GUI is included. It depends on : a commercial interface for constructing generic models. There are no license restrictions beyond those of Argus ONE.
- – "Processing MODFLOW" – powerful freeware for MODFLOW processing and visualization, provided alongside an instructional book; also available in Traditional Chinese. The license for this version is limited to non-commercial use.
- - mflab is a MATLAB interface to MODFLOW. The user builds and analyzes models by writing a set of MATLAB scripts. This results in flexible and efficient workflows, allowing a great deal of automation.
- - Free and open source interface developed by . iMOD contains an accelerated version of MODFLOW with fast, flexible and consistent sub-domain modeling techniques. Facilitating large, high resolution MODFLOW modeling and geo-editing of the subsurface
- is a free and open source, QGIS-integrated modelling platform integrating MODFLOW and the following MODFLOW-related simulation codes: , , , , , . FREEWAT has been developed in the framework of the H2020 FREEWAT project, financed by the EU Commission under the call WATER INNOVATION: BOOSTING ITS VALUE FOR EUROPE. The source code is released under a , along with a complete set of User Manuals and tutorials.
Commercial programs
All current versions of these programs run only on Microsoft Windows, however previous versions of GMS were compiled for several Unix platforms.
Former graphical interfaces
- Graphic Groundwater – Windows-based interface
- ModelCad – A Windows-based interface, developed by Geraghty and Miller, Inc.
- – A DOS-based interface by S.S. Papadopulos & Associates, Inc.