A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

modflow6

Has been widely used by academics, private consultants, and government scientists to accurately, reliably, and efficiently simulate groundwater flow.
https://github.com/modflow-org/modflow6

Category: Natural Resources
Sub Category: Water Supply and Quality

Keywords

earth-science groundwater modflow

Keywords from Contributors

hydrology water transform water-resources measurements composibility report optimizers geoscience mesh

Last synced: about 16 hours ago
JSON representation

Repository metadata

USGS Modular Hydrologic Model

README.md

MODFLOW 6: USGS Modular Hydrologic Model

This is the development repository for the USGS MODFLOW 6 Hydrologic Model. The official USGS distribution is available at USGS Release Page.

Version 6.7.0.dev1 (preliminary)

GitHub release
MODFLOW 6 continuous integration
MODFLOW 6 documentation
MODFLOW 6 large models
MODFLOW 6 nightly build

Branches

This repository contains branches of ongoing MODFLOW 6 development. The two main branches in this repository are:

  • master: the state of the MODFLOW 6 repository corresponding to the last official USGS release
  • develop: the current development version of the MODFLOW 6 program

The develop branch is under active and frequent updates by the MODFLOW development team and other interested contributors. We follow a fork and pull request workflow and require that pull requests pass our test suite before they are considered a possible candidate to merge into develop. The master branch is only updated immediately prior to each new release.

This repository may contain other branches with various levels of development code; however, these branches may be merged into develop or deleted without notice.

Nightly Builds

This repository's develop branch often contains bug fixes and new features that are not yet part of the official USGS release. Binaries for Linux, macOS and Windows are built from the develop branch and posted to the MODFLOW-ORG/modflow6-nightly-build repository each night. The updated user guide mf6io.pdf is also included, as well as the code.json metadata file.

Releases

Software distributions for the current and previous official USGS releases are available here. The current release is also available here from the USGS.

Examples

MODFLOW 6 has an extensive suite of example problems that are constructed using the python FloPy package. These example problems are contained in a separate git repository located here. These examples are included in the official USGS MODFLOW 6 distribution, and they are also rendered into online descriptions and jupyter notebooks.

Contributing

First, follow DEVELOPER.md in order to set up your development environment to build and test MODFLOW 6.
The contribution workflow is described in CONTRIBUTING.md.

Continuous Integration

This repository contains an ./autotest folder with python scripts for building and testing the MODFLOW 6 program and other workflow tasks. The testing workflow relies heavily on several related repositories including:

Code Documentation

Documentation for the code on the develop branch is automatically developed using Doxygen as part of the MODFLOW 6 Continuous Integration/Continuous Deployment process. Code documentation is available from the GitHub Pages for this repository.

Using Flopy with the develop Version of MODFLOW 6

All new MODFLOW 6 functionality in the develop branch can be used directly with flopy; however, the installed version of flopy may need to be updated in order to become aware of new MODFLOW 6 changes. All MODFLOW 6 input is described using "definition files," which are located in the MODFLOW 6 repository under ./doc/mf6io/mf6ivar/dfn. These definition files may be updated on the develop branch as input changes to accommodate new options. The python script ./autotest/update_flopy.py can be run to automatically update the installed version of flopy to work with the develop version of MODFLOW 6. As a note of caution, be aware that running the update_flopy.py script will change the installed version of flopy, which could adversely affect existing MODFLOW 6 flopy scripts.

Instructions for building definition files for new packages

Instructions for building definition files for new packages are summarized in doc/mf6io/mf6ivar/readme.md.

MODFLOW 6 Overview

MODFLOW is a popular open-source groundwater flow model distributed by the U.S. Geological Survey. For 30 years, the MODFLOW program has been widely used by academic researchers, private consultants, and government scientists to accurately, reliably, and efficiently simulate groundwater flow. With time, growing interest in surface and groundwater interactions, local refinement with nested and unstructured grids, karst groundwater flow, solute transport, and saltwater intrusion, has led to the development of numerous MODFLOW versions. Although these MODFLOW versions are often based on the core version (presently MODFLOW-2005), there are often incompatibilities that restrict their use with one another. In many cases, development of these alternative versions has been challenging due to the underlying MODFLOW structure, which was designed for the simulation with a single groundwater flow model using a rectilinear grid.

MODFLOW 6 is the latest core version of MODFLOW. It synthesizes many of the capabilities available in MODFLOW-2005, MODFLOW-NWT, and MODFLOW-LGR. MODFLOW 6 was built on a new object-oriented framework that allows new packages and models to be added, and allows any number of models to be run simultaneously in a single simulation. Model may be coupled sequentially, such as for flow and transport, or the models may be tightly coupled at the matrix level, such as for multiple flow models. MODFLOW 6 presently contains two types of hydrologic models, the Groundwater Flow (GWF) Model and the Groundwater Transport (GWT) Model.

The Groundwater Flow (GWF) Model was the first model to be released in MODFLOW 6. It supports regular MODFLOW grids consisting of layers, rows, and columns, but it also supports more flexible grids that may conform to irregular boundaries or have increased resolution in areas of interest. The GWF Model consists of the original MODFLOW stress packages (CHD, WEL, DRN, RIV, GHB, RCH, and EVT) and four advanced stress packages (MAW, SFR, LAK, and UZF), which have been distilled from their predecessors to contain the most commonly used capabilities. MODFLOW 6 contains a new Water Mover (MVR) Package that can transfer water from provider packages to receiver packages. Providers can be many of the stress and advanced stress packages; receivers can be any of the advanced stress packages. This new capability makes it possible to route water between lakes and streams, route rejected infiltration into a nearby stream, or augment lakes using groundwater pumped from wells, for example. To modernize user interaction with the program, the MODFLOW 6 input structure was redesigned. Within package input files, information is divided into blocks, and informative keywords are used to label numeric data and activate options. This new input structure was designed to make it easier for users to adjust simulation options in an intuitive manner, reduce user input errors, and allow new capabilities to be added without causing problems with backward compatibility.

The GWT model for MODFLOW 6 simulates three-dimensional transport of a single solute species in flowing groundwater. The GWT Model solves the solute transport equation using numerical methods and a generalized CVFD approach, which can be used with regular MODFLOW grids or with unstructured grids. The GWT Model is designed to work with most of the new capabilities released with the GWF Model, including the Newton flow formulation, unstructured grids, advanced packages, and the movement of water between packages. The GWF and GWT Models operate simultaneously during a MODFLOW 6 simulation to represent coupled groundwater flow and solute transport. The GWT Model can also run separately from a GWF Model by reading the heads and flows saved by a previously run GWF Model. The GWT model is also capable of working with the flows from another groundwater flow model, as long as the flows from that model can be written in the correct form to flow and head files.

How to Cite MODFLOW 6

Report and Papers

Hughes, J.D., Langevin, C.D., and Banta, E.R., 2017, Documentation for the MODFLOW 6 framework: U.S. Geological Survey Techniques and Methods, book 6, chap. A57, 40 p., https://doi.org/10.3133/tm6A57.

Langevin, C.D., Hughes, J.D., Banta, E.R., Niswonger, R.G., Panday, Sorab, and Provost, A.M., 2017, Documentation for the MODFLOW 6 Groundwater Flow Model: U.S. Geological Survey Techniques and Methods, book 6, chap. A55, 197 p., https://doi.org/10.3133/tm6A55.

Provost, A.M., Langevin, C.D., and Hughes, J.D., 2017, Documentation for the "XT3D" option in the Node Property Flow (NPF) Package of MODFLOW 6: U.S. Geological Survey Techniques and Methods, book 6, chap. A56, 40 p., https://doi.org/10.3133/tm6A56.

Langevin, C.D., Panday, S, and Provost, A.M., 2020, Hydraulic-head formulation for density-dependent flow and transport: Groundwater, v. 58, no. 3, p. 349–362, https://doi.org/10.1111/gwat.12967.

Morway, E.D., Langevin, C.D., and Hughes, J.D., 2021, Use of the MODFLOW 6 water mover package to represent natural and managed hydrologic connections: Groundwater, v. 59, no. 6, p. 913-924, https://doi.org/10.1111/gwat.13117.

Hughes, J.D., Russcher, M.J., Langevin, C.D., Morway, E.D., and McDonald, R.R., 2022, The MODFLOW Application Programming Interface for simulation control and software interoperability: Environmental Modelling & Software, v. 148, 105257, https://doi.org/10.1016/j.envsoft.2021.105257.

Langevin, C.D., Provost, A.M., Panday, Sorab, and Hughes, J.D., 2022, Documentation for the MODFLOW 6 Groundwater Transport (GWT) Model: U.S. Geological Survey Techniques and Methods, book 6, chap. A61, 56 p., https://doi.org/10.3133/tm6A61.

Hughes, J.D., Leake, S.A., Galloway, D.L., and White, J.T., 2022, Documentation for the Skeletal Storage, Compaction, and Subsidence (CSUB) Package of MODFLOW 6: U.S. Geological Survey Techniques and Methods, book 6, chap. A62, 57 p., https://doi.org/10.3133/tm6A62.

Langevin, C.D., Hughes, J.D., Provost, A.M., Russcher, M.J. and Panday, S., 2023, MODFLOW as a Configurable Multi-Model Hydrologic Simulator: Groundwater, v. 62, p. 111-123, https://doi.org/10.1111/gwat.13351.

Larsen, J.D., Langevin, C.D., Hughes, J.D. and Niswonger, R.G., 2024, An Agricultural Package for MODFLOW 6 Using the Application Programming Interface. Groundwater, v. 62, p. 157-166, https://doi.org/10.1111/gwat.13367.

Provost, A.M., Bardot, K., Langevin, C.D., McCallum, J.L., 2025, Accurate Simulation of Flow through Dipping Aquifers with MODFLOW 6 Using Enhanced Cell Connectivity. Groundwater, https://doi.org/10.1111/gwat.13459.

Morway, E.D., Provost, A.M., Langevin, C.D., Hughes, J.D., Russcher, M.J., Chen, C.Y., Lin, Y.F.F., 2025, A New Groundwater Energy Transport Model for the MODFLOW Hydrologic Simulator. Groundwater, https://doi.org/10.1111/gwat.13470.

Software/Code

The following is the general citation for the MODFLOW 6 software.

Langevin, C.D., Hughes, J.D., Banta, E.R., Provost, A.M., Niswonger, R.G., and Panday, Sorab, 2017, MODFLOW 6 Modular Hydrologic Model: U.S. Geological Survey Software, https://doi.org/10.5066/F76Q1VQV

Citations for specific versions are included with the releases.

Disclaimer

This software is preliminary or provisional and is subject to revision. It is
being provided to meet the need for timely best science. The software has not
received final approval by the U.S. Geological Survey (USGS). No warranty,
expressed or implied, is made by the USGS or the U.S. Government as to the
functionality of the software and related material nor shall the fact of release
constitute any such warranty. The software is provided on the condition that
neither the USGS nor the U.S. Government shall be held liable for any damages
resulting from the authorized or unauthorized use of the software.

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite the software itself.
type: software
title: MODFLOW 6 Modular Hydrologic Model
version: 6.7.0.dev1
date-released: '2025-04-21'
doi: 10.5066/F76Q1VQV
abstract: MODFLOW 6 is an object-oriented program and framework developed to provide
  a platform for supporting multiple models and multiple types of models within the
  same simulation. Within this framework, a regional-scale groundwater model may be
  coupled with multiple local-scale groundwater models. Or, a groundwater flow model
  could be coupled to a groundwater transport model of a single solute species.
repository-code: https://github.com/MODFLOW-ORG/modflow6
license: CC0-1.0
authors:
- family-names: Langevin
  given-names: Christian D.
  alias: langevin-usgs
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0001-5610-9759
- family-names: Hughes
  given-names: Joseph D.
  alias: jdhughes-usgs
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0003-1311-2354
- family-names: Provost
  given-names: Alden M.
  alias: aprovost-usgs
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0002-4443-1107
- family-names: Russcher
  given-names: Martijn J.
  alias: mjr-deltares
  affiliation: Deltares
  orcid: https://orcid.org/0000-0001-8799-6514
- family-names: Niswonger
  given-names: Richard G.
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0001-6397-2403
- family-names: Panday
  given-names: Sorab
  affiliation: GSI Environmental
- family-names: Merrick
  given-names: Damian
  alias: damianmerrick
  affiliation: HydroAlgorithmics
- family-names: Morway
  given-names: Eric D.
  alias: emorway-usgs
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0002-8553-6140
- family-names: Reno
  given-names: Michael J.
  affiliation: U.S. Geological Survey
  alias: mjreno
- family-names: Bonelli
  given-names: Wesley P.
  alias: wpbonelli
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0002-2665-5078
- family-names: Boyce
  given-names: Scott E.
  alias: ScottBoyce
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0003-0626-9492
- family-names: Banta
  given-names: Edward R.
  affiliation: U.S. Geological Survey
  orcid: https://orcid.org/0000-0001-8132-9315

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 1,641
Total Committers: 30
Avg Commits per committer: 54.7
Development Distribution Score (DDS): 0.721

Commits in past year: 398
Committers in past year: 20
Avg Commits per committer in past year: 19.9
Development Distribution Score (DDS) in past year: 0.573

Name Email Commits
langevin-usgs l****n@u****v 458
wpbonelli w****i@u****u 347
jdhughes-usgs j****s@u****v 300
Eric Morway e****y@u****v 156
mjr-deltares 4****s 126
mjreno r****k@g****m 92
Hofer-Julian 3****n 38
dependabot[bot] 4****] 25
Mike Taves m****s@g****m 25
github-actions[bot] 4****] 19
Sunny Titus 7****a 13
spaulins-usgs s****i@u****v 10
damianmerrick d****k@h****m 5
aprovost-usgs a****t@u****v 4
Martijn Visser m****r@g****m 3
Huite h****a@g****m 3
Scott Boyce s****e@u****v 2
vivekbedekar v****r@h****m 2
Michael Ou o****n@g****m 2
mjreno m****o@I****t 1
mjreno m****o@I****t 1
wpbonelli w****i@c****v 1
scottrp 4****p 1
mkennard-aquaveo 4****o 1
martclanor m****r@g****m 1
kzeiler 8****r 1
Joshua Larsen j****n@u****v 1
Joseph Hughes j****1@g****m 1
James McCreight j****c@u****u 1
Charlton, Scott R. c****n@u****v 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 80
Total pull requests: 197
Average time to close issues: 3 months
Average time to close pull requests: 25 days
Total issue authors: 16
Total pull request authors: 15
Average comments per issue: 1.28
Average comments per pull request: 0.42
Merged pull request: 161
Bot issues: 0
Bot pull requests: 23

Past year issues: 29
Past year pull requests: 137
Past year average time to close issues: 10 days
Past year average time to close pull requests: 5 days
Past year issue authors: 13
Past year pull request authors: 13
Past year average comments per issue: 2.17
Past year average comments per pull request: 0.41
Past year merged pull request: 114
Past year bot issues: 0
Past year bot pull requests: 21

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/modflow-org/modflow6

Top Issue Authors

  • langevin-usgs (30)
  • jdhughes-usgs (19)
  • rbwinst-usgs (10)
  • cneyens (3)
  • emorway-usgs (3)
  • tandreasr (3)
  • wpbonelli (2)
  • Huite (2)
  • mgozdor2 (1)
  • alecomunian (1)
  • bierdosenhalter (1)
  • ougx (1)
  • pya (1)
  • mrojasc8 (1)
  • briochh (1)

Top Pull Request Authors

  • wpbonelli (71)
  • langevin-usgs (33)
  • jdhughes-usgs (19)
  • emorway-usgs (17)
  • mjreno (12)
  • dependabot[bot] (12)
  • github-actions[bot] (11)
  • Manangka (6)
  • mjr-deltares (4)
  • visr (3)
  • WilliamWitterick (3)
  • martclanor (2)
  • mwtoews (2)
  • jlarsen-usgs (1)
  • jdhughes-dev (1)

Top Issue Labels

  • bug (23)
  • enhancement (12)
  • subsidence (12)
  • documentation (4)
  • nightly build (2)
  • code refactor (2)
  • examples (1)
  • release (1)
  • maintenance (1)
  • parallel (1)

Top Pull Request Labels

  • bug (14)
  • dependencies (13)
  • documentation (12)
  • code refactor (11)
  • maintenance (8)
  • onhold (8)
  • ci (6)
  • enhancement (5)
  • github_actions (4)
  • release (1)
  • examples (1)
  • question (1)

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • awvwgk/setup-fortran main composite
  • mamba-org/provision-with-micromamba main composite
  • modflowpy/install-intelfortran-action v1 composite
.github/workflows/docs.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • awvwgk/setup-fortran main composite
  • dfm/rtds-action v1 composite
  • mamba-org/provision-with-micromamba main composite
  • peaceiris/actions-gh-pages v3.7.3 composite
.github/workflows/large.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • awvwgk/setup-fortran main composite
  • mamba-org/provision-with-micromamba main composite
  • modflowpy/install-intelfortran-action v1 composite
.github/workflows/release.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
  • dawidd6/action-download-artifact v2 composite
  • mamba-org/provision-with-micromamba main composite
  • modflowpy/install-intelfortran-action v1 composite
  • oprypin/find-latest-tag v1 composite
.build_rtd_docs/requirements.rtd.txt pypi
  • bmipy *
  • filelock *
  • ipykernel *
  • ipython *
  • myst_parser *
  • nbsphinx *
  • nbsphinx_link *
  • numpy *
  • pytest *
  • rtds_action *
  • sphinx_markdown_tables *
  • sphinx_rtd_theme *
.doc/requirements.txt pypi
  • ipykernel *
  • ipython *
  • recommonmark *
  • rtds_action *
  • sphinx_markdown_tables *
  • sphinx_rtd_theme *
.github/workflows/release_dispatch.yml actions
  • actions/checkout v4 composite
  • dawidd6/action-download-artifact v2 composite
  • mamba-org/setup-micromamba v1 composite
  • oprypin/find-latest-tag v1 composite
autotest/pyproject.toml pypi
.github/workflows/compilers.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v3 composite
  • fortran-lang/setup-fortran v1 composite
  • mamba-org/setup-micromamba v1 composite
environment.yml pypi
  • modflow-devtools >=1.1.0

Score: 9.197255132427527