Compressors are used to compress gases. In fact, compressors use mechanical energy to suck the fluid into themselves at high speed and compress it. As a result of this process, the temperature of the gas being compressed also increases. Typically, the high-pressure gas output from the compressors is passed through a cooling system to reduce the gas temperature.
There are various types of compressors designed for industrial and general use. An air compressor is one type of compressor.
