Integrated Thermal Management Framework From Subsoil To Surface