Engineering approach to the prediction of shock patterns in bounded high-speed flows