flopy/docs/working_with_flopy.md

8.8 KiB
Raw Blame History

Examples

jupyter Notebook Examples

The following jupyter Notebooks contain examples for using FloPy pre- and post-processing capabilities with a variety of MODFLOW-based models.

MODFLOW-2000, MODFLOW-2005, MODFLOW-NWT, MODFLOW-USG, MODPATH, MT3DMS, MT3D-USGS, and SEAWAT

Basic examples
  • An overview of loading existing MODFLOW models, creating models, and common post-processing capabilities using FloPy is presented in the flopy3_working_stack_demo Notebook.

  • 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 FloPy 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 FloPy functionality in the SpatialReference class for locating the model in a "real world" coordinate reference system is given in the flopy3_SpatialReference_demo Notebook.

  • An overview of FloPy capabilities to load a SFR2 file and evaluate data contained in the file is given in the flopy3_SFR2_load Notebook.

  • An overview of FloPy capabilities to create a SFR2 file and evaluate data contained in the file is given in the flopy3_sfrpackage_example Notebook. This example also shows how to read SFR water balance output into a pandas dataframe for additional postprocessing.

  • An overview of FloPy capabilities to create a MNW2 file and evaluate data contained in the file is given in the flopy3_mnw2package_example Notebook.

  • An overview of FloPy 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 FloPy capabilities for exporting two-dimensional array data as a binary file is given in the flopy3_save_binary_data_file Notebook.

  • An overview of FloPy capabilities to create MODPATH models and plot MODPATH results is given in the flopy3_Modpath_example Notebook.

  • An overview of using FloPy and GRIDGEN to creating layered quadtree grids for MODFLOW-USG is given in the flopy3_gridgen 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.

Examples from Bakker, M., Post, V., Langevin, C. D., Hughes, J. D., White, J. T., Starn, J. J. and Fienen, M. N., 2016, Scripting MODFLOW Model Development Using Python and FloPy: Groundwater, v. 54, p. 733739, doi:10.1111/gwat.12413.
SWI2 examples
  • 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.

Model analysis and error checking examples

Export examples

Parameter Estimation examples

MODFLOW 6

Basic examples

Plotting examples (limited functionality for MODFLOW 6 models)

Additional MODFLOW examples