the entire discharge flow in a high side , vertical , hermetic rotary compressor is directed into the oil sump which generates foam for sound attenuation and heats the oil to reduce its viscosity and to drive off refrigerant dissolved in the oil .