Numerical and theoretical investigation of the high-speed compressible supercavitating flows