How Is Thermal Energy Formed