C.V. The water. This is a control mass.
Continuity Eq.: m2 = m1 = m ;
Energy Eq. m(u2 − u1) = 1Q2 - 1W2
Process in cylinder: P = Pfloat (if piston not supported by pin)
We thus need one more property for state 2 and we have one equation namely the energy equation. From the equilibrium pressure the work becomes