Questions tagged [flopy]

Flopy is a Python package for creating, running and post-processing MODFLOW-based models.

About FloPy

FloPy is a package for pre- and post-processing MODFLOW-based models with python. FloPy includes support for MODFLOW 6, MODFLOW-2005, MODFLOW-NWT, MODFLOW-USG, and MODFLOW-2000. Other supported MODFLOW-based models include MODPATH (version 6 and 7), MT3DMS, MT3D-USGS, and SEAWAT. More information on MODFLOW-based models can be found on the MODFLOW homepage.

Latest Stable Release

FloPy version 3.29 - 19 February 2018

Resources

69 questions
1
vote
1 answer

Multi-layer well screen in Flopy

I want to implement wells that screen several layers in the model domain. However, when setting up the wel package in Flopy, only one layer can be entered in the stress period data of each well, as shown in the Flopy example below: # Create the well…
Aeonian
  • 25
  • 3
1
vote
0 answers

Want to create flow arrows and export them to VTK

I was able to import a model from a MODFLOW 6 simulation to FloPy and export it to VTK files, but I need to generate flow vectors to be able to visualize them, is there any way to do that with FloPy?
1
vote
0 answers

How to get saturation in a unsaturated model MODFLOW-USG?

I'm a beginner in FloPy and I'm working with a unsatured model in MODFLOW-USG (using Richards equation), and I have the output files (.hds, .ddn, .cbb). I need to export saturation of unsatured cells (a parameter between 0 and 1) but I can't find…
kdemierres
  • 11
  • 1
1
vote
0 answers

How to create SFR input for a MF6 DISV grid in Flopy?

I'm creating a MF6 disv-grid model in Flopy and want to represent a creek using the SFR package. Does anyone have experience adding SFR input to a MF6 DISV grid from a shapefile (or Shapely LineString)? I've tried using the SFRmaker package. But…
nikobenho
  • 47
  • 1
  • 6
1
vote
1 answer

FloPy: 'head' is not recognized as an internal or external command, operable program or batch file

I am trying to run the flopy3_modflow_boundaries example from the FloPy Jupyter Notebook. The notebooks have worked perfectly well for earlier examples (including building, displaying images, running a MODFLOW-NWT model, and viewing the results...so…
1
vote
0 answers

WinError 183 for MODFLOW executable

I am attempting to flopy to build a MODFLOW 6 model, using the tutorial I found online from Hatari Labs 1 as a starting point. When I run the code, I get the following error message. FileExistsError: [WinError 183] Cannot create a file when that…
Ironblaze
  • 11
  • 2
1
vote
1 answer

Writing a .gsf file for a MODFLOW USG model built with FloPy

I've built a MODFLOW USG-Transport model in FloPY (quadtree grid using Gridgen) and I want to be able to open it in a GUI such as Vistas so that others who don't use FloPy can use it. I need a .gsf file to be able to do that. I tried using the PEST…
Em_W
  • 11
  • 1
1
vote
1 answer

Automatic option for moving the water based on DEM in MODFLOW 6

Is there any automatic option in MODFLOW6-FloPy to route the rejected infiltration from the UZF cells to the SFR reaches based on the DEM and grid cells elevations?
1
vote
0 answers

Error reading SFR Budget File with sfroutputfile Module of flopy

I am using the sfroutputfile module in flopy to read the SFR budget output file to a pandas dataframe. The code shown below worked under a previous build of flopy (v3.2.12) executed with python27. Trying to execute the code again with Python3 and…
cmc104
  • 13
  • 3
1
vote
1 answer

Flopy-generated shapefile not accounting for MODFLOW DIS lenuni value?

I've used Flopy to generate a shapefile of polygon features representing MODFLOW River Package features. However, the size of the grid cell polygon features in the shapefile are 3.28 times larger than they should be. The length units of my model are…
gt3
  • 35
  • 5
1
vote
1 answer

Flopy code for vertical conductance (vcont) bcf file

I have a two layer model. The top layer in unconfined and the bottom layer is confined. I can not seem to get my flopy models vertical conductance to match the results of a PMWIN model where it is computed automatically within the program. Here is…
Under2
  • 23
  • 3
1
vote
1 answer

How would I get the number of stress periods in a MODFLOW 6 simulation?

I can read in an existing MODFLOW 6 simulation using flopy.mf6.MFSimulation.load. Now I want to find out how many stress periods it has, as an integer, as defined by nper in the tdis package. What's the easiest way to do this?
unjedai
  • 15
  • 6
1
vote
1 answer

flopy get_rc() not working for rotated grid

I am setting up my model spatial reference as follows: m = flopy.modflow.Modflow.load(nam, verbose=True,load_only=['dis']) x_offset = 963091.522224#x lower limit (SW corner) y_offset = 9280278.473164#y lower limit (SW corner) rot = 35.0#…
1
vote
1 answer

Extract heads from MODFLOW-USG binary output using flopy

I am looking for a method to extract the simulated heads from a MODFLOW-USG binary head-save file. Flopy appears to support the operation using the flopy.utils.binaryfile Module, but I cannot get a simple test to work. The code below should return a…
Jeff
  • 31
  • 2
  • 6
1
vote
1 answer

Why is Flopy giving the same results?

I tried to use flopy, so I could try running some optimization procedures with python and modflow. Modflow requires a number of data to work with and we provide that info using different files. We provide the input and flopy runs modflow My trouble…
max_force
  • 769
  • 6
  • 12