Managing water flow in sewage systems, flood defences, and treatment plants requires more than just structural strength.