Markdown Converter
Agent skill for markdown-converter
**A Claude Code skill for automated DFT calculation workflows on epitaxial interfaces**
Sign in to like and favorite skills
A Claude Code skill for automated DFT calculation workflows on epitaxial interfaces
This skill automates the complete workflow for running VASP DFT calculations on structures generated by OgreInterface, from setup to energy extraction.
When invoked, this skill helps you:
Before using this skill, ensure you have:
PES/poscars, zdist/poscars, or reference/poscarstemplates/ directory:
POTCAR (your pseudopotential file)INCAR_template (with DIPOL = PLACEHOLDER_DIPOL)KPOINTS_template (your k-point settings)job_template.slurm (your SLURM submission script)Simply drag your calculation folder into Claude Code and ask:
"Setup calculation folders, update DIPOL, and submit jobs"
Or be more specific:
"Setup PES calculations and submit to SLURM"
"Extract energies from completed calculations"
"Setup reference calculations for interface energy"
Creates calculation directories (calc_0000, calc_0001, ...) for each POSCAR file and copies template files.
Command:
./scripts/1_setup_calculations.sh <type> <poscars_dir>
<type>: "pes", "zdist", or "reference"<poscars_dir>: Directory containing POSCAR filesCalculates the mass-weighted center of mass for each structure and updates the DIPOL tag in INCAR files.
Command:
python scripts/2_update_dipol.py [--force] [--verbose] [--dry-run]
Submits all calculations to the SLURM queue.
Command:
./scripts/3_submit_jobs.sh [--dry-run] [--delay N] [--check-dipol]
After calculations complete, extracts final energies from OUTCAR files.
Command:
python scripts/4_extract_energies.py
Creates
energies.npy file from extracted energies.
Command:
python scripts/5_create_npy.py
For interface energy calculations, use:
"Setup reference calculations"
This creates four reference calculation directories (calc_0000 to calc_0003):
Interface energy is calculated as:
E_interface = E_total - (E1 + E2) + 0.5*(E3 + E4)
The workflow produces:
energies.npy - NumPy array of final energies ordered by POSCAR suffixenergies_YYYYMMDD_HHMMSS.csv - Human-readable CSV of extracted energiessqueue -u $USER to track job status--check-dipol to verify setupyour-project/ ├── PES/poscars/ # OgreInterface output │ ├── POSCAR_0000 │ ├── POSCAR_0001 │ └── ... ├── PES/ # Calculation workspace │ ├── calc_0000/ │ │ ├── POSCAR │ │ ├── POTCAR │ │ ├── INCAR │ │ ├── KPOINTS │ │ └── job.slurm │ └── energies.npy # Final output └── templates/ # Your system templates ├── POTCAR ├── INCAR_template ├── KPOINTS_template └── job_template.slurm
MIT License - See LICENSE file for details
Built on top of OgreInterface by Zefeng Cai for streamlined epitaxial interface DFT calculations.