-
|
I would like to change a time-varying boundary condition (in my case: tsandhstar) after the model has been created. How can this be done? (Originally asked here, but moved to this new discussion.) |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 10 replies
-
|
Consider the model that was suggested in Discussion mbakker7/ttim#97, which is a cross-sectional model with a river with a leaky bottom on the left and an aquifer with a semi-confining top on the right. The head in the river goes up from 0 to 1 at time t=0, as specified with The question now is, how can the user change the head variation after the model has been created? Every model has an attribute After this change, the river stage in the model varies according to the new definition. The same works on a copy of the model. Note that to make a copy of a model, you should use Final comment: changing the time variation of an element (like a well or line-sink) rather than an inhomogeneity cannot be done in the same way at the moment. I think this would be useful, so I opened Issue #107. |
Beta Was this translation helpful? Give feedback.
-
|
@MattBrst if you would be interested to write the above answer up as an |
Beta Was this translation helpful? Give feedback.
-
|
@mbakker7: Thank you for your support so far. Is there a way to use the land shorthand in copied models instead of having to use the ml.aq.inhomdict["landpart"] expression for further actions? I'll illustrate my question with some more code which is a combination of mbakker7/ttim#97 and mbakker7/ttim#106: |
Beta Was this translation helpful? Give feedback.
Consider the model that was suggested in Discussion mbakker7/ttim#97, which is a cross-sectional model with a river with a leaky bottom on the left and an aquifer with a semi-confining top on the right. The head in the river goes up from 0 to 1 at time t=0, as specified with
tsandhstar(note that I changed the names somewhat to avoid confusion):