-
Notifications
You must be signed in to change notification settings - Fork 0
Added two items from #10
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
base: master
Are you sure you want to change the base?
Conversation
k-horvath-deltares
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you maybe improve the commit? Add two items from... , and what is their purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds power calculation models for hydraulic structures (pump and turbine-generator) and a new multi-IO reservoir component to support the issue RTCTOOLS-943.
Key Changes:
- Added
TurbineGeneratorandPumpPowermodels with power generation/demand calculations - Added
Reservoir_multi_ioto the SimpleRouting package
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/package.order | Added PumpPower and TurbineGenerator to the Structures package order |
| src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/SimpleRouting/Reservoir/package.order | Added Reservoir_multi_io to the Reservoir package order |
| src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/TurbineGenerator.mo | New model for turbine-generator power generation calculations |
| src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/PumpPower.mo | New model for pump power demand calculations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Real dH; | ||
| equation | ||
| dH = HQUp.H - HQDown.H; | ||
| PowerDemand = Q * 1.0/efficiency * dH *1000; |
Copilot
AI
Oct 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expression 1.0/efficiency could cause division by zero if efficiency is zero. Consider adding input validation or documenting the assumption that efficiency must be non-zero.
src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/PumpPower.mo
Outdated
Show resolved
Hide resolved
...rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/TurbineGenerator.mo
Outdated
Show resolved
Hide resolved
src/rtctools_channel_flow/modelica/Deltares/ChannelFlow/Hydraulic/Structures/PumpPower.mo
Outdated
Show resolved
Hide resolved
…lic/Structures/PumpPower.mo Co-authored-by: Copilot <[email protected]>
…lic/Structures/TurbineGenerator.mo Co-authored-by: Copilot <[email protected]>
…lic/Structures/PumpPower.mo Co-authored-by: Copilot <[email protected]>
https://issuetracker.deltares.nl/browse/RTCTOOLS-943