Skip to content

Allow two incoming control links for Pump and Outlet - #2531

Merged
visr merged 3 commits into
mainfrom
two-control
Aug 18, 2025
Merged

visr merged 3 commits into
mainfrom
two-control

Conversation

@visr

@visr visr commented Aug 18, 2025

Copy link
Copy Markdown
Member

This also adds some custom CSS to freeze the first column of the tables on https://ribasim.org/reference/validation.html to make them easier to read, and clarifies the docs of control links.

@Fati-Mon

Copy link
Copy Markdown
Collaborator

If a link from flow demand to a connector is also called 'control' link, I would recommend to think of renaming to keep it user intuitive. This naming can cause confusion. Also I am not sure if the link from FlowDemand to Connenctor Node is really a "control" in the same sense.

Possible options that I was thinking of:

  • Influence link: emphasizes that the upstream node influences the connector’s behavior
  • Driver link: both demand and control “drive” the connector in some way

We could also make it clear whether the link is expressing a demand/requirement vs. an actual control relationship:

  • Demand link = expresses need (flow demand to connector)
  • Control link = regulates system behavior (control node to connector)

Either way is fine by me. It's just that users may intuitively associate control link with Control node only.
Also, while documentation can clarify the distinction, over-explaining everywhere risks making the docs harder to read.

@visr

visr commented Aug 18, 2025

Copy link
Copy Markdown
Member Author

Yeah I can understand that using control link for demands can be a bit confusing. Though adding another link type just for that can also lead to extra confusion, because now users need to consider which one of 3 link types to choose, even though it doesn't help us to distinguish them at all apart from a better fit of the link type name. Also it would be quite breaking and we'd have to think about how to migrate old models.

In a way control isn't too far of, because if allocation doesn't control anything in the physical layer, then it wouldn't do anything.

This PR just attempts to unblock @guydup and clarify the docs a bit in the process. @Fati-Mon do you think this wording clarifies the current situation? If you want you can create a new issue about link types, I'd prefer not to tie it to this particular PR.

@guydup

guydup commented Aug 19, 2025

Copy link
Copy Markdown

Great work, thanks!

visr added a commit that referenced this pull request Aug 21, 2025
Missed this in #2531.
Also we only logged an error instead of throwing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants