Effects of thermal energy on substances