A cylinder with a piston restrained by a linear spring contains 2 kg of carbon dioxide at 500 kPa, 400°C. It is cooled to 40°C, at which point the pressure is 300 kPa. Calculate the heat transfer for the process.
C.V. The carbon dioxide, which is a control mass. Continuity
Eq.: m2 – m1 = 0
Remark: We could also have used the ideal gas tget u2 - u1.