Numerical Simulation and Analysis of Caviating Flows