The diffusive transport of ions in two classes of porous media was studied as a function of fluid saturation and wetting properties. A lattice Boltzmann method was used to model phase separation of a binary mixture, including wetting effects, in porous