Compressible flow equations based on moving coordinates determined by the wave speed