In
thermodynamics, the
internal energy of a
system is energy contained within the system, excluding the kinetic energy of motion of the system as a whole and the potential energy of the system as a whole due to external force fields. It keeps account of the gains and losses of energy of the system that are due to changes in its internal state.