Optimal digester sludge circulation and homogenisation