Lattice Boltzmann approach for complex nonequilibrium flows