Unitary framework for hydraulic mathematical models of transient cavitation in pipes: Numerical analysis of 1D and 2D Flow