forked from abinit/abinit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables_a-tdep.py
360 lines (326 loc) · 10.5 KB
/
variables_a-tdep.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# coding: utf-8
from __future__ import print_function, division, unicode_literals, absolute_import
executable = "atdep"
from abimkdocs.variables import ValueWithUnit, MultipleValue, Range
ValueWithConditions = dict
Variable=dict
variables = [
Variable(
abivarname="amu@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions=['[[atdep:ntypat]]'],
defaultval="[[atdep:ntypat]]*0.d0",
mnemonics="Atomic masses in Mass Units",
added_in_version="before_v9",
text=r"""
Defines the masses in atomic mass units for each kind of atom. See the ABINIT variable [[amu]] for more details. (Only required when the NetCDF file is absent).
""",
),
Variable(
abivarname="angle@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="90.d0",
mnemonics="ANGLE alpha",
added_in_version="before_v9",
text=r"""
This angle has to be defined if the bravais lattice is monoclinic. That is to say if [[atdep:brav]](1)=2.
""",
),
Variable(
abivarname="brav@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions=[2],
defaultval="2*0",
mnemonics="BRAVais",
added_in_version="before_v9",
text="""
These two parameters define the Bravais lattice (as defined in the ABINIT code) and the primitive vectors [[rprim]] in the TDEP code.
- For bravais(1): The holohedral groups are numbered as follows (see international tables for crystallography (1983), p. 13):
iholohedry=1 triclinic 1bar
iholohedry=2 monoclinic 2/m
iholohedry=3 orthorhombic mmm
iholohedry=4 tetragonal 4/mmm
iholohedry=5 trigonal 3bar m
iholohedry=6 hexagonal 6/mmm
iholohedry=7 cubic m3bar m
- For bravais(2): The centering is defined as follows:
center=0 no centering
center=-1 body-centered
center=-3 face-centered
center=1 A-face centered
center=2 B-face centered
center=3 C-face centered
""",
),
Variable(
abivarname="bzpath@atdep",
varset="atdep",
vartype="integer+letter",
topics=['a-TDEP_expert'],
dimensions="'[[atdep:bzpath]](1)'+1",
defaultval="0",
mnemonics="Brillouin Zone PATH",
added_in_version="before_v9",
text=r"""
OPTIONAL: Defines the path in the Brillouin Zone for the phonon spectrum calculation. The first value defines the number of special points used in the path. The other values define the special points of the BZ (only the letters fixed by convention for the present lattice are allowed: L, X, M... and G for $\Gamma$).
""",
),
Variable(
abivarname="dosdeltae@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions="scalar",
defaultval="4.5d-6",
mnemonics="DOS delta Energy",
added_in_version="before_v9",
text="""
OPTIONAL: Defines the smearing used for the phonon Density Of State calculation.
""",
),
Variable(
abivarname="enunit@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions="scalar",
defaultval="0",
mnemonics="ENergy UNIT",
added_in_version="before_v9",
text="""
OPTIONAL: Defines the energy unit used for the phonon spectrum (0 for meV, 1 for cm-1 and 2 for Ha).
""",
),
Variable(
abivarname="multiplicity@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions=[3,3],
defaultval="9*0.d0",
mnemonics="MULTIPLICITY",
added_in_version="before_v9",
text=r"""
Defines the multiplicity of the SUPERCELL with respect to the primitive UNICELL. See the ABINIT variables [[rprimd]], [[acell]] and [[rprim]] for more details. The multiplicity [[atdep:multiplicity]] and the SUPERCELL lattice parameters [[atdep:rprimd]] are used to find the UNITCELL lattice parameters acell_unitcell such as:
$$ \text{rprimd}_{i,j}=\sum_{k=1}^3 \text{acell_unitcell}_i * \text{multiplicity}_{i,k}*\text{rprim_tmp}_{k,j} $$
For example:
- for a fcc lattice: rprim = ( 0 1/2 1/2 ; 1/2 0 1/2 ; 1/2 1/2 0) and acell = (a a a). If the SUPERCELL is rprimd = (3a 0 0 ; 0 3a 0 ; 0 0 3a), the multiplicity = ( -3 3 3 ; 3 -3 3 ; 3 3 -3)
- for a bcc lattice: rprim = ( -1/2 1/2 1/2 ; 1/2 -1/2 1/2 ; 1/2 1/2 -1/2) and acell = (a a a). If the SUPERCELL is rprimd = (3a 0 0 ; 0 3a 0 ; 0 0 3a), the multiplicity = ( 0 3 3 ; 3 0 3 ; 3 3 0)
""",
),
Variable(
abivarname="natom@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="NATOM",
added_in_version="before_v9",
text="""
Defines the number of atoms in the SUPERCELL. See the ABINIT variable [[natom]] for more details. (Only required when the NetCDF file is absent).
""",
),
Variable(
abivarname="natom_unitcell@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="NATOM in the UNITCELL",
added_in_version="before_v9",
text="""
Defines the number of atoms in the UNITCELL.
""",
),
Variable(
abivarname="ngqpt1@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions=[3],
defaultval=[8, 8, 8],
mnemonics="Number of Grid points for Q PoinTs generation (coarse)",
added_in_version="before_v9",
text=r"""
OPTIONAL: Defines the COARSE grid of q-points for the dynamical matrix output (in DDB).
""",
),
Variable(
abivarname="ngqpt2@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions=[3],
defaultval=[32, 32, 32],
mnemonics="Number of Grid points for Q PoinTs generation (fine)",
added_in_version="before_v9",
text="""
OPTIONAL: Defines the FINE grid of q-points for the DOS and thermodynamic quantity calculations.
""",
),
Variable(
abivarname="nstep_max@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="NSTEP at MAX",
added_in_version="before_v9",
text="""
Defines the upper limit in the range of configurations that one wants to use. This number has to be lower than the maximum number of configurations present in the NetCDF or ASCII file.
""",
),
Variable(
abivarname="nstep_min@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="NSTEP at MIN",
added_in_version="before_v9",
text="""
Defines the lower limit in the range of configurations that one wants to use. This number has to be larger than the minimum number of configurations present in the NetCDF or ASCII file.
""",
),
Variable(
abivarname="ntypat@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="NTYPAT",
added_in_version="before_v9",
text="""
Defines the number of atom types. See the ABINIT variable [[ntypat]] for more details. (Only required when the NetCDF file is absent).
""",
),
Variable(
abivarname="order@atdep",
varset="atdep",
vartype="integer+real",
topics=['a-TDEP_expert'],
dimensions="2",
defaultval="2",
mnemonics="ORDER for the IFC",
added_in_version="before_v9",
text="""
OPTIONAL: Defines at which order the calculation of the IFCs is performed. If the first value [[atdep:order]](1)=3, that turns on a third order calculation and the second value [[atdep:order]](2) defines the cutoff radius.
""",
),
Variable(
abivarname="rcut@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0.d0",
mnemonics="Radius CUToff",
added_in_version="before_v9",
text="""
Defines the cutoff radius used when the second order IFCs are computed. This ones has to be lower than half the smallest SUPERCELL lattice parameter.
""",
),
Variable(
abivarname="rprimd@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions=[3,3],
defaultval="9*0.d0",
mnemonics="RPRIMD",
added_in_version="before_v9",
text="""
Defines the dimensional real space primitive vectors of the SUPERCELL. See [[rprimd]] for more details. (Only required when the NetCDF file is absent).
""",
),
Variable(
abivarname="slice@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions="1",
defaultval="1",
mnemonics="SLICE",
added_in_version="before_v9",
text="""
OPTIONAL: Defines the slice used to include some configurations in the calculations. Only the ([[atdep:nstep_max]]-[[atdep:nstep_min]])/[[atdep:slice]] configurations will be considered in the calculations of the IFCs.
""",
),
Variable(
abivarname="temperature@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions="scalar",
defaultval="0",
mnemonics="TEMPERATURE",
added_in_version="before_v9",
text="""
Defines the temperature of the system.
""",
),
Variable(
abivarname="typat@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions=['[[atdep:natom]]'],
defaultval="[[atdep:natom]]*0",
mnemonics="TYPAT",
added_in_version="before_v9",
text="""
Defines the type of atoms in the SUPERCELL. See [[typat]] for more details. (Only required when the NetCDF file is absent).
""",
),
Variable(
abivarname="typat_unitcell@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_basic'],
dimensions=['[[atdep:natom_unitcell]]'],
defaultval="[[atdep:natom_unitcell]]*0",
mnemonics="TYPAT in the UNITCELL",
added_in_version="before_v9",
text="""
Defines the type of atoms in the UNITCELL.
""",
),
Variable(
abivarname="use_ideal_positions@atdep",
varset="atdep",
vartype="integer",
topics=['a-TDEP_expert'],
dimensions="scalar",
defaultval="1",
mnemonics="USE IDEAL POSITIONS",
added_in_version="before_v9",
text="""
OPTIONAL: Defines if the ideal ([[atdep:use_ideal_positions]]=1) or averaged ([[atdep:use_ideal_positions]]=0) positions are used during the calculations. It can affect strongly the phonon spectrum (and other quantities) if the system is close to an instability (soft mode,...).
""",
),
Variable(
abivarname="xred_unitcell@atdep",
varset="atdep",
vartype="real",
topics=['a-TDEP_basic'],
dimensions=[3, '[[atdep:natom_unitcell]]'],
defaultval="(3*[[atdep:natom_unitcell]])*0.d0",
mnemonics="XRED in the UNITCELL",
added_in_version="before_v9",
text="""
Defines the reduced coordinates of atoms in the UNITCELL.
""",
),
]