mechanical to thermal energy