A horizontal insulated cylinder has a frictionless piston held against stops by an external force of $500 \mathrm{kN},$ as shown in Fig. $\mathrm{P} 7.173 .$ The piston crosssectional area is $0.5 \mathrm{~m}^{2},$ and the initial volume is $0.25 \mathrm{~m}^{3}$. Argon gas in the cylinder is at $200 \mathrm{kPa}$ $100^{\circ} \mathrm{C}$. A valve is now opened to a line flowing argon at $1.2 \mathrm{MPa}, 200^{\circ} \mathrm{C}$, and gas flows in until the cylinder pressure just balances the external force, at which point the valve is closed. Use constant heat capacity to verify that the final temperature is 645 $\mathrm{K},$ and find the total entropy generation.