Compressible Flows

Hey everyone
I am trying to simulate compressible fllows. Can anyone tell me that what is the best method to simulate the flows. I am currently using circular function method but it is highly unastable. I can provide code if someone wants to see where i did wrong
Thanks