Adiabatic compression is one in which