abinit
FreeGenerate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.
The English summary is being prepared. Showing the original description.
Convert between computational chemistry data formats using dpdata. Handles VASP, QE, CP2K, Gaussian, LAMMPS, and DeePMD formats. Essential for preparing ML potential training data.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
pip install dpdata, or python -c "import dpdata")| Format | Read | Write | Key |
|---|---|---|---|
| VASP OUTCAR | Yes | - | vasp/outcar |
| VASP POSCAR/CONTCAR | Yes | Yes | vasp/poscar |
| VASP XML | Yes | - | vasp/xml |
| QE pw.x output | Yes | - | qe/pw/scf |
| CP2K output | Yes | - | cp2k/output |
| Gaussian log | Yes | - | gaussian/log |
| LAMMPS dump | Yes | Yes | lammps/dump |
| LAMMPS data | Yes | Yes | lammps/lmp |
| DeePMD raw | Yes | Yes | deepmd/raw |
| DeePMD npy | Yes | Yes | deepmd/npy |
| ExtXYZ | Yes | Yes | extxyz |
catgo_workflow_engine(action="add_task", params={
"workflow_id": "wf_xxx",
"task_type": "shell",
"name": "convert_data",
"command": "python convert.py",
"input_files": {
"convert.py": "import dpdata\nd = dpdata.LabeledSystem('OUTCAR', fmt='vasp/outcar')\nd.to('deepmd/npy', 'training_data')"
},
"system_name": "data_prep"
})
import dpdata
import numpy as np
# Load all frames from OUTCAR
d = dpdata.LabeledSystem("OUTCAR", fmt="vasp/outcar")
print(f"Loaded {len(d)} frames")
# Random split: 90% train, 10% valid
indices = np.random.permutation(len(d))
n_train = int(0.9 * len(d))
d_train = d.sub_system(indices[:n_train])
d_valid = d.sub_system(indices[n_train:])
d_train.to("deepmd/npy", "data/train")
d_valid.to("deepmd/npy", "data/valid")
print(f"Train: {len(d_train)}, Valid: {len(d_valid)}")
import dpdata
from pathlib import Path
d = None
for outcar in Path(".").rglob("OUTCAR"):
sys = dpdata.LabeledSystem(str(outcar), fmt="vasp/outcar")
d = sys if d is None else d + sys
print(f"Total frames: {len(d)}")
d.to("deepmd/npy", "merged_data")
import dpdata
d = dpdata.LabeledSystem("relax.out", fmt="qe/pw/scf")
d.to("deepmd/npy", "training_data")
import dpdata
d = dpdata.System("dump.lammpstrj", fmt="lammps/dump",
type_map=["Ti", "O"])
d.to("extxyz", "trajectory.xyz")
import dpdata
import numpy as np
d = dpdata.LabeledSystem("OUTCAR", fmt="vasp/outcar")
# Remove frames with max force > 10 eV/Ang (likely unconverged)
mask = []
for i in range(len(d)):
max_f = np.max(np.abs(d["forces"][i]))
mask.append(max_f < 10.0)
d_clean = d.sub_system(np.where(mask)[0])
print(f"Kept {len(d_clean)}/{len(d)} frames")
# Quick convert
dpdata convert OUTCAR vasp/outcar deepmd/npy training_data
# System info
dpdata info OUTCAR vasp/outcar
| Parameter | Notes |
|---|---|
fmt | Format string — must match exactly (case-sensitive) |
type_map | Required for LAMMPS formats — maps type indices to element symbols |
begin / end / step | Frame selection for large trajectories |
type_map.real units are auto-converted.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.
The English summary is being prepared. Showing the original description.
Use when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.
The English summary is being prepared. Showing the original description.
Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.
The English summary is being prepared. Showing the original description.
Use when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader charge analysis.
The English summary is being prepared. Showing the original description.
Use AmberTools antechamber for molecular force field parameterization. Generates GAFF/GAFF2 parameters and AM1-BCC or RESP charges for use in AMBER or LAMMPS classical MD simulations.
The English summary is being prepared. Showing the original description.
One-shot recipes for adding, deleting, moving, and replacing individual atoms in the active CatGo viewer structure. Use whenever the user asks to "add an atom", "delete atoms", "remove this atom", "move atom N", "replace H with Li", or any single-atom edit — including "add a hydrogen on top of atom 12" / "delete atoms 5–9" / "swap the oxygen at site 3 for fluorine". Skips the discovery loop (no need to list structure tools or check adsorption sites first); goes straight to the matching `catgo_structure` action. Triggers in Chinese on 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....
The English summary is being prepared. Showing the original description.