Skip to content

How to Run flopy-modflow6 day by day in a loop instead of all at once #1832

Closed Answered by spaulins-usgs
qiyang77 asked this question in Q&A
Discussion options

You must be logged in to vote

@qiyang77, you can do this using the modflowapi python library. The modflowapi python library is on github here:

https://github.com/MODFLOW-USGS/modflowapi

The Modflowapi library provides python access to the MODFLOW API. "The MODFLOW [API] allows other programs to control MODFLOW and interactively change variables without having to modify the source code." (Hughes, 2022). I recommend reading the article I just quoted, cited at the bottom of the modflowapi github page, and then look through the notebooks in the examples folder. The "Head_Monitor_Example" notebook includes code that gets an array of current heads, and the "MODFLOW-API_extension_objects" notebook "Create a callback function…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wpbonelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants