Computational techniques and analysis of cavitating-fluid flows