Thermal management of energy and biological systems