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

Python 2.7 sub process

I have a python script that uses a package called flopy. My script generates a series of inputs to a fortran executable. Flopy writes these into text files and then calls the fortran executable, which uses the text files to run a model. I'm using…
Neil Thomas
  • 31
  • 1
  • 2
0
votes
0 answers

Is there a layer identifier for cell id's in the DISU package of Flopy / MODFLOW?

For structered grids (DIS) Flopy creates arrays of parameters (e.g. hydraulic conductivity), one for each layer within the model. For unstructured grids (DISU), it sets up lists containing the parameters for all(!) cells, only identifiable with the…
Aeonian
  • 25
  • 3
0
votes
0 answers

Extract Water heads in MODFLOW-NWT using FloPy

I am using MODFLOW-NWT using FloPy to model groundwater system. I am aiming to extract the water heads for each kper (stress period). I used this code (below) to read all heads,but not sure how to save each heads for each period and calculate the…
Dima
  • 1
  • 3
0
votes
0 answers

Receiving head data for pumping wells

I am using Flopy library to run an existing model and change the content of .wel file. I have executed my simulation model and received calculated heads using flopy.get-data() it exactly matches the cells and the aquifer map as you know! But I need…
0
votes
0 answers

Flopy: error about flopy3_modpath7_unstructured_example

When I was studying flopy's example flopy3_modpath7_unstructured_example.ipynb, Run the following section and a warning appears,causing an error to occur in the following code disv =…
0
votes
0 answers

Getting error while running an existing modflow model using flopy package

I am using flopy package to change the content of well package and then to run the model and finally get all output heads. I have loaded my model successfully and I have changed the content of well package but when it comes to running the model…
0
votes
0 answers

FloPy: Have trouble with the usage of Mt3DMS

I tried to reproduce the study area, but the problem of this crashed me. MT3DMS - Modular 3-D Multi-Species Transport Model [Version 5.30] Developed at University of Alabama for U.S. Department of Defense Using NAME File: mt.nam …
0
votes
0 answers

Flopy/python package while running well package

I am using flopy package to run an existing model which I have change the content of well package in but when it comes to running well package in my code I got an error but I can't find the reason. Could you please help me in this regard? Thanks in…
0
votes
0 answers

Flopy error: Cannot find gridgen binary executable

Trying to call gridgen executable file using below codes: # use of gridgen # https://github.com/modflowpy/flopy/blob/5fcf9709ec8a655106c57d55657c47b1d4987812/examples/Notebooks/flopy3_gridgen.ipynb # setup the active domain from…
0
votes
2 answers

Error extracting heads from MODFLOW-USG binary with flopy

I'm trying to extract the simulated heads from a MODFLOW-USG binary head-save file, so I'm using flopy as follows: modelname = 'Model' import flopy.utils.binaryfile as bf # Create the headfile object headobj = bf.HeadFile(modelname+'.hds') head =…
Tami
  • 11
  • 1
0
votes
0 answers

FloPy 3.3.5 Load model error "list index out of range"

thanks for reading. I am currently trying to load a MODFLOW6 simulation with the FloPy library and when migrating to version 3.3.5 I receive the following error "IndexError: list index out of range". The next code run succesfully in FloPy version…
0
votes
0 answers

Error reading CHD package as a flopy.utils.util_list.MfList

I am trying to load in a CHD package for a usg model and I am getting an error stating I am passing a float instead of an int, when I use the to_array method. Does anyone know how to solve this? Here is my code: ''' mu =…
emma_kth
  • 25
  • 2
0
votes
1 answer

Meeting ValueError while using flopy to load a MODFLOW-USG model

I am using FloPy to load an existing MODFLOW-USG model. load_model = flopy.modflow.Modflow.load('HTHModel',model_ws='model_ws',version='mfusg',exe_name='exe_name', verbose = True, check = False) In the process of loading…
张鹏伟
  • 1
  • 2
0
votes
2 answers

VTK export of MODFLOW 6 data sets using Flopy?

I know that Flopy can export VTK files from a MF2005 dataset (e.g. flopy3_vtk_export.ipynb), however I tried to get that example to work with a MODFLOW 6 dataset and a few code edits, but had no success. Does Flopy actually support VTK export from…
0
votes
0 answers

Best way to work with rotated model grids (MF6) in Flopy?

I want to model a system that consist of glacifluvial sediment deposited in a NE, SW orientation (this is also the direction of GW-flow), using MF6 disv-grid through Flopy. In order to reduce risk of numerical instability, I want to rotate the model…
nikobenho
  • 47
  • 1
  • 6