pymatgen-io-vasp

Generate and parse VASP input and output files via pymatgen.io.vasp.

16|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pymatgen-io-vasp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen-io-vasp
Source: https://github.com/Hongyu-yu/matsci-ai-skills/tree/main/skills/pymatgen-io-vasp
Command: npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pymatgen-io-vasp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymatgen, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill enables researchers to automate the generation of VASP input files (INCAR, KPOINTS, POSCAR, POTCAR) and to parse common VASP outputs (vasprun.xml, OUTCAR, OSZICAR, PROCAR, CHGCAR, LOCPOT, EIGENVAL) using pymatgen.io.vasp and its input sets.

Core Features & Use Cases

  • Input generation: create standard inputs from a Structure using MPRelaxSet, MPStaticSet, and related VASP IO tools.
  • Output parsing: read vasprun.xml and related results to extract energies, structures, DOS, and band data for analysis.
  • Use Case: accelerate high-throughput workflows by automatically generating inputs and collecting results for large structure libraries.

Quick Start

Generate VASP inputs from a given structure and parse vasprun.xml using pymatgen.

Frequently Asked Questions about pymatgen-io-vasp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate VASP input files from a crystal structure?

Generate VASP inputs like INCAR, KPOINTS, POSCAR, and POTCAR from a Structure object using pymatgen input sets such as MPRelaxSet or MPStaticSet.

How do I parse VASP output files to extract energies and band data?

Parse VASP outputs including vasprun.xml, OUTCAR, and OSZICAR with pymatgen.io.vasp to directly extract energies, structures, DOS, and band data for analysis.

Can I automate VASP input generation for high-throughput workflows?

Automate VASP input generation for high-throughput workflows by applying standardized pymatgen input sets across large libraries of structure files to batch-create inputs.

What do I need to parse VASP outputs using pymatgen?

Parsing VASP outputs requires pymatgen installed, a compatible Python environment, and working knowledge of VASP to correctly interpret extracted structure and DOS data.

Does pymatgen support reading charge density and eigenvalue files from VASP?

Yes, pymatgen.io.vasp supports parsing CHGCAR, LOCPOT, EIGENVAL, and PROCAR files to extract charge density, eigenvalues, and projected orbital data.

What is the best way to standardize VASP calculations across multiple structures?

Standardize VASP calculations by generating inputs with pymatgen's predefined input sets like MPRelaxSet, ensuring consistent INCAR and KPOINTS configurations across structures.