Nitrogen (N2) gas at 100 kPa and 298 K enters a compressor steadily with a mas flow rate of 2 kg/s. The nitrogen leaves at 800 kPa and 580 K. Asume the compressor is well insulated. Do NOT assume the specific heats of the nitrogen as constant or a linear function of temperature.
Determine:
A) the rate of entropy generation during this process
B) if the process is reversible, irreversible or impossible.