Return thermodynamic state as function of (T, x)
function setState_Tx input Temperature T "Temperature"; input MassFraction x "Vapour quality"; output ThermodynamicState state "Thermodynamic state record"; end setState_Tx;