Numerical Simulation of Cavitation Flows Based on Their Hydrodynamic Similarity