Support combined supply and drainage #2059
Labels
needs-refinement
Issues that are too large and need refinement
physics
Physical process representation
ribasim-nl
Related to Ribasim NL project
Over Outlets and Pumps in the text below I only mention Outlets for brevity. Related to Deltares/Ribasim-NL#221
For Ribasim-NL we want to model Outlets and enable flow over them in two cases:
min_upstream_level
andmax_downstream_level
,min_upstream_level
andmax_downstream_level
,Now we want to model a single structure that can be used for both cases. We can use two parallel Outlet nodes as done in this test model. This has some issues:
@ghendrickx proposed adding this scenario directly to Ribasim, for instance by having two rows in the static table with the same
control_state
. With this we can set flow for supply OR drainage to avoid double flows. If we were to allow different Q for the two cases we'd also need a way to select the right Q. So perhaps it would be wise to stick to a single Q.This explains the situation in a h-h plot where upstream level (Hu) is on one axis and downstream level (Hd) on the other:

Another way to implement this is to use DiscreteControl with 4 conditions:
If we encode this using the logic table, such that
FTFF
means only condition 2 is true, we can fill in our plot:This would allow us to avoid double flows. One difference with using
min_upstream_level
andmax_downstream_level
is that there are no reduction factors, which may increase simulation time if there is frequent switching between cases. Although we can combine the two approaches. If we havecontrol_state
S
,D
, andS+D
, we can easily determine appropriateflow_rate
for each, and setmin_upstream_level
andmax_downstream_level
as well to still get reduction factors at the edges of our cases. These should then only be set forS
andD
, notS+D
because you don't want to reduce flows when moving fromS+D
toS
orD
.I think the DiscreteControl option is preferable to double Outlets. But in discussing the issues users can have with double Outlets the idea of compound structures came up, so I created #2074 for that.
The text was updated successfully, but these errors were encountered: