It is the cooling or heating of a gas when it is forced through a valve or porous plug at constant enthalpy.