Scripting MODFLOW Model Development Using Python and FloPy

Graphical user interfaces (GUIs) are commonly used to construct and postprocess numerical groundwater flow and transport models. Scripting model development with the programming language Python is presented here as an alternative approach. One advantage of Python is that there are many packages avai...

Full description

Saved in:
Bibliographic Details
Published inGround water Vol. 54; no. 5; pp. 733 - 739
Main Authors Bakker, M., Post, V., Langevin, C. D., Hughes, J. D., White, J. T., Starn, J. J., Fienen, M. N.
Format Journal Article
LanguageEnglish
Published Malden, US Blackwell Publishing Ltd 01.09.2016
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Graphical user interfaces (GUIs) are commonly used to construct and postprocess numerical groundwater flow and transport models. Scripting model development with the programming language Python is presented here as an alternative approach. One advantage of Python is that there are many packages available to facilitate the model development process, including packages for plotting, array manipulation, optimization, and data analysis. For MODFLOW‐based models, the FloPy package was developed by the authors to construct model input files, run the model, and read and plot simulation results. Use of Python with the available scientific packages and FloPy facilitates data exploration, alternative model evaluations, and model analyses that can be difficult to perform with GUIs. Furthermore, Python scripts are a complete, transparent, and repeatable record of the modeling process. The approach is introduced with a simple FloPy example to create and postprocess a MODFLOW model. A more complicated capture‐fraction analysis with a real‐world model is presented to demonstrate the types of analyses that can be performed using Python and FloPy. Article Impact Statement: Python/FloPy scripts are a powerful approach to build and analyze MODFLOW‐based models and are a full record of the entire modeling process.
Bibliography:istex:46D77A834C13B16EB7C4F625AD0469DFDA349A9E
ArticleID:GWAT12413
ark:/67375/WNG-S248FXFG-Q
ObjectType-Article-1
SourceType-Scholarly Journals-1
ObjectType-Feature-2
content type line 23
ISSN:0017-467X
1745-6584
DOI:10.1111/gwat.12413