Skip to content

Fix headloss bugs - #49

Open
dgilman wants to merge 2 commits into
IdahoLabResearch:mainfrom
dgilman:fix-headloss-bugs
Open

dgilman wants to merge 2 commits into
IdahoLabResearch:mainfrom
dgilman:fix-headloss-bugs

Conversation

@dgilman

@dgilman dgilman commented Nov 11, 2026

Copy link
Copy Markdown

Claude found these, I can't comment on the accuracy at all, but they all sound plausible - mixed up units, wrong order of operations? Classic mistakes.

dgilman and others added 2 commits November 11, 2026 09:39
The Dunlop cubic interpolation used epsilon / 3.7 * D, which multiplies
by D. The relative roughness term is epsilon / (3.7 * D), as in the
Swamee-Jain branch above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
max_headloss_allowed is a percent of the head, not a length.
us_to_si_conversion does not convert it, but si_to_us_conversion divided
it by ft_to_m, so the value reported with US units was 3.28 times too
large.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant