一键导入
gpaw
Generate and manage GPAW Python-based DFT calculations. Use when the user requests GPAW, Python DFT, real-space grid DFT, or LCAO-DFT with ASE integration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate and manage GPAW Python-based DFT calculations. Use when the user requests GPAW, Python DFT, real-space grid DFT, or LCAO-DFT with ASE integration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage computational chemistry workflows with CatGo. Supports VASP, CP2K, ORCA, MLP, LAMMPS. Build OER/HER/CO2RR workflows, geometry optimization, frequency analysis, Gibbs energy calculations.
Run and resume the CatGo md-orchestration poll loop — delegate each poll to a subagent (keep main context lean), verify convergence by force, auto-advance each converged species per-species (pipeline, not barrier), and resume a campaign from disk after context compaction / new session. Use when driving or resuming a campaign's job-watch loop. Pairs with catgo-campaign.
Run a CatGo file-first md-orchestration "campaign" — a multi-step / high-throughput computational-materials study (e.g. SAA HER screening) driven from a human-readable folder + markdown tree, not the DB workflow engine. Use when the user says "跑一个 campaign", "md 模式跑", "high-throughput screening", or wants an agent-in-the-loop study with stages/funnel/analysis/report. Requires `catgo` on PATH.
Route computational chemistry requests to the correct software and task skill. Entry point for all CatGo agent interactions.
Drive a file-first, agent-in-the-loop computational campaign via a folder + markdown tree (no DB). Use when the user opts out of the visual workflow engine.
Authoring conventions for CatGo md-orchestration campaigns — progressive markdown, README+INDEX pairs and keeping them current, logging interventions to LESSONS, human-readable (never-hash) names, and the progressive (top→stage→calc) plan. Use when creating/editing any campaign markdown (plan/README/INDEX/STATUS/LESSONS) so the file tree stays navigable and resumable. Pairs with catgo-campaign.
| name | gpaw |
| description | Generate and manage GPAW Python-based DFT calculations. Use when the user requests GPAW, Python DFT, real-space grid DFT, or LCAO-DFT with ASE integration. |
| compatibility | Requires GPAW and ASE installed in the Python environment on the HPC target. PAW datasets must be installed (gpaw install-data). |
gpaw --version, python -c "import gpaw")gpaw install-data)catgo_view(action="get_state")catgo_view(action="get_state")
catgo_workflow_engine(action="create", params={"name": "GPAW PBE relaxation"})
CatGo does not yet have a native GPAW engine. Use task_type: "shell" with a Python script.
catgo_workflow_engine(action="add_task", params={
"workflow_id": "wf_xxx",
"task_type": "shell",
"name": "gpaw_relax",
"command": "python gpaw_relax.py",
"input_files": {
"gpaw_relax.py": "<script content>",
"structure.json": "<pymatgen dict>"
},
"system_name": "TiO2_relax"
})
When a @register_engine("gpaw") is added to CatGo, use task_type: "geo_opt" with software: "gpaw" instead.
from ase.io import read
from gpaw import GPAW, PW
atoms = read('structure.json')
calc = GPAW(
mode=PW(500), # Plane-wave mode, 500 eV cutoff
xc='PBE',
kpts={'density': 3.0}, # ~0.03 A^-1 k-point density
txt='gpaw_scf.txt',
occupations={'name': 'fermi-dirac', 'width': 0.05},
convergence={'energy': 1e-5},
)
atoms.calc = calc
energy = atoms.get_potential_energy()
print(f'Total energy: {energy:.6f} eV')
from ase.io import read, write
from ase.optimize import BFGS
from ase.constraints import FixAtoms
from gpaw import GPAW, PW
atoms = read('structure.json')
# Freeze bottom layers for slabs
c = FixAtoms(indices=[i for i, a in enumerate(atoms)
if a.position[2] < atoms.cell[2][2] * 0.4])
atoms.set_constraint(c)
calc = GPAW(
mode=PW(500),
xc='PBE',
kpts={'density': 3.0},
txt='gpaw_relax.txt',
convergence={'energy': 1e-5},
)
atoms.calc = calc
opt = BFGS(atoms, trajectory='relax.traj', logfile='relax.log')
opt.run(fmax=0.02)
write('CONTCAR.vasp', atoms)
| Parameter | Typical value | Notes |
|---|---|---|
| mode | PW(500) | Plane-wave cutoff in eV; PW(600) for accurate forces |
| mode | LCAO(dzp) | LCAO mode for large systems (1000+ atoms) |
| xc | 'PBE' | Also: 'RPBE', 'BEEF-vdW', 'mBEEF' |
| kpts | {'density': 3.0} | Auto k-mesh; higher = denser |
| convergence | {'energy': 1e-5} | In eV; tighten for phonon calcs |
| occupations | fermi-dirac, 0.05 | Smearing width in eV |
| parallel | {'domain': 2, 'band': 2} | Domain decomposition for MPI |
| Mode | Best for | Speed |
|---|---|---|
| PW (plane-wave) | Accurate bulk/surface | Moderate |
| LCAO | Large systems, screening | Fast |
| FD (finite-difference) | Real-space, nanostructures | Slow but flexible |
txt parameter — without it, GPAW writes no log and debugging is impossiblegpaw install-data with --basis flagcalc.write('checkpoint.gpw') after SCF for restart capabilitydomain * band * kpt must equal total MPI rankskpts={'size': (N, N, 1)} to avoid k-points along vacuum direction