-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Say in a model we make a selection of (non UserDemand) connector nodes, such that for each of these connector nodes the connected Basins are connected to at most one of these selected connector nodes. Say we eliminate the state associated with the flow trough the selected connector nodes. Then within the rhs we have to solve for these states.
Say for one of the selected connector nodes
Let's now look at what we have to do in in water_balance!
. For each selected connector node, we know the implicit state tprev
, and we have to know it at the input t
. Thus we have to solve the above scalar ODE on the interval [tprev, t]
in a differentiable way. I'm quite hopeful that this would work when using ForwardDiff
. Note also that the ODEs for the selected connector nodes can be solved in parallel.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status