function setState_Tx input Temperature T "Temperature"; input MassFraction x "Vapour quality"; output ThermodynamicState state "thermodynamic state record"; end setState_Tx;