Numerical Simulations of Subsonic and Transonic Open-Cavity Flows