Turbines, compressors and pumps

In a turbine the stream's fall in enthalpy becomes shaft work, and a compressor or pump needs work equal to the rise it gives, $\dot W = \dot m\,(h_1 - h_2)$ when heat and kinetic energy are small.

From Thermodynamics.