10.5 An Introduction to MODFLOW

A rigorous finite difference model consists of computer code that reads the model grid and other input values, performs the iterative calculations, and records the output in some usable format. A finite difference model code requires the following items.

  • A means of inputting grid node locations, boundary conditions, and hydraulic parameters ([latex]K,\ S_{s}[/latex]) at each node.
  • An algorithm that calculates heads at each value and controls the iterative process—that is, compares calculated heads from each successive iteration, to determine if the convergence criteria are met.
  • A means of writing the final head values to an output file for processing.

Constructing simple finite difference models using FORTRAN, python, or some other computer language to do the calculations is not too difficult. However, models can get very complex in a very short period, and the time spent writing the code can increase dramatically with increasing complexity.

In the early days of groundwater modeling the modeler needed to write the computer code to build the model for any given specific problem. In the late 1970s, hydrogeologists and programmers started writing model codes that were flexible and could be applied to a variety of situations. Then in the early 1980s, two hydrogeologists at the USGS named McDonald and Harbaugh (1984) developed and published the code for a finite‑difference‑based software package called MODFLOW, which quickly became the industry standard for developing groundwater flow models.

What made their model so useful and universally acceptable was that, rather than set up a single computer program with all the steps outlined above, they set up their software as a series of subroutines, or modules, with each module associated with a specific part of a finite difference model. For example, they have a pumping well module, a recharge module, a river boundary module, etc. The user is still responsible for putting together the input files and setting up the grid, but then they can choose the modules that are appropriate for their model and construct it accordingly. This, along with the fact that their software was free, resulted in widespread distribution of the model and an almost universal acceptance of the program.

Over the years since the original release of MODFLOW there have been numerous subsequent versions with various improvements, and several non‑USGS affiliated companies started developing and selling pre‑processor software that use graphical user interfaces (GUI) and special programs to aid in grid construction and parameter distribution. These are then linked directly to MODFLOW, so the model grid and parameters go right into the MODFLOW algorithm. They also developed post‑processor programs that take the output and make nice images and animations illustrating model results. These programs are in widespread use today, and they give any individual with a standard PC computer the ability to generate and run fairly complex groundwater models.

This section provides a limited overview of groundwater modeling and the MODFLOW modeling environment. Students and practicing hydrogeologist who want more information on groundwater modeling are encouraged to download and read Getting Started with MODFLOW↗ by Winston (2023) and Geologic Frameworks for Groundwater Flow Models↗ by Brandenburg (2020); both books are available as free downloads from The Groundwater Project.

License

Basic Hydrogeology: An Introduction to the Fundamentals of Groundwater Science Copyright © 2025 by Matthew M. Uliana. All Rights Reserved.

Share This Book