A piston/cylinder system contains superheated vapor initially at 400C and 600 kPa. The system is cooled at constant pressure by exchanging heat to the surroundings until the cylinder contains only saturated liquid. The surroundings are at 25C.
Determine the total entropy generation.