FloPy Documentation
3.3.7
  • What is FloPy
  • FloPy Installation
  • FloPy Resources
  • FloPy Development Team
  • How to Cite
  • Tutorials
  • Examples Gallery
    • Preprocessing and Discretization
      • ModelGrid classes demo
      • Intersecting model grids with shapes
      • Intersecting rasters with modelgrids using FloPy’s Raster class
      • Sampling points, Cropping, and performing intersections using raster data
      • Creating Layered Quadtree Grids with GRIDGEN
      • Triangular mesh example
      • Voronoi Grid and MODFLOW 6 Flow and Transport Example
    • Postprocessing and Visualization
      • Making Cross Sections of Your Model
      • Making Maps of Your Model
      • Plotting Model Arrays and Results
      • Plotting SWR Process Results
      • Postprocessing head results from MODFLOW
      • ZoneBudget Example
      • Zonebudget for Modflow 6 (ZoneBudget6)
    • Exporting data
      • Demo of netCDF and shapefile export capabilities within the flopy export module.
      • Shapefile export demo
      • VTK Export Demo
      • Exporting to VTK using the .export() method
      • Model export to .vtu files
      • Exporting using the Vtk() class object
      • Export heads to binary .vtu files
      • Export cell budget information
      • Adding Modpath timeseries or pathline data to Vtk()
    • MODFLOW 6 examples
      • Flopy MODFLOW 6 (MF6) Support
      • Saving and Running a MF6 Simulation
      • Exporting a MF6 Model
      • Loading an Existing MF6 Simulation
      • Retrieving Data and Modifying an Existing MF6 Simulation
      • Creating a Simple MODFLOW 6 Model with Flopy
      • Creating a Complex MODFLOW 6 Model with Flopy
      • Demo of the local grid refinement (LGR) utility
      • Observations, time series and time array series
      • Observations
      • Time Series
      • Time Array Series
    • MODFLOW USG examples
      • MODFLOW-USG CLN package demo
      • MODFLOW-USG Freyberg demo
      • MODFLOW-USG: Discontinuous water table configuration over a stairway impervious base
    • MODFLOW-2005/MODFLOW-NWT examples
      • FloPy working stack demo
      • MODFLOW-2005 Basic stress packages
      • Lake Package Example
      • Working with the Multi-node Well (MNW2) Package
      • SFR package Prudic and others (2004) example
      • Reading transient SFR formatted output
      • Loading and querying an SFR2 Package dataset
      • Unsaturated Zone Flow (UZF) Package demo
      • Flopy Drain Return (DRT) capabilities
      • Working with MODFLOW-NWT v 1.1 option blocks
      • Building an OptionBlock from scratch
      • SWI2 Example 1. Rotating Interface
      • SWI2 Example 4. Upconing Below a Pumping Well in a Two-Aquifer Island System
      • Simple water-table solution with recharge
    • MODPATH examples
      • Working with MODPATH 6
      • Creating a MODPATH 7 simulation
      • Using MODPATH 7 with structured grids
      • Using MODPATH 7 with structured grids (transient example)
      • Running the simulation
      • Using MODPATH 7 with a DISV unstructured model
      • Using MODPATH 7: DISV quadpatch example
    • MT3D and SEAWAT
      • MT3D-USGS Example
      • Compare mt3d-usgs results to an analytical solution
      • MT3D-USGS: Transport with the SFR/LAK/UZF Packages (SFT/LKT/UZT), and chemical reactions (RCT)
      • Now work on MT3D-USGS file creation
      • MT3DMS Example Problems
      • Using FloPy to simplify the use of the MT3DMS SSM package
      • Henry Saltwater Intrusion Problem
    • PEST support
      • Support for PEST
    • Other Flopy features
      • Computing transmissivity-weighted averages
      • Working with shapefiles
      • Error checking for MODFLOW-2005 models
      • Formatting ASCII output arrays
      • How FloPy handles external files for arrays
      • Saving array data to MODFLOW-style binary files
    • Examples from Bakker and others (2016)
      • Basic Flopy example
      • Capture fraction example
  • FAQ
  • Flopy Code
FloPy Documentation
  • Examples Gallery

Examples Gallery

The following examples illustrate the functionality of Flopy. After the tutorials, the examples are the best resource for learning the underlying capabilities of FloPy.

Preprocessing and Discretization

ModelGrid classes demo
Intersecting model grids with shapes
Intersecting rasters with modelgrids using FloPy’s Raster class
Creating Layered Quadtree Grids with GRIDGEN
Triangular mesh example
Voronoi Grid and MODFLOW 6 Flow and Transport Example

Postprocessing and Visualization

Making Cross Sections of Your Model
Making Maps of Your Model
Plotting Model Arrays and Results
Plotting SWR Process Results
Postprocessing head results from MODFLOW
ZoneBudget Example

Exporting data

Demo of netCDF and shapefile export capabilities within the flopy export module.
Shapefile export demo
VTK Export Demo

MODFLOW 6 examples

Flopy MODFLOW 6 (MF6) Support
Creating a Simple MODFLOW 6 Model with Flopy
Creating a Complex MODFLOW 6 Model with Flopy
Demo of the local grid refinement (LGR) utility
Observations, time series and time array series

MODFLOW USG examples

MODFLOW-USG CLN package demo
MODFLOW-USG Freyberg demo
MODFLOW-USG: Discontinuous water table configuration over a stairway impervious base

MODFLOW-2005/MODFLOW-NWT examples

FloPy working stack demo
MODFLOW-2005 Basic stress packages
Lake Package Example
Working with the Multi-node Well (MNW2) Package
SFR package Prudic and others (2004) example
Loading and querying an SFR2 Package dataset
Unsaturated Zone Flow (UZF) Package demo
Flopy Drain Return (DRT) capabilities
Working with MODFLOW-NWT v 1.1 option blocks
SWI2 Example 1. Rotating Interface
SWI2 Example 4. Upconing Below a Pumping Well in a Two-Aquifer Island System
Simple water-table solution with recharge

MODPATH examples

Working with MODPATH 6
Creating a MODPATH 7 simulation
Using MODPATH 7 with structured grids
Using MODPATH 7 with structured grids (transient example)
Using MODPATH 7 with a DISV unstructured model
Using MODPATH 7: DISV quadpatch example

MT3D and SEAWAT

MT3D-USGS Example
MT3D-USGS: Transport with the SFR/LAK/UZF Packages (SFT/LKT/UZT), and chemical reactions (RCT)
MT3DMS Example Problems
Using FloPy to simplify the use of the MT3DMS SSM package
Henry Saltwater Intrusion Problem

PEST support

Support for PEST

Other Flopy features

Computing transmissivity-weighted averages
Working with shapefiles
Error checking for MODFLOW-2005 models
Formatting ASCII output arrays
How FloPy handles external files for arrays
Saving array data to MODFLOW-style binary files

Examples from Bakker and others (2016)

Bakker, Mark, Post, Vincent, 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. 733–739, https://doi.org/10.1111/gwat.12413.

Basic Flopy example
Capture fraction example
Previous Next

Built with Sphinx using a theme provided by Read the Docs.