-
Notifications
You must be signed in to change notification settings - Fork 3
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
input flexibility set_ds_time rt perioddata #124
Comments
Thanks for the suggestions. Some of the issues are allready implemented, but documentation can probably be improved. Here are some comments:
This is not true. For example, see the following example for yearly stress-period lengths, with one timestep per stress-period (nstp=1):
gives
You are right. It would be nice to choose nstp and tsmult per stress-period.
gives
|
Thanks @rubencalje for the clarification. Indeed I was mistaken about the timestep of 1 day when using the time variable. I guess my input reduces to the wish for a nstp and tsmult per stress period, as can be specified in flopy using the perioddata argument. Specifying perioddata as tuples (perlen, nstp, tsmult) might be more practical than having different iterables as arguments which should then have the same length. |
|
@tomvansteijn, we've created a PR (#257) to both simplify and improve time discretization settings. The new function for setting the time index accepts # basic call signature
ds = nlmod.time.set_ds_time(ds, time, start, steady=True, nstp=1, tsmult=1.0)
# using perlen (note that steady, nstp and tsmult also accept array-likes)
perlen = [365] * 10
ds = nlmod.time.set_ds_time(ds, time=np.cumsum(perlen), start="2010", steady=False, nstp=1, tsmult=1.0) |
Fixed by #257, and available in release v0.7.0 |
Currently the input function
set_ds_time
does not allow for the full flexibilty of the perioddata variable of the Flopy TDIS interface.Usage of the input variable
time
forces timesteps of 1 day, which is not always necessary. Furthermore the timestamp multiplication factortsmult
can only be applied as a constant for all stress periods. It would be useful if the number of timesteps (ntsp) and the multiplication factortsmult
could be specified in conjunction with theperlen
and thetime
variable.In some cases it is more practical to specify a start date and the stress period data in the same format as required by Flopy TDIS. In other cases just the
time
variable should be sufficient, in my experience.The text was updated successfully, but these errors were encountered: