Heat and mass transfer in porous media