MF6 SFR perioddata Input Format? #1718
Replies: 8 comments 2 replies
-
I also tried a dict of lists of tuples comprising an integer and a string - e.g., {0: [(102, 'status active'), ... ]} - and got the same error. Thanks, |
Beta Was this translation helpful? Give feedback.
-
How about something like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi @langevin-usgs, I input something similar - Also, perioddata must index the stress period, I think, so I'm not sure how a list of lists could have worked. Jeff |
Beta Was this translation helpful? Give feedback.
-
@langevin-usgs, I tried a variant of that - a dict of lists of lists: Still got the same error.... |
Beta Was this translation helpful? Give feedback.
-
There are a bunch of examples in this folder here: https://github.com/MODFLOW-USGS/modflow6/tree/develop/autotest I was looking at the |
Beta Was this translation helpful? Give feedback.
-
Here's what I've done in before to create perioddata for SFR. period_data = {
i: [(0, "INFLOW", 50),] for i in range(12)
} Maybe the record needs to be in a tuple, even though FloPy should be able to handle any sort of iterable as input in these cases |
Beta Was this translation helpful? Give feedback.
-
Hi @jlarsen-usgs, I copied your code exactly - And got the same error - Maybe it's a bug? I am using Strangely, I am not able to update FloPy using "conda update flopy" because I may not have the 'conda infrastructure' in my virtual environment (StackOverflow). I just discovered this while looking up my conda version. Thanks for your help with this, Jeff |
Beta Was this translation helpful? Give feedback.
-
Flopy 3.3.7 is handling the SFR perioddata with no issues. Thanks for your help @jlarsen-usgs, @langevin-usgs . Jeff |
Beta Was this translation helpful? Give feedback.
-
Hello,
I tried to input what I though to be "stress period data" to the perioddata parameter of flopy.mf6.ModflowGwfsfr - that is, a dict of lists of formatted strings. Here is the python input and output for perioddata (just one stress period here):
Input:
Output:
Here is the error that I get:
My format is wrong but I am having trouble deciphering from the documentation
(https://flopy.readthedocs.io/en/3.3.5/source/flopy.mf6.modflow.mfgwfsfr.html?highlight=sfr)
what is the correct input format. Could you please advise?
Thank you,
Jeff
Beta Was this translation helpful? Give feedback.
All reactions