abinit
無料Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.
日本語の概要は準備中です。原文の説明を表示しています。
Convert between computational chemistry data formats using dpdata. Handles VASP, QE, CP2K, Gaussian, LAMMPS, and DeePMD formats. Essential for preparing ML potential training data.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
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.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
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 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....
日本語の概要は準備中です。原文の説明を表示しています。