Skip to main content
U.S. flag

An official website of the United States government

The MODFLOW Application Programming Interface for simulationcontrol and software interoperability

December 10, 2021

The MODFLOW API allows other programs to control MODFLOW and interactively change variables without having to modify the source code. The MODFLOW API is based on the Basic Model Interface (BMI), which is a set of conventions that define how to initialize a simulation, update the model state by advancing in time, and finalize the run. For many existing MODFLOW coupling applications, the information provided to MODFLOW must be updated multiple times in a time step. As this capability to modify variables within a time step is not defined by the BMI, an extension to BMI was developed. This eXtended Model Interface is part of the MODFLOW API and allows such a tight coupling to other models. Examples are included for a variety of use cases, including new flexibility for users to develop custom packages without modifying the MODFLOW source code and coupling MODFLOW with other models and optimization libraries.

Publication Year 2022
Title The MODFLOW Application Programming Interface for simulationcontrol and software interoperability
DOI 10.1016/j.envsoft.2021.105257
Authors Joseph D. Hughes, Martijn J. Russcher, Christian D. Langevin, Eric D. Morway, Richard R. McDonald
Publication Type Article
Publication Subtype Journal Article
Series Title Environmental Modelling & Software
Index ID 70227751
Record Source USGS Publications Warehouse
USGS Organization WMA - Integrated Modeling and Prediction Division