Thermal energy transformations