Calculation of equilibrium composition Minimize Gibbs free energy under given temperatures, pressures, elemental abundance The advantage is that it is not necessary to consider the details of corresponding chemical reactions, hence modification of numerical code is almost unnecessary when different elemental abundance is given. The definition of Gibbs free energy Parameter Temperature Pressure Chemical potential at standard state