Numerical analysis of the hydraulic transient in a closed pipe in presence of a bypass valve