Computer simulation of nonequilibrium processes