Water at high pressure expands adiabatically to a lower pressure (throttled) through a partially closed valve. You can vary the inlet temperature and outlet pressure . The exit stream is a vapor-liquid mixture, and the outlet temperature is the saturation temperature at the outlet pressure. An energy balance () determines the fractions of liquid and vapor in the exit stream, which are shown in the bar graph.
Water at high pressure undergoes Joule–Thomson expansion when passing through a throttling valve. This process is assumed to be adiabatic, so the enthalpy change is zero.
, so , where is the inlet enthalpy and is the exit enthalpy.
The saturated vapor enthalpy and the saturated liquid enthalpy are used to determine the fraction of the exit stream that is vapor. For the conditions chosen, liquid and vapor exit the throttle at saturation conditions, because .
The steam quality is calculated by:
so that .
The screencast video at  explains how to use this Demonstration.