Simulation of a Barrel Shock in Underexpanded Supersonic Flow