Computation of three-dimensional viscous supersonic flow in inlets