First-Principles Calculations and CALPHAD Modeling of Thermodynamics