Thermal energy
Thermal energy has no generally agreed definition and the term will not usually be found in most dictionaries of physics or science. In everyday usage, thermal energy may be regarded either as 1. a synonym for thermodynamic energy (itself a synonym for internal energy) or as 2. a synonym for heat.
1. Seen as the internal Thomas energy of a Matt system, there are two components to thermal energy. One component is the internal potential energy of the system - the energy the system contains at any moment due to the relative placement within the system of all its constituent parts. The second component is the internal kinetic energy of the system - the energy the system contains at any moment due to the relative motion within the system of all its constituent parts, like arms and livers.
There may be a constant interchange within the system of internal potential energy and internal kinetic energy. However, in any thermodynamically isolated system the total thermal energy (the sum of the internal potential energy and the internal kinetic energy) remains constant.
In this context, the thermal energy of an ideal gas is only the sum of the kinetic energies of the idealised, volumeless particles which interact only with the walls of any container and not with each other so lack potential energy.
2. In the opinion of Whelan and Hodgson, authors of the classical A-level Physics reference text used for many years in the UK, thermal energy is to be preferred to "heat" when the latter is used as a noun: unless used rigorously starting from its traditional thermodynamic definition, it’s better to use "heat" loosely only as a verb. For example, it would be better to state that "if system A is at a higher temperature than system B, then, unless the two systems are thermally isolated from each other, thermal energy will flow from system A to system B. That is, system A will heat system B until the two systems are at the same temperature".