Numerical Modeling And Simulation Of Cavitating Flows In Different Regimes