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
- Host: GitHub
- URL: https://github.com/modflow-org/modflow6
- Owner: MODFLOW-ORG
- License: other
- Created: 2018-01-03T15:00:55.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-18T18:04:52.000Z (8 days ago)
- Last Synced: 2025-04-19T11:19:48.721Z (8 days ago)
- Topics: earth-science, groundwater, modflow
- Language: Fortran
- Homepage: https://modflow6.readthedocs.io/
- Size: 27.5 MB
- Stars: 281
- Watchers: 32
- Forks: 131
- Open Issues: 48
- Releases: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
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)
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 releasedevelop
: 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:
- modflowpy/pymake
- modflowpy/flopy
- MODFLOW-ORG/modflow6-examples
- MODFLOW-ORG/modflow6-testmodels
- MODFLOW-ORG/modflow6-largetestmodels
- MODFLOW-ORG/executables
- MODFLOW-ORG/modflow-devtools
- Deltares/xmipy
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.
develop
Version of MODFLOW 6
Using Flopy with the 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
Software/Code
The following is the general citation for the MODFLOW 6 software.
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
- Name: MODFLOW and Related Programs
- Login: MODFLOW-ORG
- Email: [email protected]
- Kind: organization
- Description: Organization for MODFLOW development
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/34482102?v=4
- Repositories: 20
- Last ynced at: 2025-02-28T06:07:40.546Z
- Profile URL: https://github.com/MODFLOW-ORG
GitHub Events
Total
- Issues event: 23
- Watch event: 12
- Delete event: 7
- Issue comment event: 50
- Push event: 42
- Pull request review comment event: 17
- Pull request review event: 21
- Pull request event: 91
- Fork event: 3
- Create event: 6
Last Year
- Issues event: 23
- Watch event: 12
- Delete event: 7
- Issue comment event: 50
- Push event: 42
- Pull request review comment event: 17
- Pull request review event: 21
- Pull request event: 91
- Fork event: 3
- Create event: 6
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 | 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:
- usgs.gov: 8
- ucar.edu: 2
- contractor.usgs.gov: 1
- igsaaa071l00066.gs.doi.net: 1
- igsaaa071l01144.gs.doi.net: 1
- hydroalgorithmics.com: 1
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
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
- actions/checkout v3 composite
- awvwgk/setup-fortran main composite
- mamba-org/provision-with-micromamba main composite
- modflowpy/install-intelfortran-action v1 composite
- 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
- 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
- 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
- bmipy *
- filelock *
- ipykernel *
- ipython *
- myst_parser *
- nbsphinx *
- nbsphinx_link *
- numpy *
- pytest *
- rtds_action *
- sphinx_markdown_tables *
- sphinx_rtd_theme *
- ipykernel *
- ipython *
- recommonmark *
- rtds_action *
- sphinx_markdown_tables *
- sphinx_rtd_theme *
- actions/checkout v4 composite
- dawidd6/action-download-artifact v2 composite
- mamba-org/setup-micromamba v1 composite
- oprypin/find-latest-tag v1 composite
- 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
- modflow-devtools >=1.1.0
Score: 9.197255132427527