Numerical analysis of some supersonic viscous flows related to inlet and nozzle systems