Node Convergence
Introduction
At each iteration of
SWMM 5 Code
// --- compute new depth for all non-outfall nodes and determine if
// depth change from previous iteration is below tolerance
for ( i = 0; i < Nobjects[NODE]; i++ )
{
if ( Node[i].type == OUTFALL ) continue;
yOld = Node[i].newDepth;
setNodeDepth(i, dt);
Xnode[i].converged = TRUE;
if ( fabs(yOld - Node[i].newDepth) > STOP_TOL )
{
Node[i].convergence = yOld - Node[i].newDepth; // (5.0.015 - RD)
Node[i].totalIters++; // (5.0.015 - RD
Converged = FALSE;
Xnode[i].converged = FALSE;
}
else if ( Steps > MINSTEPS ) nodeBypass=nodeBypass+1.0;
}