1. The problem statement, all variables and given/known data An insulated and initially empty 0.7m^3 tank is connected by a valve to a line flowing air at 50degreesC and 200kPa. The valve is opened until the tank is filled, and then the valve is closed. The insulation is then removed from the tank, and a 20degreeC heat sink cools the tank until the air inside reaches a temperature of 30degreesC. 1) What is the final mass of air in the tank? 2) How much entropy is generated during the cooling of the tank? 2. Relevant equations 1) PV=mRT 2) S2-S1=Cp*ln(T2/T1)-R*ln(P2/P1) m(s2-s1)=Integral(dQ/T)+S-gen 3. The attempt at a solution 1) I tried figuring out the final temperature, and since V and R are constant, I got P2=P1*T2/T1=200kPa*303K/323K=187.62kPa. I then used this P to get m=PV/RT. So m=(187.62*0.7)/(0.287*323)=1.417kg.. Is this right? 2) Using the first equation, I get 1.004*ln(303/323)-0.287*ln(187.62/200)=-0.0458.. But this is wrong right since it shouldn't be negative? Then I try putting it into the second equation, 1.417*-0.0458 - Integral(dQ/303)=S-gen.. but I don't know how to do the Integral and dQ part... any help? THANKS!!