Heat transfer in porous media with phase change