A thick-walled insulated metal chamber contains \(n_{i}\) moles of helium at
high pressure
\(P_{i}\). It is connected through a valve with a large, almost empty gasholder
in which the pressure is maintained at a constant value \(P^{\prime}\), very
nearly atmospheric. The valve is opened slightly, and the helium flows slowly
and adiabatically into the gasholder until the pressure on the two sides of
the valve is equalized. Prove that
$$
\frac{n_{f}}{n_{i}}=\frac{h^{\prime}-u_{i}}{h^{\prime}-u_{f}}
$$
where \(n_{f}=\) number of moles of helium left in the chamber, \(u_{i}=\) initial
molar internal energy of helium in the chamber, \(u_{f}=\) final molar internal
energy of helium in the chamber, and \(h^{\prime}=u^{\prime}+P^{\prime} v\)
(where \(u^{\prime}=\) molar internal energy of helium in the gasholder;
\(v^{\prime}=\) molar volume of helium in the gasholder).