Skip to content

feat: Adds creek intake to SurgeTank model#84

Open
dietmarw wants to merge 6 commits intoOpenSimHub:masterfrom
dietmarw:feat/CreekIntake
Open

feat: Adds creek intake to SurgeTank model#84
dietmarw wants to merge 6 commits intoOpenSimHub:masterfrom
dietmarw:feat/CreekIntake

Conversation

@dietmarw
Copy link
Collaborator

Implements a new feature to allow modeling of lateral water inflows, such as creeks or groundwater seepage, into a surge tank. This enhances the realism and applicability of the SurgeTank component in hydropower simulations.

  • SurgeTank Model: Introduces a useCreekIntake parameter that, when activated, exposes a new creek connector. The H_creek parameter defines the height of this intake. The model's mass balance equation is updated to correctly include the creek inflow.
  • New Example: Includes SimpleValveWithCreek, a new example model demonstrating how to utilize the creek intake feature.
  • Refinements: Incorporates refactoring for cleaner code in the SurgeTank model, updates the text placement on the Surge icon, and removes an outdated literature reference from the documentation.

Make the height of the creek intake configurable

Correct the pressure calculation of the creek intake

Updated parameter names and add example

Use conditional internal connector

moves mdot to general mdot equation

use if and connector

Use modifications for conditional equations.

Removed BottomVolume again.
@dietmarw dietmarw self-assigned this Mar 18, 2026
@dietmarw dietmarw requested a review from boerrebj March 18, 2026 12:59
@github-actions github-actions bot added the feat label Mar 18, 2026
@dietmarw dietmarw added this to the v3.1.0 milestone Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant