Skip to content

Commit c0b1026

Browse files
committed
Add abinit test
1 parent 2414fff commit c0b1026

File tree

17 files changed

+16482
-0
lines changed

17 files changed

+16482
-0
lines changed

src/nomad_simulation_parsers/parsers/abinit/parser.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from nomad.parsing.file_parser import ArchiveWriter
77
from nomad.parsing.file_parser.mapping_parser import MetainfoParser, TextParser
88
from nomad.parsing.parser import MatchingParser
9+
from nomad.utils import get_logger
910
from nomad_simulations.schema_packages.general import Program, Simulation
1011
from nomad_simulations.schema_packages.workflow import (
1112
DFTGWWorkflow,
@@ -22,8 +23,22 @@
2223

2324
from .file_parser import AbinitOutParser
2425

26+
LOGGER = get_logger(__name__)
27+
28+
29+
# TODO temporary fix for structlog unable to propagate logger
30+
class AbinitMetainfoParser(MetainfoParser):
31+
@property
32+
def logger(self):
33+
return LOGGER
34+
2535

2636
class MainfileParser(TextParser):
37+
# TODO temporary fix for structlog unable to propagate logger
38+
@property
39+
def logger(self):
40+
return LOGGER
41+
2742
text_parser = AbinitOutParser()
2843

2944
def get_workflow_method(self) -> str:

tests/data/abinit/Fe/26fe.pspnc

Lines changed: 4018 additions & 0 deletions
Large diffs are not rendered by default.

tests/data/abinit/Fe/Fe.files

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Fe.in
2+
Fe.out
3+
Fe_i
4+
Fe_o
5+
Fe_1
6+
./26fe.pspnc
7+
8+

tests/data/abinit/Fe/Fe.in

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ndtset 2
2+
#spin related quantities (only second dataset)
3+
spinat2 0.0 0.0 4.0
4+
nsppol2 2
5+
#generate the total density of states in both cases
6+
prtdos 1
7+
#Rather standard input for a bcc metal
8+
iscf 5
9+
prtden 1
10+
tolvrs 1.0d-10
11+
acell 3*5.42
12+
ecut 18.0
13+
natom 1
14+
nband 8
15+
ngkpt 4 4 4
16+
nshiftk 1
17+
18+
nstep 50
19+
ntypat 1
20+
occopt 3
21+
rprim -0.5 0.5 0.5
22+
0.5 -0.5 0.5
23+
0.5 0.5 -0.5
24+
shiftk 0.5 0.5 0.5
25+
tsmear 0.01
26+
typat 1
27+
xred 0.0 0.0 0.0
28+
znucl 26

tests/data/abinit/Fe/Fe.out

Lines changed: 819 additions & 0 deletions
Large diffs are not rendered by default.

tests/data/abinit/Fe/Fe_o_DS1_DDB

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
2+
**** DERIVATIVE DATABASE ****
3+
+DDB, Version number 100401
4+
5+
Note : temporary (transfer) database
6+
7+
usepaw 0
8+
natom 1
9+
nkpt 6
10+
nsppol 1
11+
nsym 48
12+
ntypat 1
13+
occopt 3
14+
nband 8
15+
acell 0.54200000000000D+01 0.54200000000000D+01 0.54200000000000D+01
16+
amu 0.55847000000000D+02
17+
dilatmx 0.10000000000000D+01
18+
ecut 0.18000000000000D+02
19+
ecutsm 0.00000000000000D+00
20+
intxc 0
21+
iscf 5
22+
ixc 1
23+
kpt 0.12500000000000D+00 0.12500000000000D+00 0.12500000000000D+00
24+
0.37500000000000D+00 0.12500000000000D+00 0.12500000000000D+00
25+
-0.12500000000000D+00 0.12500000000000D+00 0.12500000000000D+00
26+
-0.37500000000000D+00 0.37500000000000D+00 0.12500000000000D+00
27+
-0.37500000000000D+00 -0.37500000000000D+00 0.12500000000000D+00
28+
-0.37500000000000D+00 0.37500000000000D+00 0.37500000000000D+00
29+
kptnrm 0.10000000000000D+01
30+
ngfft 18 18 18
31+
nspden 1
32+
nspinor 1
33+
occ 0.19999999992439D+01 0.19998907138898D+01 0.19998907138886D+01
34+
0.12291512900095D+01 0.12291512885254D+01 0.28675590494093D+00
35+
0.00000000000000D+00 0.00000000000000D+00
36+
rprim -0.50000000000000D+00 0.50000000000000D+00 0.50000000000000D+00
37+
0.50000000000000D+00 -0.50000000000000D+00 0.50000000000000D+00
38+
0.50000000000000D+00 0.50000000000000D+00 -0.50000000000000D+00
39+
sciss 0.00000000000000D+00
40+
spinat 0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
41+
symafm 1 1 1 1 1 1 1 1 1 1 1 1
42+
1 1 1 1 1 1 1 1 1 1 1 1
43+
1 1 1 1 1 1 1 1 1 1 1 1
44+
1 1 1 1 1 1 1 1 1 1 1 1
45+
symrel 1 0 0 0 1 0 0 0 1
46+
-1 0 0 0 -1 0 0 0 -1
47+
-1 -1 -1 0 0 1 0 1 0
48+
1 1 1 0 0 -1 0 -1 0
49+
0 1 0 1 0 0 -1 -1 -1
50+
0 -1 0 -1 0 0 1 1 1
51+
0 0 1 -1 -1 -1 1 0 0
52+
0 0 -1 1 1 1 -1 0 0
53+
0 1 0 1 0 0 0 0 1
54+
0 -1 0 -1 0 0 0 0 -1
55+
-1 -1 -1 0 0 1 1 0 0
56+
1 1 1 0 0 -1 -1 0 0
57+
1 0 0 0 1 0 -1 -1 -1
58+
-1 0 0 0 -1 0 1 1 1
59+
0 0 1 -1 -1 -1 0 1 0
60+
0 0 -1 1 1 1 0 -1 0
61+
-1 -1 -1 1 0 0 0 0 1
62+
1 1 1 -1 0 0 0 0 -1
63+
0 1 0 0 0 1 1 0 0
64+
0 -1 0 0 0 -1 -1 0 0
65+
1 0 0 -1 -1 -1 0 1 0
66+
-1 0 0 1 1 1 0 -1 0
67+
0 0 1 0 1 0 -1 -1 -1
68+
0 0 -1 0 -1 0 1 1 1
69+
1 0 0 -1 -1 -1 0 0 1
70+
-1 0 0 1 1 1 0 0 -1
71+
0 1 0 0 0 1 -1 -1 -1
72+
0 -1 0 0 0 -1 1 1 1
73+
-1 -1 -1 1 0 0 0 1 0
74+
1 1 1 -1 0 0 0 -1 0
75+
0 0 1 0 1 0 1 0 0
76+
0 0 -1 0 -1 0 -1 0 0
77+
0 1 0 -1 -1 -1 0 0 1
78+
0 -1 0 1 1 1 0 0 -1
79+
1 0 0 0 0 1 -1 -1 -1
80+
-1 0 0 0 0 -1 1 1 1
81+
-1 -1 -1 0 1 0 1 0 0
82+
1 1 1 0 -1 0 -1 0 0
83+
0 0 1 1 0 0 0 1 0
84+
0 0 -1 -1 0 0 0 -1 0
85+
-1 -1 -1 0 1 0 0 0 1
86+
1 1 1 0 -1 0 0 0 -1
87+
1 0 0 0 0 1 0 1 0
88+
-1 0 0 0 0 -1 0 -1 0
89+
0 1 0 -1 -1 -1 1 0 0
90+
0 -1 0 1 1 1 -1 0 0
91+
0 0 1 1 0 0 -1 -1 -1
92+
0 0 -1 -1 0 0 1 1 1
93+
tnons 0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
94+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
95+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
96+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
97+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
98+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
99+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
100+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
101+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
102+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
103+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
104+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
105+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
106+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
107+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
108+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
109+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
110+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
111+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
112+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
113+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
114+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
115+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
116+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
117+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
118+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
119+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
120+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
121+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
122+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
123+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
124+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
125+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
126+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
127+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
128+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
129+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
130+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
131+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
132+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
133+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
134+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
135+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
136+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
137+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
138+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
139+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
140+
0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
141+
tolwfr 0.10000000000000D+01
142+
tphysel 0.00000000000000D+00
143+
tsmear 0.10000000000000D-01
144+
typat 1
145+
wtk 0.12500000000000D+00 0.18750000000000D+00 0.93750000000000D-01
146+
0.37500000000000D+00 0.12500000000000D+00 0.93750000000000D-01
147+
xred 0.00000000000000D+00 0.00000000000000D+00 0.00000000000000D+00
148+
znucl 0.26000000000000D+02
149+
zion 0.80000000000000D+01
150+
151+
No information on the potentials yet
152+
153+
**** Database of total energy derivatives ****
154+
Number of data blocks= 2
155+
156+
Total energy - # elements : 1
157+
-0.24661707267544D+02 0.00000000000000D+00
158+
159+
1st derivatives - # elements : 9
160+
1 1 0.00000000000000D+00 0.00000000000000D+00
161+
2 1 0.00000000000000D+00 0.00000000000000D+00
162+
3 1 0.00000000000000D+00 0.00000000000000D+00
163+
1 4 0.18895258935011D-01 0.00000000000000D+00
164+
2 4 0.18895258935011D-01 0.00000000000000D+00
165+
3 4 0.18895258935011D-01 0.00000000000000D+00
166+
1 5 0.00000000000000D+00 0.00000000000000D+00
167+
2 5 0.00000000000000D+00 0.00000000000000D+00
168+
3 5 0.00000000000000D+00 0.00000000000000D+00

tests/data/abinit/Fe/Fe_o_DS1_DEN

49.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)