Predicting dispersion in porous media