A well-insulated piston- cylinder device contains 6kg of superheated R-134a initially at 0.10Mpa and -10 degrees Celsius is compressed to a final state at 0.50mpa and 80 degrees Celsius.
(a) Determine the entropy generation S gen. in KJ/K in the device for this irreversible compression process.
(b) Determine the work required for this compression process in KJ.