Skip to content

Fix/issue 1 junction surface area#5

Open
wiesnerfriedman wants to merge 6 commits into
SWMM-Project:swmm6_relfrom
wiesnerfriedman:fix/issue-1-junction-surface-area
Open

Fix/issue 1 junction surface area#5
wiesnerfriedman wants to merge 6 commits into
SWMM-Project:swmm6_relfrom
wiesnerfriedman:fix/issue-1-junction-surface-area

Conversation

@wiesnerfriedman
Copy link
Copy Markdown

Node::getSurfArea returns MIN_SURFAREA as a constant for non-storage nodes, which gets added to conduit half-areas instead of acting as a floor. This inflates junction surface area, damping depth response. Fix moves the floor to DWSolver::setNodeDepth as max(surfArea, MIN_SURFAREA).

…Node, wire option into DWSolver with unit conversion, add .inp-driven regression tests

Phase 1: Non-storage getSurfArea() returns 0.0 (physical area only)
Phase 2: Storage getSurfArea() purely geometric (no MIN_SURFAREA clamp)
         Wire MIN_SURFAREA/HEAD_TOL options into DWSolver with UCF conversion
Phase 3: Add minimal_conduit.inp fixture and DWNodeContinuity tests
         (DepthRisesWithForcedLateralInflow, MultipleStepsAccumulateDepth)

All 61 routing + 21 site-drainage tests pass.
@wiesnerfriedman wiesnerfriedman force-pushed the fix/issue-1-junction-surface-area branch from dac366e to 8f75098 Compare April 21, 2026 02:22
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