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
4
votes
0 answers

Using Flopy to create vtk output

I'm trying to write the model grid from a Modflow model to a vtk output to open in Paraview. I've used Groundwater Vistas and created the MODFLOW - USG (Unstructured Grids) When I try to use the export function I get the following error: Traceback…
Garth Cooper
  • 155
  • 3
3
votes
0 answers

How to track down errors in Flopy created MODFLOW output

Since a few weeks i'm writing writing MODFLOW models with Flopy in Python. I chose to write models in Flopy because of the transparency of Python. However, once in a while my model doesn't run but it doesn't tell me where it goes wrong, that makes…
Dylan_w
  • 472
  • 5
  • 19
2
votes
0 answers

Ambiguous data access for UcnFile (Binary concentration file)

I just went through the SEAWAT tutorial on the flopy website (https://flopy.readthedocs.io/en/latest/_notebooks/tutorial01_seawat.html) and I have the feeling, that when I read the stress periods and timesteps for the concentration, the outputs are…
Thomas
  • 21
  • 1
2
votes
0 answers

Flopy MF6 Transport Budget Inconsistancies

I am working with Flopy (3.3.5) and MF6 (6.2.2) transport to simulate a plume movement towards a creek from an industrial site. I am using a structured regular grid with 6 layers flow and transport are run simultaneously, and the creek is…
2
votes
1 answer

Is it possible to do Modpath7 particle tracking between a child and parent mf6 model using the exchange function with Flopy

I have good results running particle tracking with modpath7 on a modflow6 model using a structured grid. But atm I am running a nested model with an outer and an inner modflow6 flow model and I can only seem to run modpath on either my "childGWF" or…
2
votes
1 answer

Updating a package in a virtual environment with conda

I am trying to update the package flopy, within a virtual environment called flopyenv using the Anaconda Prompt command line. First, I activate the virtual environment using conda activate flopyenv. Then to update flopy, I've tried conda update…
happycampr
  • 49
  • 1
  • 8
2
votes
1 answer

Error when loading existing Modflow Model in Flopy

I want to load an existing mf2005 model into flopy to be able to export the model reuslts in .vtk. The model was created using model muse. import flopy ml =…
user97744
  • 21
  • 2
2
votes
0 answers

How to add rivers in FloPy?

I am working on a steady-state problem and I have a raster with head data values for all rivers.I have to add this to my FloPy code (MODFLOW 6) so I've seen the RIV package and DRN with the hope to find a variable I can use to add the data from my…
Supernova
  • 87
  • 5
2
votes
2 answers

What is the workflow for creating a zone for zone_budget work on the fly?

I have a working model with output. I'm trying to take advantage of flopy in interrogating the results. In specific, I would like to be able to generate (on the fly) zone budget information for specific cells. I can of course go to the trouble of…
Jacob
  • 58
  • 9
2
votes
0 answers

Namefile does not exist for MF/MT3DMS/SEAWAT model

I build a coupled MODFLOW-MT3DMS-SEAWAT model. Similar to this example according to the packages and executable swt_v4 (of course I use a lot more input variables). However when I try to run the model I get the following error: FloPy is using the…
Dylan_w
  • 472
  • 5
  • 19
2
votes
2 answers

Well ID and other comments in stress period data in flopy

I would like to assign a commented out Well ID number to my well file, (also do the same for ghb cells) but I cannot find anything on how to do so. I wrote something to create my own ghb file but if I try to load it back into my flopy mf class, and…
rosskush
  • 29
  • 3
2
votes
1 answer

Error running flopy.modflow.HeadObservation: ValueError: Can't cast from structure to non-structure, except if the structure only has a single field

I am using Flopy to set up a MODFLOW model in Python 2.7. I am trying to add head observations via the HOB package. The following example code is taken directly from the function documentation at https://modflowpy.github.io/flopydoc/mfhob.html: …
Haacker
  • 33
  • 6
2
votes
1 answer

Extract subsidence data from MODFLOW-2000 binary output using FloPy

I am using MODFLOW-2000 to run a land subsidence model. However, the output of the subsidence file is in binary data. Is there any way to use the python script to convert it into text since I am doing hundreds of scenarios for the model.
Z.Cao
  • 35
  • 5
2
votes
2 answers

How to convert a unformatted fortran file(modflow output ) to numpy array

I have a modflow output file with extension hds. Google drive link fora file. Its a unformatted fortran file. I need to convert it to numpy array, I have tried : floattype = 'f4' a = np.fromfile("lake_example.hds",…
Kirubaharan J
  • 2,255
  • 16
  • 23
1
vote
1 answer

Transient vs. Steady-State Simulation in MODFLOW 6 / Flopy

How can I define a MODFLOW6 model to be transient or in steady-state in Flopy. From what I find here here, transient calculations are mandated through the use of stress_period_data. Does that mean that as soon, as one package uses stress_period_data…
Aeonian
  • 25
  • 3
1
2 3 4 5