Thermodynamics divides energy transformation into two kinds: reversible processes and irreversible processes. A reversible process is one in which this happens.