returns the vapour quality
function vapourQuality input ThermodynamicState state; output MassFraction x; end vapourQuality;