I manage a SCADA system and we just put a new pump station online and in the programming of an older station the flow from each pump is calculated as shown below using a 5th order equation with the pool to pool head as the variable :
10 POOL.HEAD=DISCHARG.LVL-CANAL.LVL
20...