Replies: 1 comment 3 replies
-
In MF6, you can get the heads data in a much easier way than in mf2005 and then get the stored times. For example, if your groundwater flow model object is called
You can see whether totim=101 is indeed stored. You are using a time step multiplier of 1.2, which means that the times are likely not nice round numbers. Another problem can be roundoff errors. But you can find out all those by using the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm following MODFLOW Tutorial 2: Unconfined Transient Flow Model with modflow6 (modflow2005 is used in the tutorial). The simulations are run successfully, but when I tried to plot the results for different time step, an error occurred as "Exception: totim value (101.0) not found in file..."
I've tested the plotting code with the results by modflow2005 and it works good. So I was wondering is there anything wrong with my code used here and is there any difference between modflow6 and 2005 when processing timestep information of the results?
The time discretization I used for the simulations is:
#stress period (for time variant model)
nper = 3 #total stress period
pdata1 = (1,1,1.0) #perlen,nstp,tsmult
pdata2 = (100, 100, 1.2)
pdata3 = (100, 100, 1.2)
steady = [True, False, False] #True for steady-state sim, False for time-variant sim
#time discretization
tdis = fp.mf6.ModflowTdis(sim, time_units = 'DAYS', nper = nper, perioddata = (pdata1,pdata2,pdata3))
And the plot code I use is:
#plot
fname = os.path.join(modelws, f"{modelname}.hds") #access the output head file
headobj = fp.utils.binaryfile.HeadFile(fname)
head = headobj.get_data(mflay = 0)
#headobj.list_records()
#times = headobj.get_times()
rec = headobj.get_data(totim=101.)
Then I checked the list_record of the simulated water head, it does contain the time step information I requested, as:
The error information then occurred:
Beta Was this translation helpful? Give feedback.
All reactions