function vapourQuality input ThermodynamicState state "Thermodynamic state record"; output MassFraction x = state.x "Vapour quality"; end vapourQuality;