The following IPython Notebooks contain example FloPy scripts for a variety of models and FloPy features
-
An overview of the options to enter layer, row, column, data values for packages such as the wel and ghb packages is given in the flopy3_modflow_boundaries Notebook
-
An overview of how to control the format of numeric arrays written by FloPy to MODFLOW-based input files is given in the flopy3_array_outputformat_options Notebook.
-
An overview of how FloPy3 handles external files for numeric arrays written by FloPy to MODFLOW-based input files is given in the flopy3_external_file_handling Notebook.
-
An overview of FloPy3 capabilities to load a SFR2 file and evaluate data contained in the file is given in the flopy3_SFR2_load Notebook.
-
An overview of FloPy3 capabilities to create a SFR2 file and evaluate data contained in the file is given in the flopy3_sfrpackage_example Notebook.
-
An overview of FloPy3 capabilities to create a MNW2 file and evaluate data contained in the file is given in the flopy3_mnw2package_example Notebook.
-
An overview of FloPy3 capabilities to create a UZF file and evaluate data contained in the file and UZF output files is given in the flopy3_uzf_example Notebook.
-
An overview of FloPy3 capabilities for exporting two-dimensional array data as a binary file is given in the flopy3_save_binary_data_file Notebook.
-
An overview of FloPy3 capabilities to create MODPATH models and plot MODPATH results is given in the flopy3_Modpath_example Notebook.
-
The lake example, a very simple FloPy example of steady flow in a square model with a fixed head cell in the middle (representing a lake) in a 10-layer model.
-
A variant of the water-table example, a very simple example of one-dimensional groundwater flow in an unconfined aquifer with recharge, from the MODFLOW-NWT documentation (http://pubs.usgs.gov/tm/tm6a37/). This IPython Notebook build files for MODFLOW-NWT.
-
The Zaidel discontinuous water-table example, which simulates a discontinuous water table over a stairway impervious base, from http://onlinelibrary.wiley.com/doi/10.1111/gwat.12019/abstract. This IPython Notebook build files for MODFLOW-USG. (http://pubs.usgs.gov/tm/06/a45/).
-
An overview of the options for creating a Source/Sink Mixing (SSM) Package for MT3DMS and SEAWAT is given in the flopy3ssm Notebook.
-
The 'Crank-Nicolson' example distributed with MT3D-USGS, a simple MT3D-USGS model that uses the SFT Package.
-
The Henry Problem, a simple saltwater intrusion model developed with Flopy and run using SEAWAT.
-
Example 1 of the SWI2 manual, simulating a rotating interface.
-
Example 4 of the SWI2 manual, upconing below a pumping well below a two-aquifer island system.
-
An overview of the FloPy model input data
check()
method capabilities -
An overview of the FloPy zone budget
ZoneBudget()
method capabilities Notebook. TheZoneBudget()
method is a python implementation of USGS ZONEBUDGET executable for MODFLOW (Harbaugh, 1990). -
An overview of the Flopy
get_transmissivities()
method for computing open interval transmissivities (for weighted averages of heads or fluxes) Notebook. This method can be used to:- compute vertically-averaged head target values representative of observation wells of varying open intervals (including variability in saturated thickness due to the position of the water table). This may be especially important for reducing error in observations used for parameter estimation, in areas with appreciable vertical head gradients (due to aquitards, pumping, discharge to surface water, etc.)
- apportion boundary fluxes (e.g. from an analytic element model) among model layers based on transmissivity.
- any other analysis where a distribution of transmissivity is needed for a specified vertical interval of the model.
-
An overview of the FloPy map and cross-section plotting capabilities.
-
An overview of the FloPy model input and output data
plot()
method capabilities -
An overview of SWR1 Process Output Processing and Plotting is given in the flopy3_LoadSWRBinaryData Notebook.
-
The flopy3_shapefile_features Notebook illustrates some functionality in flopy for exchanging MODFLOW-related information with shapefiles, including convenience functions for working with shapefile data in numpy recarrays, some simple container objects for storing geographic information, and a demonstration of automatic writing of projection (.prj) files using EPSG codes.
- An overview of the FloPy netCDF and shapefile export capabilities.
- An overview of the FloPy parameter estimation capabilities.
- Example problems from the 2015 2nd edition of Applied Groundwater Modeling by Mary P. Anderson, William W. Woessner, and Randall J. Hunt (https://github.com/Applied-Groundwater-Modeling-2nd-Ed)