Heatpipes for geothermal heat extraction