2-D and 3-D numerical simulation of a supersonic inlet flowfield