Thermal conductivity in relation to porosity and hardness of terrestrial porous media