The most common tool for first principles calculations of compositional phase diagrams is the cluster expansion (CE). In this method, the energy of an atomic configuration is expanded in a set of basis functions, and interaction parameters of pairs, triplets, etc. are fitted to total * kato@bio.aau.dk energies calculated with density functional theory (DFT) . The energy, E, of a configuration, σ, is given as