A new technique for the numerical analysis of nonequilibrium flows