A compressor takes in 500 kg/min of air at 0.98 bar and 18°C and delivers it at 5.5 bar and 68°C. The diameters of inlet and delivery pipes are respectively 450 mm and 200 mm. The power input is 1000 kW. Determine the rate and direction of heat flow. (Cv = 1.005 kJ/kg°C).