What problem does it solve?
Pymatgen eliminates the repetitive, error-prone manual effort of parsing crystal structure files and performing standard materials-analysis tasks, so you can get from raw structural data to scientifically useful results.
Core Features & Use Cases
- Crystal structure handling & transformations: Create, read, manipulate, and convert structures across many formats, then apply common transformations like supercells, substitutions, and primitive/conventional cell operations.
- Structure analysis: Compute space group/symmetry, symmetry-equivalent site groups, coordination environments, neighbor lists, and distance matrices.
- Materials-science workflows: Build phase diagrams and evaluate stability, analyze electronic structure (band structure and DOS), and set up/interpret surface and interface analyses.
- Materials Project integration: Retrieve structures and thermodynamic/electronic data using the Materials Project API for faster screening and validation.
- Use Case: You have a CIF/POSCAR for a candidate compound and you need to determine its symmetry, check stability against nearby phases via a phase diagram, and then extract electronic-structure indicators like band gap and DOS features.
Quick Start
Use the pymatgen skill to analyze and summarize a structure file by requesting symmetry, coordination, and exported JSON results for the input structure.