THM phenomena in saturated and unsaturated porous media