Apply energy, entropy, chemical potential, and equilibrium to melting, reactions, phase stability, and refining decisions.