Turbulent flow in supersonic and hypersonic nozzles