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