How a compressor work? 3D model to explain the same.

source