The application of r function to predicting ternary thermodynamic properties