MaterialsAtlas Docs

Phase Diagram Generator

App slug: phase-diagram Category: Experimentalist Tools

The Phase Diagram Generator builds a convex-hull phase diagram for a selected chemical system using Materials Project entries and pymatgen. It can also evaluate user-submitted candidate phases by inserting them into the phase diagram and computing their energy above hull.

This app is designed for experimental materials scientists who want a quick stability map similar in spirit to OQMD-style phase-diagram tools, but using Materials Project data as the current backend source.

What The App Does

The app can:

Inputs

Chemical System

Enter a chemical system using chemsys=.

chemsys=Li-Fe-O

You can also enter the chemical system alone:

Li-Fe-O

The first version supports two, three, or four elements. Binary and ternary systems are the best suited for interactive plots.

Optional Candidate Phase

To evaluate one candidate:

chemsys=Li-Fe-O
formula=LiFeO2
formation_energy=-1.55

Candidate energies can be supplied as:

formation_energy=-1.55
energy_per_atom=-6.20
total_energy=-24.8

You can also add candidates using compact lines:

chemsys=Li-Fe-O
candidate=LiFeO2,-1.55
candidate=Li2FeO3,-1.42

For compact candidate=Formula,energy lines, the dropdown Default candidate energy type controls whether the number is interpreted as formation energy per atom, total energy per atom, or total energy.

Candidate CSV

Optional CSV columns:

ColumnMeaning
formula or compositionCandidate formula
formation_energyFormation energy per atom
formation_energy_per_atomFormation energy per atom
energy_per_atomTotal energy per atom
total_energyTotal formula/cell energy
energyUses the selected default candidate energy type

Example:

formula,formation_energy
LiFeO2,-1.55
Li2FeO3,-1.42

Algorithm Summary

The backend workflow is:

1. Parse the chemical system. 2. Query Materials Project entries for the chemical system using mp-api. 3. Build a pymatgen PhaseDiagram from the MP entries. 4. Convert optional candidate phases into ComputedEntry objects. 5. Convert candidate formation energies to total energies using pymatgen elemental references. 6. Rebuild the phase diagram with MP entries plus user candidates. 7. Compute energy above hull for stable, near-hull, and candidate entries. 8. Compute decomposition products for unstable candidates. 9. Export tables, JSON, and an HTML phase-diagram plot.

Outputs

FileDescription
phase-diagram.htmlInteractive pymatgen/Plotly phase diagram when available
phase-diagram-summary.csvCandidate, stable, and near-hull phase summary table
phase-diagram-stable-phases.csvStable hull phases
phase-diagram-unstable-near-hull.csvLowest-energy unstable MP phases
phase-diagram-candidates.csvUser candidate hull results
phase-diagram-data.jsonMachine-readable result data

Important Notes

This app currently uses Materials Project, not OQMD, as the entry source.

The hull is only as reliable as the energy scale of the entries. If user candidate energies come from a different calculation setup, model, functional, or correction scheme, the absolute energy above hull can be misleading.

For publication-quality results, use internally consistent DFT energies and correction schemes.

Limitations

Acknowledgements

This app uses pymatgen for phase-diagram construction and Materials Project data access through mp-api. Users should cite pymatgen and Materials Project when using the generated results in reports or publications.

All docs SEO hub