Again, the valve is at steady state, with kinetic and potential
energies negligible.
Q, Ws, Wb all equal 0.
0=0-0-0+mH3-mH4
H3=H4
H4 is made of both saturated liquid and saturated vapor. An equation
can relate vapor fraction with H.
Solving for x:
This equation is referred to as the lever rule. Notice also that the
denominator is equal to the heat of vaporization.