Thermodynamics provides insight into the internal energy of a system and the energy interaction with its surroundings. This relies on the local thermal equilibrium of a system.