Hydraulic calculation of pipe network