Pumps are used to transfer energy to an incoming fluid. The pressure or velocity of the fluid increases, which helps the fluid overcome physical barriers such as pipe friction and height changes. Pumps exist in a variety of shapes and sizes, depending on their intended function. When the flowing fluid is a gas, the pump is typically referred to as a compressor.