flopy icon indicating copy to clipboard operation
flopy copied to clipboard

mf.change_model_ws(etx_model_ws, reset_external=True) not writting external for well package

Open rosskush opened this issue 3 years ago • 5 comments

Howdy again, I have run into an issue when using the new MfUsg object.

In the 3.3.4 release this writes out a .ref file for each stress period for the well file however with 3.3.5 the well file looks like a normal well file with the data stored internally.

ext_model_ws = os.path.join('model_ws','freyberg.usg.ext')
mf.external_path = "."

if os.path.exists(ext_model_ws):
    shutil.rmtree(ext_model_ws)

# change dir and write
mf.change_model_ws(ext_model_ws, reset_external=True)
mf.write_input()

results in: image

It seems to work fine for static packages like the bas, disu and lpf but it also seems to work for drn, and ghb

Here is a link to a working example: https://github.com/rosskush/usg_freyberg

I know there has been some changes to how flopy is handling USG so please let me know if I just missed something.

Thanks!

rosskush avatar Mar 18 '22 21:03 rosskush

@swfwmd - any chance you could have a look at this?

cnicol-gwlogic avatar Mar 18 '22 21:03 cnicol-gwlogic

@cnicol-gwlogic Any thoughts on how to proceed?

jdhughes-dev avatar Jul 19 '22 18:07 jdhughes-dev

@jdhughes-usgs I'll try take a quick look today. If I can get up a quick solution I will. I'm a bit pushed for time is all.

cnicol-gwlogic avatar Jul 19 '22 21:07 cnicol-gwlogic

@cnicol-gwlogic no rush. I was just working on clearing issues today. Thanks.

jdhughes-dev avatar Jul 19 '22 21:07 jdhughes-dev

@jdhughes-usgs @rosskush - fyi yep this will take a bit of work. The MfusgWel load and write stuff is a bit hokey - doesn't take advantage of MFList capability really, and I can see a few other issues with AUX variables. I'll put on my list but it will be a while I'd say. Cheers.

cnicol-gwlogic avatar Jul 19 '22 23:07 cnicol-gwlogic

@jdhughes-usgs @rosskush this should be sorted via PR #1551

cnicol-gwlogic avatar Sep 20 '22 07:09 cnicol-gwlogic

Awesome looking forward to trying it out!

rosskush avatar Sep 20 '22 15:09 rosskush