--- 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 (Python DFT) ## When to Use - User explicitly requests GPAW - User wants tight ASE integration (optimize with ASE, calculate with GPAW) - User needs real-space grid, LCAO, or plane-wave modes in a single code - User wants Python-scripted DFT workflows (no input files, pure Python) ## Prerequisites 1. GPAW + ASE installed on HPC (`gpaw --version`, `python -c "import gpaw"`) 2. PAW datasets installed (`gpaw install-data`) 3. Structure loaded in viewer — verify with `catgo_view(action="get_state")` ## Workflow Steps ### 1. Verify structure ``` catgo_view(action="get_state") ``` ### 2. Create workflow ``` catgo_workflow_engine(action="create", params={"name": "GPAW PBE relaxation"}) ``` ### 3. Add GPAW task via shell script 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": "