Phase Diagrams (PDs)
A description of the methodology for constructing and interpreting compositional phase diagrams from the Materials Project (MP) website and API.
Introduction
A phase diagram is a calculation of the thermodynamic phase equilibria of multicomponent systems. It is an important tool in materials science for revealing 1) thermodynamic stability of compounds, 2) predicted equilibrium chemical reactions, and 3) processing conditions for synthesizing materials. However, the experimental determination of a phase diagram is an extremely time-consuming process, requiring careful synthesis and characterization of all phases in a chemical system.
Computational modeling tools, such as the density functional theory (DFT) methods used by the Materials Project, can accelerate compositional phase diagram construction significantly. By calculating the energies of all known compounds in a given chemical system (e.g. the lithium/iron/oxygen chemical system, Li-Fe-O), we can determine the phase diagram for that system at a temperature of K and pressure of atm. Furthermore, for systems comprised of predominantly solid phases open with respect to a gaseous element, approximations can be made as to the finite temperature and pressure phase diagrams.
In this section, we will describe the theory/methodology behind the calculation of compositional phase diagrams.
Methodology
This section will discuss how to construct phase diagrams from DFT-calculated energies. This is exact process done by the Materials Project (MP) for computing formation energies, thermodynamic stability, and phase diagrams. This methodology has been implemented in Python within the pymatgen package. Please see Code (pymatgen)for brief examples of how to build phase diagrams on your own.
Calculating formation energy
The formation energy, , is the energy change upon reacting to form a phase of interest from its constituent components. The components typically used are the constituent elements. For a phase composed of components indexed by , the formation energy can be calculated as follows:
where is the total energy of the phase of interest, is the total number of moles of component , and is the total energy of component . Note that is often referred to as the chemical potential of the component, however, this is only rigorously true when working with Gibbs free energies, .
Example:
For barium titanate, BaTiO, the formation energy would be calculated as:
Typically, formation energies are normalized on a per-atom basis by dividing by the number of atoms in 1 mole of formula. For example, for BaTiO, the normalized per-atom formation energy would be calculated by dividing the above by 5 atoms.
Constructing the compositional phase diagram
The convex hull approach
To construct a phase diagram, one needs to compare the relative thermodynamic stability of phases belonging to the system using an appropriate free energy model. For an isothermal, isobaric, closed system, the relevant thermodynamic potential is the Gibbs free energy, , which can be expressed as a Legendre transform of the enthalpy, , and internal energy, , as follows:
where is the temperature of the system, is the entropy of the system, is the pressure of the system, is the volume of the system, and is the number of atoms of species in the system.
For systems comprising primarily of condensed phases, the term can be neglected and at 0K, the expression for simplifies to just . Normalizing with respect to the total number of particles in the system, we obtain . By taking the convex hull [2] of for all phases belonging to the M-component system and projecting the stable nodes into the - dimension composition space, one can obtain the 0 K phase diagram for the closed system at constant pressure. The convex hull of a set of points is the smallest convex set containing the points. For instance, to construct a 0 K, closed system phase diagram, the convex hull is taken on the set of points in space with being related to the other composition variables by .
Evaluating thermodynamic stability
Figure 2 is an example of a calculated binary A-X phase diagram at 0 K and 0 atm. Binary phase diagrams show the complete convex hull for the system, where the y-axis is the formation energy per atom and the x-axis is the composition.
The blue lines show the convex hull construction, which connects stable phases (circles). Unstable phases will always appear above the convex hull line (squares); one measure of the thermodynamic stability of an arbitrary compound is its distance from the convex hull line (), which predicts the decomposition energy of that phase into the most stable phases.
Accuracy of Calculated Phase Diagrams
In general, we can expect that compositional phase diagrams comprising of predominantly solid phases to be reproduced fairly well by our calculations. However, it should be noted that there are inherent limitations in accuracy in the DFT calculated energies. Furthermore, our calculated phase diagrams are at 0 K and 0 atm, and differences with non-zero temperature phase diagrams are to be expected.
For grand potential phase diagrams, further approximations are made as to the entropic contributions [2]. They are therefore expected to be less accurate, but nonetheless provide useful insights on general trends.
Code (pymatgen)
While the Materials Project website has a phase diagram app (https://materialsproject.org/phasediagram), and PhaseDiagram
objects can also be obtained directly from the API (Phase Diagram), two code snippets are provided below that show how to use the API and pymatgen to construct and plot your own phase diagrams with Python.
GGA/GGA+U
Constructing mixed GGA/GGA+U phase diagrams can be done directly with the corrected ComputedStructureEntry
objects from the API.
GGA/GGA+U/R2SCAN
Constructing a mixed GGA/GGA+U/R2SCAN phase diagram requires corrections to be reapplied locally. This is because the corrected ComputedStructureEntry
object obtained from the thermodynamic data endpoint of the API for a given material is from its home chemical system phase diagram (i.e. Si-O
for SiO2, or Li-Fe-O
for Li2FeO3).
Unlike the previous GGA/GGA+U only mixing scheme, the updated scheme does not guarantee the same correction to an entry in phase diagrams of different chemical systems. In other words, the energy correction applied to the entry for silicon (mp-149) in the Si-O phase diagram is not guaranteed to be the same for the one in the Si-O-P phase diagram.
For more details on the correction scheme and its logic, see the Energy Corrections section or the original publication [4].
Citations
References
[1] Bartel, C.J. Review of computational approaches to predict the thermodynamic stability of inorganic solids. J Mater Sci 57, 10475–10498 (2022). https://doi.org/10.1007/s10853-022-06915-4
[2] V. Raghavan, Fe-Li-O Phase Diagram, ASM Alloy Phase Diagrams Center, P. Villars, editor-in-chief; H. Okamoto and K. Cenzual, section editors; http://www1.asminternational.org/AsmEnterprise/APD, ASM International, Materials Park, OH, 2006.
[3]: https://dx.doi.org/10.1145/235815.235821
[4] Kingsbury, R.S., Rosen, A.S., Gupta, A.S. et al. A flexible and scalable scheme for mixing computed formation energies from different levels of theory. npj Comput Mater 8, 195 (2022). https://doi.org/10.1038/s41524-022-00881-w
Last updated