Skip to content

feat: New version of OpenChannel - #85

Merged
dietmarw merged 9 commits into
OpenSimHub:masterfrom
dietmarw:feat/openChannel
Aug 4, 2026
Merged

feat: New version of OpenChannel#85
dietmarw merged 9 commits into
OpenSimHub:masterfrom
dietmarw:feat/openChannel

Conversation

@dietmarw

Copy link
Copy Markdown
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
@dietmarw
dietmarw force-pushed the feat/openChannel branch 2 times, most recently from 06bc635 to 7f62d43 Compare March 19, 2026 07:37
@dietmarw-se
dietmarw-se force-pushed the feat/openChannel branch 2 times, most recently from 80cfbe3 to 26b2064 Compare April 14, 2026 13:52
@dietmarw

Copy link
Copy Markdown
Collaborator Author

I've worked through the suggested code and did adoptions to the rest of the library and think this is now good enough to be merged an in any case better than the existing broken implementation.

@dietmarw
dietmarw marked this pull request as ready for review April 17, 2026 10:23
@dietmarw-se dietmarw-se added this to the v3.1.0 milestone Aug 4, 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'.
…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'.
@dietmarw
dietmarw merged commit 8967552 into OpenSimHub:master Aug 4, 2026
3 checks passed
@dietmarw
dietmarw deleted the feat/openChannel branch August 4, 2026 12:05
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.

2 participants