Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. It provides a core set of objects to represent materials (e.g., structures, molecules) and a comprehensive suite of tools to generate in…
Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. It provides a core set of objects to represent materials (e.g., structures, molecules) and a comprehensive suite of tools to generate input files for and parse output files from various electronic structure codes. It is the core analysis code powering the **Materials Project**.
Pymatgen (Python Materials Genomics) is a robust, open-source Python library for materials analysis. It provides a core set of objects to represent materials (e.g., structures, molecules) and a comprehensive suite of tools to generate input files for and parse output files from various electronic structure codes. It is the core analysis code powering the Materials Project.
Scientific domain: Materials science, high-throughput analysis, crystallography Target user community: Computational materials scientists, data scientists
Structure) and molecules (Molecule).MPRester).Pymatgen is typically used as a library within Python scripts or Jupyter notebooks.
from pymatgen.core import Structure
from pymatgen.io.vasp import Poscar
# Load structure from file
structure = Structure.from_file("POSCAR")
# Analyze symmetry
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
sga = SpacegroupAnalyzer(structure)
print(sga.get_space_group_symbol())
# Generate input files
poscar = Poscar(structure)
poscar.write_file("POSCAR_new")
Primary sources:
Confidence: VERIFIED
Verification status: ✅ VERIFIED