Kinetic energy and thermal energy relationship