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 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
|
<html>
<head>
<title>Tutorial Response-function 2</title>
</head>
<body bgcolor="#ffffff">
<hr>
<h1>ABINIT, second lesson on response functions (RF2)</h1>
<h2>Phonon band structures, thermodynamical properties </h2>
<hr>
<p>This lesson aims at showing how to get the following physical properties, for periodic solids :
<ul>
<li>Interatomic forces constants
<li>Phonon band structures
<li>Thermodynamical properties
</ul>
<p>This lesson should take about 1 hour. </p>
<h5>Copyright (C) 2005-2014 ABINIT group (XG)
<br> This file is distributed under the terms of the GNU General Public License, see
~abinit/COPYING or <a href="http://www.gnu.org/copyleft/gpl.txt">
http://www.gnu.org/copyleft/gpl.txt </a>.
<br> For the initials of contributors, see ~abinit/doc/developers/contributors.txt .
</h5>
<script type="text/javascript" src="list_internal_links.js"> </script>
<h3><b>Contents of lesson RF2 :</b></h3>
<ul>
<li><a href="lesson_rf2.html#1">1.</a> Generation of a derivative database
<li><a href="lesson_rf2.html#2">2.</a> Manipulation of the derivative databases (the MRGDDB utility)
<li><a href="lesson_rf2.html#3">3.</a> Analysis of the derivative databases (the ANADDB utility)
<li><a href="lesson_rf2.html#4">4.</a> The computation of interatomic force constants
<li><a href="lesson_rf2.html#5">5.</a> The efficient computation of phonon band structures
<li><a href="lesson_rf2.html#6">6.</a> Thermodynamical properties.
</ul>
<hr>
<a name="1"> </a>
<h3><b>
1. Generation of the derivative databases
</b></h3>
<p><i>Before beginning, you might consider to work in a different
subdirectory as for the other lessons.
Why not create "Work_rf2" in ~abinit/tests/tutorespfn/Input ?
</i>
<p>This tutorial starts by the generation of a database, that is quite
time-consuming. We suggest you to start immediately this computation...
<br>Copy the files ~abinit/tests/tutorespfn/Input/trf2_1.files and ~abinit/tests/tutorespfn/Input/trf2_1.in in "Work_rf2" .
<p>
Issue now :
<li><i> abinit < trf2_1.files >& log &</i> </li>
<p>
It takes about 15 minutes to be completed on a PC 2.8 GHz ...
<p>In order to do interatomic force constant calculations, and to compute associated
phonon band structure and thermodynamical properties,
you should first have some theoretical background.
<br>
Let us assume that you have read the litterature relative to the
<a href="lesson_rf1.html">first lesson on response functions</a>.
You might find additional material, related to the present section,
in the following references:
<br>
<br><cite>X. Gonze and C. Lee, Phys. Rev. B55, 10355 (1997)</cite>, especially section IX
<br><cite>C. Lee, X. Gonze, Phys. Rev. B 51, 8610 (1995) </cite>
<br><cite>S. Baroni, S. de Gironcoli, A. Dal Corso, P. Giannozzi, Rev. Mod. Phys. 73, 515 (2001).</cite>
<p>
If you haven't read parts of these references, you should take the time to get and read them now.
<p>
In short, the idea is that, in order to compute properties for which the phonon frequencies
are needed in all the Brillouin zone, one can use an elaborate Fourier interpolation, so that
only few dynamical matrices need to be computed directly. Others will be computed by interpolation.
<p>
Let us have a look at the input file trf2_1.in . The calculation is done for AlAs,
the same crystalline material as for the previous lesson on response functions.
Many input parameters are also quite similar, both at the level of the
description of the unit cell, as for the choice of cut-off energy and k point grid.
<p>
Still, this input file is rather complex : in one single
run, one produces the (Derivative Databases) DDBs needed for the rest of this tutorial.
So, it starts with a ground-state calculation (dataset 1), followed by the computation
of the response to the d/dk perturbation (dataset 2), and the response to electric fields,
and phonons at Gamma (dataset 3). Datasets 4 to 10 generate the dynamical matrices
at 7 q wavevectors, other than Gamma. At present (v4.6), one can only compute one q point per
dataset, that is why so many datasets are needed.
<p>Also, the values of these q wavevectors are not determined automatically.
They must correspond to the q wavevectors needed by the ANADDB utility (see later),
that is, they should form a reduced set of symmetry-inequivalent wavevectors,
corresponding to a regularly spaced grid. In principle, they ought not
include the Gamma point, but it is recommended to have it in the set, in order
for the Fourier interpolation not to introduce errors at that important point.
In order to minimize the number of preliminary non-self-consistent calculations,
it is advised to take a q point mesh that is adjusted to the k point mesh
used for the electronic structure : all q wavevectors should connect two k point
wavevectors from this grid.
<p>
Such a set of q wavevectors can be generated straightforwardly by running a GS calculation with
<a href="../input_variables/varbas.html#kptopt" target="kwimg">kptopt</a>=1,
<a href="../input_variables/varbas.html#nshiftk" target="kwimg">nshiftk</a>=1,
<a href="../input_variables/varbas.html#shiftk" target="kwimg">shiftk</a>=0 0 0 (to include gamma) and taking the output kpt set
file as this qpt set. One might set
<a href="../input_variables/varbas.html#nstep" target="kwimg">nstep</a>=1 and
<a href="../input_variables/vargs.html#nline" target="kwimg">nline</a>=1, so only one iteration runs.
<br>
The input file ~abinit/tests/tutorespfn/Input/trf2_2.in is precisely an input file that can be used to
generate such a set of k points. Copy it in the present Work_rf2 directly,
as well as the accompanying ~abinit/tests/tutorespfn/Input/trf2_2.files. Examine these files,
then run this calculation
(it is very rapid - it won't hurt the trf2_1 job).
The following k point set is obtained :
<pre>
kpt 0.00000000E+00 0.00000000E+00 0.00000000E+00
2.50000000E-01 0.00000000E+00 0.00000000E+00
5.00000000E-01 0.00000000E+00 0.00000000E+00
2.50000000E-01 2.50000000E-01 0.00000000E+00
5.00000000E-01 2.50000000E-01 0.00000000E+00
-2.50000000E-01 2.50000000E-01 0.00000000E+00
5.00000000E-01 5.00000000E-01 0.00000000E+00
-2.50000000E-01 5.00000000E-01 2.50000000E-01
</pre>
It is, as promised, the same as the q point set in the trf2_1.in file.
<p>
Now, it might be worth to examine in some detail one of the Derivative Database
that has been created by the trf2_1 run. We suppose that the file
trf2_1o_DS3_DDB has already been created. It corresponds to the third dataset,
namely the response to q=0 and electric field.
<br>
Edit this file, and read the <a href="../users/respfn_help.html#6.5" target="helpimg">6.5</a> section
of the respfn_help.html file. Examine the trf2_1o_DS3_DDB file carefully.
<p>Seven other similar files will be generated by the trf2_1
run, containing the same header, but a different 2DTE block. It will be the duty
of the MRGDDB utility, next section, to gather all these information.
<p>
Now, there might be two possibilities : either the trf2_1 run is finished, and you can
continue the tutorial with the section 2 about the MRGDDB utility, or the run is not finished.
<br>
In the latter case, instead of waiting for trf2_1 to be finished,
we suggest you to pursue with section 3. You will use as DDB file
the one that can be found
in ~abinit/tests/tutorespfn/Refs, with the name trf2_3.ddb.out,
instead of the one that would result from the section 2.
Copy this file to the present directory,
then go to section <a href="lesson_rf2.html#3">section 3</a> of this tutorial.
You might come back to section 2 afterwards.
<hr>
<a name="2"> </a>
<h3><b>
2. Manipulation of the derivative databases (the MRGDDB utility)
</b></h3>
<p>The use of the MRGDDB utility is described in its
<a href="../users/mrgddb_help.html" target="helpimg">help file</a>.
Please, read it carefully now.
<p>
Use MRGDDB to create the merge DDB from the eight DDB's corresponding
to datasets 3 to 10 of the trf2_1 job, containing the dynamical matrices
for the 8 q points, as well as the response to the electric field (dielectric tensor and
Born effective charges). Including also the one from
dataset 1 won't hurt (it contains the forces and stresses), but is not needed
for the computation of phonon band structure, interatomic force constants, and thermodynamical
properties. Name the new DDB trf2_3.ddb.out .
<p>
File ~abinit/tests/tutorespfn/Input/trf2_3.in is an example of input file for MRGDDB. You can copy it
in the Work_rf2 directory, and run the merge as follows :
<pre>
mrgddb < trf2_3.in
</pre>
It takes less than one second on a typical PC.
<hr>
<a name="3"> </a>
<h3><b>
3. Analysis of the derivative databases (the ANADDB utility)
</b></h3>
<p>An introduction to the use of the ANADDB utility is described in its
<a href="../users/anaddb_help.html" target="helpimg">help file</a>.
Please, read it carefully now.
<p>
This ANADDB utility is able to perform many different tasks, each governed by a
selected set of input variables, with also some input variables common to many of the
different tasks. The list of tasks to be done in one run is governed by different flags.
Here is the list of flags :
<ul>
<li><a href="../users/anaddb_help.html#dieflag" target="kwimg">dieflag</a> </li>
<li><a href="../users/anaddb_help.html#elaflag" target="kwimg">elaflag</a> </li>
<li><a href="../users/anaddb_help.html#elphflag" target="kwimg">elphflag</a> </li>
<li><a href="../users/anaddb_help.html#ifcflag" target="kwimg">ifcflag</a> </li>
<li><a href="../users/anaddb_help.html#instrflag" target="kwimg">instrflag</a> </li>
<li><a href="../users/anaddb_help.html#nlflag" target="kwimg">nlflag</a> </li>
<li><a href="../users/anaddb_help.html#piezoflag" target="kwimg">piezoflag</a> </li>
<li><a href="../users/anaddb_help.html#polflag" target="kwimg">polflag</a> </li>
<li><a href="../users/anaddb_help.html#thmflag" target="kwimg">thmflag</a> </li>
</ul>
Please, take some time to read the description of each of these flags.
Note that some of these flags might be required to allow to run another task.
<p>
In this tutorial, we will focus on the flags
<a href="../users/anaddb_help.html#ifcflag" target="kwimg">ifcflag</a>
and
<a href="../users/anaddb_help.html#thmflag" target="kwimg">thmflag</a>
<hr>
<a name="4"> </a>
<h3><b>
4. The computation of interatomic force constants
</b></h3>
<p>You can copy the files ~abinit/tests/tutorespfn/Input/trf2_4.in and ~abinit/tests/tutorespfn/Input/trf2_4.files to the Work_rf2 directory.
<br>
Edit the file trf2_4.in .
Note that <a href="../users/anaddb_help.html#ifcflag" target="kwimg">ifcflag</a>
is activated. Related input variables can be split in three groups.
<p>
The first group of variables define the grid of q wavevectors :
<ul>
<li><a href="../users/anaddb_help.html#brav" target="kwimg">brav</a></li>
<li><a href="../users/anaddb_help.html#ngqpt" target="kwimg">nqgpt</a></li>
<li><a href="../users/anaddb_help.html#nqshft" target="kwimg">nqshft</a></li>
<li><a href="../users/anaddb_help.html#q1shft" target="kwimg">q1shft</a></li>
</ul>
Unfortunately, the names of input variables and their meaning is not
exactly the same as the names used to generate the k points in ABINIT.
This is a shame, a remnant of history ... Please read carefully the
documentation that describes these input variables.
<p>
The second group of variables allows to impose some known constraint
on the dynamical matrices and Born effective charges before proceeding
with the analysis :
<ul>
<li><a href="../users/anaddb_help.html#asr" target="kwimg">asr</a></li>
<li><a href="../users/anaddb_help.html#chneut" target="kwimg">chneut</a></li>
</ul>
Please, read carefully the explanation for these input variables.
<p>
Finally, a third group of variables is related specifically to the
analysis of the Interatomic Force Constants :
<ul>
<li><a href="../users/anaddb_help.html#dipdip" target="kwimg">dipdip</a></li>
<li><a href="../users/anaddb_help.html#ifcana" target="kwimg">ifcana</a></li>
<li><a href="../users/anaddb_help.html#ifcout" target="kwimg">ifcout</a></li>
<li><a href="../users/anaddb_help.html#natifc" target="kwimg">natifc</a></li>
<li><a href="../users/anaddb_help.html#atifc" target="kwimg">atifc</a></li>
</ul>
Here also, spend some time to read the associated documentation.
<p>
Now, you should issue :
<pre>
anaddb < trf2_4.files > trf2_4.log
</pre>
It will last only a few seconds.
<p>
The file trf2_4.out contains the list of interatomic force constants,
as well as some analysis. Edit this file.
<br>
Try to find the following paragraph :
<pre>
Analysis of interatomic force constants
Are given : column(1-3), the total force constant
then column(4-6), the Ewald part
then column(7-9), the short-range part
Column 1, 4 and 7 are related to the displacement
of the generic atom along x,
column 2, 5 and 8 are related to the displacement
of the generic atom along y,
column 3, 6 and 9 are related to the displacement
of the generic atom along z.
</pre>
The interatomic force constants are output for the nuclei specified
by the input variable <a href="../users/anaddb_help.html#atifc" target="kwimg">atifc</a>.
Here, only atom 1 is considered. The IFCs with respect to the other nuclei
is given, by order of increasing distance. For each pair of nuclei involving
atom 1, there is first the output of the IFCs in cartesian coordinates,
as well as their decomposition into an Ewald and a short-range part,
then, the analysis with respect to a local system of coordinate.
The latter is chosen such as to diagonalize the IFC tensor, in case
of the self-force constant, and in the other cases, the first vector is
the vector joining the two nuclei, in order to decompose the IFC
into a longitudinal and a transverse component.
<hr>
<a name="5"> </a>
<h3><b>
5. The efficient computation of phonon band structures
</b></h3>
<p>
<p>You can copy the files ~abinit/tests/tutorespfn/Input/trf2_5.in and ~abinit/tests/tutorespfn/Input/trf2_5.files to the Work_rf2 directory.
<br>
Edit the file trf2_5.in .
Note that <a href="../users/anaddb_help.html#ifcflag" target="kwimg">ifcflag</a>
is again activated. Indeed, in order to compute a phonon band structure
using the Fourier interpolation, the IFCs are required.
This is why the two first groups of variables, needed to generate
the IFCs are still defined. The third group of variables is now restricted to
<a href="../users/anaddb_help.html#dipdip" target="kwimg">dipdip</a> only.
<p>
Then, come the input variables needed to define the list of q wavevectors
in the band structure :
<ul>
<li><a href="../users/anaddb_help.html#eivec" target="kwimg">eivec</a>: flag to turn on the analysis of phonon eigenvectors</li>
<li><a href="../users/anaddb_help.html#nph1l" target="kwimg">nph1l</a> number of q-points for phonon interpolation</li>
<li><a href="../users/anaddb_help.html#qph1l" target="kwimg">qph1l</a> list of q-points for phonon interpolation</li>
<li><a href="../users/anaddb_help.html#nph2l" target="kwimg">nph2l</a> number of q-directions for LO-TO correction</li>
<li><a href="../users/anaddb_help.html#qph2l" target="kwimg">qph2l</a> list of q-directions for LO-TO correction</li>
</ul>
<p>
Now, you should issue :
<pre>
anaddb < trf2_5.files > trf2_5.log
</pre>
It will last only a few seconds.
<p>
The file trf2_5.out contains the list of eigenvalues, for all the needed
q-wavevectors. You can edit it, and have a look at the different sections of the file.
Note that the interatomic force constants are computed (they are needed for
the Fourier interpolation), but not printed.
<p>
Please, edit also the other output file, named trf2_5_B2EPS.freq .
It contains the frequencies, in a format suitable for graphical output, using the
program band2eps (the latter should be more documented, and will not be described in the present tutorial).
<p>
You can copy the files ~abinit/tests/tutorespfn/Input/trf2_6.in and ~abinit/tests/tutorespfn/Input/trf2_6.files to the Work_rf2 directory,
then issue
<pre>
band2eps < trf2_6.files > trf2_6.log
</pre>
The file trf2_6.out.eps has been produced. It is an .eps file (eps stand for Encapsulated PostScript).
You can use the program ghostview to vizualize it. The command to issue will depend
on the way you have configured your machine, but the following might perhaps do the work:
<pre>
gv trf2_6.out.eps
</pre>
You should see a nice phonon band structure for AlAs. Well, not so nice, after all, because
there are two strange dips for the highest phonon band, at the Gamma point.
<br>
This is due to the lack of LO-TO splitting for the ANADDB treatment of the first list of vector.
The correct phonon band structure is presented
<a href="lesson_rf2/trf2_6.out.eps">here</a>.
You can correct the LO-TO splitting by the following little hack.
<p>
Edit the file trf2_5_B2EPS.freq, and note that the value of the frequency, in the sixth column,
has a discontinuity exactly for the Gamma point (the three first columns give the k point
coordinates), that is, at lines 1 and 31 :
<pre>
0.000000D+00 0.000000D+00 0.000000D+00 0.156855D-02 0.156855D-02 0.156855D-02
</pre>
<p>
Replace these values (sixth column, line 1 and 31) by the correct value, including the LO-TO
splitting, that you can find in the file trf2_5.out, at the end, second list of vector. That is,
the lines 1 and 31 should now read :
<pre>
0.000000D+00 0.000000D+00 0.000000D+00 0.156855D-02 1.730353E-03 0.156855D-02
</pre>
Now, run again band2eps. Your phonon band structure should be perfect !
<p>
It can be compared with the AlAs phonon band structure published by
<br>
<cite>P. Giannozzi, S. de Gironcoli, P. Pavone, and S. Baroni, Phys. Rev. B 43, 7231 (1991).</cite>
<p>
Of course, one should make a convergence study, on the k and q point grids (separately !),
as well as on the energy cut-off, and also test LDA and GGA ... But this is left to the user !
<hr>
<a name="6"> </a>
<h3><b>
6. Thermodynamical properties.
</b></h3>
<p>We will give only a very short example of the use of ANADDB to compute thermodynamical properties.
This is because this part of ANADDB is likely the farthest from a clean, stable, usage.
By exploring the input variables, the user should be able to produce figures and data like the ones for SiO2
quartz and stishovite, published in
<br><cite>C. Lee, X. Gonze, Phys. Rev. B 51, 8610 (1995) </cite>
<p>
<p>You can copy the files ~abinit/tests/tutorespfn/Input/trf2_7.in and ~abinit/tests/tutorespfn/Input/trf2_7.files to the Work_rf2 directory,
and have a look at them.
<br>
The same DDB as for trf2_4 and trf2_5 is used, namely trf2_3.ddb.out. The following additional input
variables are present :
<ul>
<li><a href="../users/anaddb_help.html#thmflag" target="kwimg">thmflag</a></li>
<li><a href="../users/anaddb_help.html#ng2qpt" target="kwimg">ng2qpt</a></li>
<li><a href="../users/anaddb_help.html#ngrids" target="kwimg">ngrids</a></li>
<li><a href="../users/anaddb_help.html#q2shft" target="kwimg">q2shft</a></li>
<li><a href="../users/anaddb_help.html#nchan" target="kwimg">nchan</a></li>
<li><a href="../users/anaddb_help.html#nwchan" target="kwimg">nwchan</a></li>
<li><a href="../users/anaddb_help.html#thmtol" target="kwimg">thmtol</a></li>
<li><a href="../users/anaddb_help.html#ntemper" target="kwimg">ntemper</a></li>
<li><a href="../users/anaddb_help.html#temperinc" target="kwimg">temperinc</a></li>
<li><a href="../users/anaddb_help.html#tempermin" target="kwimg">tempermin</a></li>
</ul>
Examine the input file, the input variables, then run anaddb (as usual ...).
Then, edit the output file.
You should be able to find the crucial section :
<pre>
At T F(J/mol-c) E(J/mol-c) S(J/(mol-c.K)) C(J/(mol-c.K))
(A mol-c is the abbreviation of a mole-cell, that is, the
number of Avogadro times the atoms in a unit cell)
20.0 8.1384756E+03 8.1463588E+03 3.9416450E-01 1.4169102E+00
40.0 8.1061319E+03 8.2368069E+03 3.2668767E+00 7.8985027E+00
60.0 7.9980215E+03 8.4575659E+03 7.6590737E+00 1.3992227E+01
80.0 7.7974376E+03 8.7915524E+03 1.2426435E+01 1.9325165E+01
100.0 7.5004823E+03 9.2274431E+03 1.7269608E+01 2.4175005E+01
120.0 7.1069991E+03 9.7544363E+03 2.2061977E+01 2.8411187E+01
140.0 6.6189292E+03 1.0359248E+04 2.6716563E+01 3.1955266E+01
160.0 6.0396228E+03 1.1028289E+04 3.1179165E+01 3.4847422E+01
180.0 5.3732225E+03 1.1749439E+04 3.5423425E+01 3.7183863E+01
200.0 4.6241912E+03 1.2512641E+04 3.9442249E+01 3.9069447E+01
</pre>
There, one finds, the phonon free energy, the phonon internal energy,
the phonon entropy and the phonon heat capacity.
<p>
Do not forget that we are working in the harmonic approximation ;
beyond some temperature, anharmonic effects will have a sizeable contributions.
<p>
The atomic temperature factors can also be computed. An example is presented
in tests/v5 , test 22 .
<script type="text/javascript" src="list_internal_links.js"> </script>
</body>
</html>
|