A rigid tank of volume 0.63 m3 initially has some air inside at0.5 bar and 300 K. A hole develops in the wall, and air from thesurroundings at 1 bar, 300 K flows in until the pressure in thetank reaches 1 bar. Heat transfer between the contents of the tankand the surroundings is negligible. Determine the final temperaturein the tank, in K. What is the entropy generation of theprocess?
(Please treat the air as ideal gas with cp=1.001 kJ/kg?K andcv=0.714 kJ/kg?K)