HOME

TheInfoList



OR:

MODFLOW is the
U.S. Geological Survey The United States Geological Survey (USGS), founded as the Geological Survey, is an agency of the U.S. Department of the Interior whose work spans the disciplines of biology, geography, geology, and hydrology. The agency was founded on March ...
modular finite-difference flow model, which is a computer
code In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communicati ...
that solves the
groundwater flow equation Used in hydrogeology, the groundwater flow equation is the mathematical relationship which is used to describe the flow of groundwater through an aquifer. The transient flow of groundwater is described by a form of the diffusion equation, similar ...
. The program is used by hydrogeologists to simulate the flow of
groundwater Groundwater is the water present beneath Earth's surface in rock and Pore space in soil, soil pore spaces and in the fractures of stratum, rock formations. About 30 percent of all readily available fresh water in the world is groundwater. A unit ...
through
aquifer An aquifer is an underground layer of water-bearing material, consisting of permeability (Earth sciences), permeable or fractured rock, or of unconsolidated materials (gravel, sand, or silt). Aquifers vary greatly in their characteristics. The s ...
s. The
source code In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer. Since a computer, at base, only ...
is free
public domain software Public-domain software is software that has been placed in the public domain, in other words, software for which there is absolutely no ownership such as copyright, trademark, or patent. Software in the public domain can be modified, distributed, ...
, written primarily in Fortran, and can compile and run on
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
or
Unix-like A Unix-like (sometimes referred to as UN*X, *nix or *NIX) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Uni ...
operating systems. Since its original development in the early 1980s, the USGS has made six 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 interface A graphical user interface, or GUI, is a form of user interface that allows user (computing), users to human–computer interaction, interact with electronic devices through Graphics, graphical icon (computing), icons and visual indicators such ...
s 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 (called "packages") 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 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 In mathematics, a partial differential equation (PDE) is an equation which involves a multivariable function and one or more of its partial derivatives. The function is often thought of as an "unknown" that solves the equation, similar to ho ...
for a confined aquifer used in MODFLOW is: :\frac \left K_ \frac \right+ \frac \left K_ \frac \right+ \frac \left K_ \frac \right+ W = S_ \frac where *K_, K_ and K_ are the values of
hydraulic conductivity In science and engineering, hydraulic conductivity (, in SI units of meters per second), is a property of porous materials, soils and Rock (geology), rocks, that describes the ease with which a fluid (usually water) can move through the porosity, ...
along the ''x'', ''y'', and ''z'' coordinate axes (L/T) *h is the potentiometric
head A head is the part of an organism which usually includes the ears, brain, forehead, cheeks, chin, eyes, nose, and mouth, each of which aid in various sensory functions such as sight, hearing, smell, and taste. Some very simple ani ...
(L) *W is a volumetric flux per unit volume representing sources and/or sinks of water, where ''negative'' values are extractions, and ''positive'' values are injections (T−1) *S_ is the
specific storage In the field of hydrogeology, ''storage properties'' are physical properties that characterize the capacity of an aquifer to release groundwater. These properties are storativity (S), specific storage (Ss) and specific yield (Sy). According to ' ...
of the porous material (L−1); and *t\, is time (T)


Finite difference

The
finite difference A finite difference is a mathematical expression of the form . Finite differences (or the associated difference quotients) are often used as approximations of derivatives, such as in numerical differentiation. The difference operator, commonly d ...
form of the partial differential in a discretized aquifer domain (represented using rows, columns and layers) is: :\begin & \mathit_\left(h^m_-h^m_\right) + \mathit_\left(h^m_-h^m_\right) + \\ & \mathit_\left(h^m_-h^m_\right) + \mathit_\left(h^m_-h^m_\right) + \\ & \mathit_\left(h^m_-h^m_\right) + \mathit_\left(h^m_-h^m_\right) + \\ & P_\,h^m_ + Q_ = \mathit_\left(\Delta r_j \Delta c_i \Delta v_k\right) \frac \end where :h^m_\, is the
hydraulic head Hydraulic head or piezometric head is a measurement related to liquid pressure (normalized by specific weight) and the liquid elevation above a vertical datum., 410 pages. See pp. 43–44., 650 pages. See p. 22, eq.3.2a. It is usually meas ...
at cell ''i'',''j'',''k'' at time step ''m'' :''CV'', ''CR'' and ''CC'' are the hydraulic conductances, or branch conductances between node ''i'',''j'',''k'' and a neighboring node :P_\, is the sum of coefficients of head from source and sink terms :Q_\, is the sum of constants from source and sink terms, where Q_<0.0\, is flow out of the groundwater system (such as pumping) and Q_>0.0\, is flow in (such as injection) :\mathit_\, is the
specific storage In the field of hydrogeology, ''storage properties'' are physical properties that characterize the capacity of an aquifer to release groundwater. These properties are storativity (S), specific storage (Ss) and specific yield (Sy). According to ' ...
:\Delta r_j\Delta c_i\Delta v_k\, are the dimensions of cell ''i'',''j'',''k'', which, when multiplied, represent the volume of the cell; and :t^m\, is the time at time step ''m'' This equation is formulated into a system of equations to be solved as: :\begin &\mathit_ h^m_ + \mathit_ h^m_ + \mathit_ h^m_ \\ &+ \left( - \mathit_ - \mathit_ - \mathit_ - \mathit_ - \mathit_ - \mathit_ + \mathit_\right) h^m_ \\ &+ \mathit_ h^m_ + \mathit_ h^m_ + \mathit_ h^m_ = \mathit_ \end where :\begin \mathit_ &= P_ - \frac \\ \mathit_ &= -Q_ - \mathit_\Delta r_j \Delta c_i \Delta v_k \frac \end or in matrix form as: :A\mathbf=\mathbf where :''A'' is a matrix of the coefficients of head for all active nodes in the grid :\mathbf is a vector of head values at the end of time step m for all nodes in the grid; and :\mathbf is a vector of the constant terms, ''RHS'', for all nodes of the grid.


Limitations

* The water must have a constant
density Density (volumetric mass density or specific mass) is the ratio of a substance's mass to its volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' (or ''d'') can also be u ...
,
dynamic viscosity Viscosity is a measure of a fluid's rate-dependent resistance to a change in shape or to movement of its neighboring portions relative to one another. For liquids, it corresponds to the informal concept of ''thickness''; for example, syrup h ...
(and consequently
temperature Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measurement, measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making ...
) throughout the modelling domain
SEAWAT
is a modified version of MODFLOW which is designed for density-dependent groundwater flow and transport) * The principal components of
anisotropy Anisotropy () is the structural property of non-uniformity in different directions, as opposed to isotropy. An anisotropic object or pattern has properties that differ according to direction of measurement. For example, many materials exhibit ve ...
of the
hydraulic conductivity In science and engineering, hydraulic conductivity (, in SI units of meters per second), is a property of porous materials, soils and Rock (geology), rocks, that describes the ease with which a fluid (usually water) can move through the porosity, ...
used in MODFLOW is displayed on the right. This
tensor In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
does not allow non-
orthogonal In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
anisotropies, as could be expected from flow in
fractures Fracture is the appearance of a crack or complete separation of an object or material into two or more pieces under the action of stress (mechanics), stress. The fracture of a solid usually occurs due to the development of certain displacemen ...
. Horizontal anisotropy for an entire layer can be represented by the coefficient "TRPY" (Data Item 3 Page 153).


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 (or any) 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 o
MODFLOW-88
is 2.6, released on September 20, 1996. ''MODPATH'', was initially developed in 1989 to post-process the
steady-state In systems theory, a system or a process is in a steady state if the variables (called state variables) which define the behavior of the system or the process are unchanging in time. In continuous time, this means that for those properties ''p'' ...
MODFLOW-88 data to determine three-dimensional pathlines of particles. This innovation has been indispensable for the fields of
contaminant Contamination is the presence of a constituent, impurity, or some other undesirable element that renders something unsuitable, unfit or harmful for the physical body, natural environment, wiktionary:Workplace, workplace, etc. Types of contamina ...
hydrogeology Hydrogeology (''hydro-'' meaning water, and ''-geology'' meaning the study of the Earth) is the area of geology that deals with the distribution and movement of groundwater in the soil and rock (geology), rocks of the Earth's crust (ge ...
. 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 (version 3.0) 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:
MODFLOW-96
(version 3.3, May 2, 2000)

(version 3.3h, July 10, 2000), with HYDMOD package

(version 3.2, Oct 9, 1997), MODFLOW-96 with parameter-estimation Several graphical interfaces were first developed using the MODFLOW-96 code.


MODFLOW-2000

MODFLOW-2000 (version 1.0; version numbering was reset) 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 Parallel computing is a type of computing, computation in which many calculations or Process (computing), processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. ...
, 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 o
MODFLOW-2000
(or ''MF2K'') is version 1.19.01, released on March 25, 2010. There are four related or branched codes based on MODFLOW-2000:
MF2K-GWM or GWM-2000
(version 1.1.4, May 31, 2011, branched from mf2k 1.17.2), with groundwater management capability using optimization

(version 1.00, May 19, 2006, based on mf2k 1.15.03), with Farm Process

(version 1.9.8, October 28, 2008, based on MF2K 1.17.02), groundwater flow and solute-transport model
SEAWAT
(version 4.00.05, October 19, 2012), variable-density flow and transport processes

(version 1.01, July 5, 2006), variably saturated flow


MODFLOW-2005

MODFLOW-2005 differs from MODFLOW-2000 in that the sensitivity analysis, parameter estimation, and uncertainty evaluation capabilities are removed. Thus, the support for these capabilities now falls to "clip on" codes that are supported externally to the MODFLOW support effort. In addition, the code was reorganized to support multiple models within one MODFLOW run, as needed for th
LGR
(Local Grid Refinement) capability. MODFLOW-2005 is written primarily in Fortran 90 and C, with C being used for one solver. The current version o

is version 1.12.00, released on February 3, 2017. Related or branched codes include:

(version 1.8.00, February 23, 2011), conduit flow process to simulate turbulent or laminar groundwater flow conditions
MODFLOW-LGR
(version 2.0, September 19, 2013), local grid refinement

(version 1.4.2, March 25, 2013), groundwater management capability using optimization

(version 1.0.00, October 28, 2009), estimate dynamically integrated supply-and-demand components of irrigated agriculture as part of the simulation of surface-water and ground-water flow
MODFLOW-NWT
version 1.1.3, August 1, 2017), Newton formulation for solving problems involving drying and rewetting nonlinearities of the unconfined groundwater-flow equation.
MODFLOW-OWHMv1
ref name=":2">
(version 1.00.12, October 1, 2016), The One-Water Hydrologic Flow Model (MF-OWHM1), developed cooperatively between the USGS and the U.S. Bureau of Reclamation, is a fusion of multiple versions of MODFLOW-2005 (NWT, LGR, FMP, SWR, SWI) into ONE version, contains upgrades and new features and allows the simulation of head-dependent flows, flow-dependent flows, and deformation dependent flows that collectively affect conjunctive use of water resources.
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 o
MODFLOW-USG
(version 1.3.00, December 1, 2015), designed to be adapted to a wide range of grid variations using unstructured grids. MODFLOW-USG has similar capabilities as MODFLOW 6, which provides grid capabilities with and intermediate level of flexibility.
MODFLOW-USG Transport
An update of MODFLOW USG including multiple solute species transport, density dependent flow and transport, use of the Richard's equation for flow and transport in the
unsaturated zone The vadose zone (from the Latin word for "shallow"), also termed the unsaturated zone, is the part of Earth between the land surface and the top of the phreatic zone, the position at which the groundwater (the water in the soil's pores) is at ...
and air-water interface
sorption Sorption is a physical and chemical process by which one substance becomes attached to another. Specific cases of sorption are treated in the following articles: ; Absorption: "the incorporation of a substance in one state into another of a d ...
. Some of the updates to the model have also been made to accommodate for transport of
PFAS Per- and polyfluoroalkyl substances (also PFAS, PFASs, and informally referred to as "forever chemicals") are a group of synthetic organofluorine chemical compounds that have multiple fluorine atoms attached to an alkyl chain; there are 7 millio ...
.


MODFLOW 6

MODFLOW 6 (MF6), first released in 2017, is the sixth core version of MODFLOW to be released by the USGS. This release is a rewrite of MODFLOW 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. MODFLOW 6 supports structured or unstructured grids, has full support for the Newton-Raphson formulation, and has a unique Water Mover Package that allows flows to be routed between the advanced packages, including the Streamflow Routing, Lake, Multi-Aquifer Well, and Unsaturated Zone Flow Packages. MODFLOW 6 also contains a Groundwater Transport (GWT) model that simulates transient three-dimensional solute transport on structured or unstructured grids and through the advanced flow and mover packages. An Application Programming Interface (API) is also available for MODFLOW 6, which allows the program to be coupled with other models or controlled with popular scripting languages, such as Python. While there are a few features lacking in the current release that are supported in MODFLOW-2005, most of the popular capabilities in previous MODFLOW versions are available in MODFLOW 6. The current version is 6.2.2, released July 30, 2021.


MODFLOW-OWHM Version 2

The MODFLOW One-Water Hydrologic Flow Model version 2
MF-OWHM
is a major rewrite of MF-OWHM1 released in 2020. MF-OWHM is a MODFLOW-2005 based integrated hydrologic model designed for the analysis of conjunctive-use management. The term “integrated” refers to the tight coupling of groundwater flow, surface-water flow, landscape processes, aquifer compaction and subsidence, reservoir operations, and conduit (karst) flow. This fusion results in a simulation software capable of addressing water-use and sustainability problems, including conjunctive-use, water-management, water-food-security, and climate-crop-water scenarios. As a second core version of MODFLOW-2005, MF-OWHM maintains backward compatibility with existing MODFLOW-2005 versions. Existing models developed using MODFLOW-2005, MODFLOW-NWT, MODFLOW-SWI, MODFLOW-SWR, MODFLOW-LGR, and MODFLOW-CFP can also be simulated using MF-OWHM. The Farm Process (FMP) is part of MF-OWHM but is the only component that does not maintain input backward compatibility with past releases (see th
FMP_Template
for new input structure). MF-OWHM also includes a Surface Water Operations Module (SWO) with a Fortran-like scripting language
Slang
that can specify dynamic reservoir and stream operations. A current major application of MF-OWHM, developed by the USGS, is the California Central Valley (CVHM2). The current USG
Approved Software
version i
2.3.0
released on January 15, 2024, and current preliminary-beta release o
2.3.1b-4
ref>Boyce, S.E., 2025, MODFLOW One-Water Hydrologic Flow Model (MF-OWHM) Conjunctive Use and Integrated Hydrologic Flow Modeling Software, version 2.3.1-b4: U.S. Geological Survey Software Release, https://doi.org/10.5066/P9P8I8GS
released on February 27, 2025.


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 6, MODPATH, SUTRA, and PHAST version 1.51. There are no license restrictions. The source code is included.
FloPy
is a Python package for creating, running, and post-processing MODFLOW-based models.

– 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 o
Argus ONE
a commercial interface for constructing generic models. There are no license restrictions beyond those of Argus ONE.
PMWIN
– "Processing MODFLOW" (for
Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
) – powerful freeware for MODFLOW processing and visualization, provided alongside an instructional book; also available in
Traditional Chinese A tradition is a system of beliefs or behaviors (folk custom) passed down within a group of people or society with symbolic meaning or special significance with origins in the past. A component of cultural expressions and folklore, common examp ...
. The license for this version is limited to non-commercial use.
mflab
- mflab is a
MATLAB MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementat ...
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.
iMOD
- Free and open source interface developed b
Deltares
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
FREEWAT
is a free and open source, QGIS-integrated modelling platform integrating MODFLOW (MODFLOW versions integrated are MODFLOW-2005 and MODFLOW-OWHM) and the following MODFLOW-related simulation codes
MT3D-USGSSEAWATMODPATHUCODE-2014
FREEWAT has been developed in the framework of the H2020 FREEWAT project (FREE and open source software tools for WATer resource management), financed by the EU Commission under the call WATER INNOVATION: BOOSTING ITS VALUE FOR EUROPE. The source code is released under

along with a complete set of User Manuals and tutorials.


Commercial programs

Commercial MODFLOW programs are typically used by governments and
consultant A consultant (from "to deliberate") is a professional (also known as ''expert'', ''specialist'', see variations of meaning below) who provides advice or services in an area of specialization (generally to medium or large-size corporations). Cons ...
s for practical applications of MODFLOW to real-world groundwater problems. Professional versions of MODFLOW are generally priced at a minimum of around $1000 and typically range upward to US$7000. This is a list of commercial programs for MODFLOW:
Argus ONE
* GMS – Groundwater Modeling System
Groundwater Vistas

Leapfrog Hydro

Processing Modflow
* Visual MODFLOW All current versions of these programs run only on Microsoft Windows, however previous versions of GMS (up to Version 3.1) were compiled for several
Unix Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
platforms.


Former graphical interfaces

* Graphic Groundwater – Windows-based interface * ModelCad – A Windows-based interface, developed by Geraghty and Miller, Inc.
ModIME
– A
DOS DOS (, ) is a family of disk-based operating systems for IBM PC compatible computers. The DOS family primarily consists of IBM PC DOS and a rebranded version, Microsoft's MS-DOS, both of which were introduced in 1981. Later compatible syste ...
-based interface by S.S. Papadopulos & Associates, Inc.


See also

* FEFLOW
PORFLOW
* HydroGeoSphere *
Hydrological optimization Hydrological optimization applies mathematical optimization techniques (such as dynamic programming, linear programming, integer programming, or quadratic programming) to water-related problems. These problems may be for surface water, groundwate ...
* MIKE SHE * MT3D


References

{{reflist, 30em Hydrology models Hydrogeology software United States Geological Survey Geology software for Linux Public-domain software Free science software