Variable volume view cell for phase equilibrium measurments