Metodología
Construye una línea de gradiente hidráulico secuencial con segmentos declarados de tubería, bomba, pérdida fija y límite de nivel de agua, usando Darcy–Weisbach y pérdidas menores ingresadas. Es un cribado HGL; omite cambios de carga de velocidad y no calcula EGL ni TDH.
Pipe velocity = Q/A; Reynolds number = vD/ν. Darcy factor uses f = 64/Re for laminar flow and Swamee–Jain for turbulent flow.
Major pipe loss uses Darcy–Weisbach; minor loss is ΣK·v²/(2g).
The sequential profile adds entered pump head and subtracts major, minor, and fixed equipment losses. A basin water surface is an explicit downstream HGL boundary.
Elevation is reported separately; pressure head where elevation is entered is downstream HGL minus elevation.
A segment minimum HGL criterion is evaluated once at its downstream station. The optional starting minimum HGL criterion is evaluated at the starting station.
For 2,000 < Re < 4,000, Swamee–Jain is used as a screening approximation and a transitional-flow warning is reported.