Skip to content

Commit 1f7d5fc

Browse files
committed
Update defect-analysis
1 parent 1c095ec commit 1f7d5fc

22 files changed

Lines changed: 284 additions & 32 deletions

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Standalone skill for defect-focused DFT result analysis.
66

7+
Supports VASP, QE, and ABINIT-style pristine/defect inputs.
8+
79
## Install
810

911
```bash
@@ -16,6 +18,8 @@ npx skills add chatmaterials/defect-analysis -g -y
1618
python3 -m py_compile scripts/*.py
1719
npx skills add . --list
1820
python3 scripts/analyze_defect_formation.py fixtures/pristine fixtures/defect --species O --delta -1 --mu -4.0 --json
21+
python3 scripts/analyze_defect_formation.py fixtures/qe/pristine fixtures/qe/defect --species O --delta -1 --mu -4.0 --json
22+
python3 scripts/analyze_defect_formation.py fixtures/abinit/pristine fixtures/abinit/defect --species O --delta -1 --mu -4.0 --json
1923
python3 scripts/analyze_defect_structure.py fixtures/pristine/POSCAR fixtures/defect/POSCAR --json
2024
python3 scripts/export_defect_report.py fixtures/pristine fixtures/defect --species O --delta -1 --mu -4.0
2125
python3 scripts/run_regression.py

SKILL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "defect-analysis"
3-
description: "Use when the task is to analyze defect-related DFT results, including neutral defect formation energies, stoichiometric changes, structural distortion around a defect, and compact markdown reports from pristine and defect calculations."
3+
description: "Use when the task is to analyze defect-related DFT results, including neutral defect formation energies, stoichiometric changes, structural distortion around a defect, and compact markdown reports from pristine and defect calculations. Supports VASP, QE, and ABINIT-style inputs."
44
---
55

66
# Defect Analysis
@@ -14,6 +14,12 @@ Use this skill for defect-focused post-processing rather than generic workflow s
1414
- quantify structural or volume change caused by a defect
1515
- write a compact defect-analysis report from finished calculations
1616

17+
Supported backends:
18+
19+
- VASP-like directories with `OUTCAR` and `POSCAR`
20+
- QE-like directories with `.out` and structural input blocks
21+
- ABINIT-like directories with `.abo` and `.abi`
22+
1723
## Use the bundled helpers
1824

1925
- `scripts/analyze_defect_formation.py`

fixtures/abinit/defect/Fe.psp8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pseudo placeholder

fixtures/abinit/defect/O.psp8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pseudo placeholder

fixtures/abinit/defect/defect.abi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ecut 20.0
2+
ngkpt 6 6 6
3+
nshiftk 1
4+
shiftk 0.0 0.0 0.0
5+
tolvrs 1.0d-10
6+
occopt 1
7+
pseudos "Fe.psp8, O.psp8"
8+
natom 2
9+
ntypat 2
10+
znucl 26 8
11+
typat 1 2
12+
acell 3*9.5431161
13+
rprim
14+
1.0 0.0 0.0
15+
0.0 1.0 0.0
16+
0.0 0.0 1.0
17+
xred
18+
0.0 0.0 0.0
19+
0.5 0.5 0.0

fixtures/abinit/defect/run.abo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
etotal -0.77950703
2+
Calculation completed.

fixtures/abinit/pristine/Fe.psp8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pseudo placeholder

fixtures/abinit/pristine/O.psp8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pseudo placeholder
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ecut 20.0
2+
ngkpt 6 6 6
3+
nshiftk 1
4+
shiftk 0.0 0.0 0.0
5+
tolvrs 1.0d-10
6+
occopt 1
7+
pseudos "Fe.psp8, O.psp8"
8+
natom 3
9+
ntypat 2
10+
znucl 26 8
11+
typat 1 2 2
12+
acell 3*9.4486306
13+
rprim
14+
1.0 0.0 0.0
15+
0.0 1.0 0.0
16+
0.0 0.0 1.0
17+
xred
18+
0.0 0.0 0.0
19+
0.5 0.5 0.0
20+
0.5 0.0 0.5

fixtures/abinit/pristine/run.abo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
etotal -1.000000
2+
Calculation completed.

0 commit comments

Comments
 (0)