Dynamic simulation of supersonic inlet and engine