Skip to content

feat: New version of OpenChannel#85

Draft
dietmarw wants to merge 3 commits intoOpenSimHub:masterfrom
dietmarw:feat/openChannel
Draft

feat: New version of OpenChannel#85
dietmarw wants to merge 3 commits intoOpenSimHub:masterfrom
dietmarw:feat/openChannel

Conversation

@dietmarw
Copy link
Collaborator

This is an experiment. The existing OpenChannel model was basically broken. So I used copilot to come up with an alternative. The result seems to work and is much simpler in its implementation then the old KP function based one (which was one of the instructions given).

Things that still need to be done is to investigate for unnecessary "slop" and how it can be integrated with the rest of the library better. For example should the embedded function be isolated. At the same time one should possibly make the configuration of the friction coefficients similar versatile like in the current pipe model (i.e., choice of n_manning, m_manning, p_eps)

@dietmarw dietmarw self-assigned this Mar 18, 2026
@dietmarw dietmarw requested a review from boerrebj March 18, 2026 13:37
@github-actions github-actions bot added the feat label Mar 18, 2026
…function

to improve modularity.

Introduces the option to specify the Manning friction coefficient 'n' or
the Strickler coefficient 'M' (M = 1/n), providing more flexibility for
model configuration.

Simplifies the channel bed slope definition by replacing separate inlet and
outlet bed elevations with a single total elevation difference 'H'.
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