Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: get_transmissivities() does not work with MODFLOW 6 models #2170

Open
cneyens opened this issue Apr 29, 2024 · 0 comments
Open

bug: get_transmissivities() does not work with MODFLOW 6 models #2170

cneyens opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@cneyens
Copy link

cneyens commented Apr 29, 2024

Describe the bug

flopy.utils.get_transmissivities() does not work with MODFLOW 6 models.

To Reproduce
Pick any MODFLOW 6 example and call flopy.utils.get_transmissivities() which throws an error about missing LPF or UPW package:

import flopy

ws = './mymodel'
name = 'mymodel'
sim = flopy.mf6.MFSimulation(sim_name=name, sim_ws=ws, exe_name='mf6')
gwf = flopy.mf6.ModflowGwf(sim, modelname=name, save_flows=True)
dis = flopy.mf6.ModflowGwfdis(gwf, nrow=10, ncol=10, nlay=1, top = 0, botm = -10)
npf = flopy.mf6.ModflowGwfnpf(gwf, k=10.0, save_specific_discharge=True)

flopy.utils.get_transmissivities(heads=dis.top, m=gwf, r=5, c=5, sctop=-2, scbot=-8)

Expected behavior
flopy.utils.get_transmissivities() recognizes that its m argument is a gwf MODFLOW 6 object and computes the transmissivity from there. Also, the r and c arguments are only required with structured grids.

Additionally, as a feature request: a missing head argument (None) might mean that the system is fully saturated? Right now, we're creating dummy head values equal to the model top to pass as the heads argument to do this.

  • OS: Windows 10
  • Flopy v3.6.0
@cneyens cneyens added the bug label Apr 29, 2024
@wpbonelli wpbonelli added this to the 3.7.0 milestone May 1, 2024
@wpbonelli wpbonelli modified the milestones: 3.7.0, 3.7.1 May 23, 2024
@wpbonelli wpbonelli modified the milestones: 3.7.1, 3.8.0 Jun 17, 2024
@wpbonelli wpbonelli modified the milestones: 3.8.0, 3.8.1 Aug 5, 2024
@wpbonelli wpbonelli self-assigned this Sep 4, 2024
@wpbonelli wpbonelli modified the milestones: 3.8.1, 3.9.1 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants