Scripting MODFLOW Model Development Using Python']Python and FloPy

被引:281
作者
Bakker, M. [1 ]
Post, V. [2 ,3 ]
Langevin, C. D. [4 ]
Hughes, J. D. [4 ]
White, J. T. [5 ]
Starn, J. J. [6 ]
Fienen, M. N. [7 ]
机构
[1] Delft Univ Technol, Water Resources Sect, Delft, Netherlands
[2] Flinders Univ S Australia, Adelaide, SA, Australia
[3] BGR, Fed Inst Geosci & Nat Resources, Hannover, Germany
[4] US Geol Survey, 959 Natl Ctr, Reston, VA 22092 USA
[5] US Geol Survey, Texas Water Sci Ctr, Austin, TX USA
[6] US Geol Survey, E Hartford, CT USA
[7] US Geol Survey, Wisconsin Water Sci Ctr, Middleton, WI USA
关键词
Computer software - Groundwater - Graphical user interfaces - Groundwater flow - High level languages;
D O I
10.1111/gwat.12413
中图分类号
P [天文学、地球科学];
学科分类号
07 ;
摘要
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.
引用
收藏
页码:733 / 739
页数:7
相关论文
共 18 条
[1]  
[Anonymous], 2006, A guide to NumPy
[2]  
[Anonymous], 2000, MODFLOW 2000 US GEOL
[3]   Python']Python Scripting: The Return to Programming [J].
Bakker, Mark .
GROUNDWATER, 2014, 52 (06) :821-822
[4]   Writing Analytic Element Programs in Python']Python [J].
Bakker, Mark ;
Kelson, Victor A. .
GROUND WATER, 2009, 47 (06) :828-834
[5]   High-Throughput Computing Versus High-Performance Computing for Groundwater Applications [J].
Fienen, Michael N. ;
Hunt, Randall J. .
GROUNDWATER, 2015, 53 (02) :180-184
[6]  
Gillies S., 2013, The Shapely User Manual
[7]  
Gillies S., 2014, FIONA USER MANUAL
[8]  
Harbaugh A. W., 2005, US GEOLOGICAL SURVEY, V6
[9]   Matplotlib: A 2D graphics environment [J].
Hunter, John D. .
COMPUTING IN SCIENCE & ENGINEERING, 2007, 9 (03) :90-95
[10]  
Jones E., 2001, SciPy: Open source scientific tools for Python