Example and documentation for the TURBOMOLE interface

This commit is contained in:
Antti Karttunen 2019-04-01 20:00:56 +03:00
parent da50c5e2bd
commit d5828f2c5e
12 changed files with 7838 additions and 22 deletions

View File

@ -120,6 +120,11 @@ option, for example::
Analogous to ``--pwscf``, but to be used with the CRYSTAL interface.
``--turbomole``
^^^^^^^^^^^^^^^
Analogous to ``--pwscf``, but to be used with the TURBOMOLE interface
``--temperature``
^^^^^^^^^^^^^^^^^^

View File

@ -62,6 +62,12 @@ See the detail at :ref:`pwscf_interface`.
Using this option, CRYSTAL interface is invoked.
See the detail at :ref:`crystal_interface`.
``--turbomole``: TURBOMOLE interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using this option, TURBOMOLE interface is invoked.
See the details at :ref:`turbomole_interface`.
Force constants
----------------

View File

@ -31,7 +31,8 @@ written as:
- Thermal conductivity calculations are highly efficiently
distributed over nodes (see :ref:`workload_distribution`).
- User interfaces for :ref:`VASP <vasp_interface>`,
:ref:`QE <pwscf_interface>`, :ref:`CRYSTAL <crystal_interface>`, and Abinit
:ref:`QE <pwscf_interface>`, :ref:`CRYSTAL <crystal_interface>`,
:ref:`TURBOMOLE <turbomole_interface>`, and Abinit
are built in (see :ref:`calculator_interfaces`).
- API is prepared to operate from Python script (`example
<https://github.com/atztogo/phono3py/blob/master/example/Si-PBEsol/Si.py>`_)
@ -58,7 +59,7 @@ Documentation
install
examples
Interfaces to calculators (VASP, pwscf, CRYSTAL, Abinit) <interfaces>
Interfaces to calculators (VASP, pwscf, CRYSTAL, Abinit, TURBOMOLE) <interfaces>
command-options
output-files
hdf5_howto

View File

@ -4,10 +4,10 @@ Interfaces to calculators
==========================
Currently the built-in interfaces for VASP, QUANTUM ESPRESSO (QE),
CRYSTAL, and Abinit are prepared. VASP is the default interface and no
CRYSTAL, Abinit, and TURBOMOLE are prepared. VASP is the default interface and no
special option is necessary to invoke it, but for the other
interfaces, each special option has to be specified, e.g. ``--qe``,
``--crystal``, or ``--abinit``.
``--crystal``, ``--abinit``, or ``--turbomole``
.. toctree::
:maxdepth: 1
@ -15,6 +15,7 @@ interfaces, each special option has to be specified, e.g. ``--qe``,
vasp
pwscf
crystal
turbomole
Calculator specific behaviors
------------------------------
@ -22,7 +23,7 @@ Calculator specific behaviors
Physical unit
^^^^^^^^^^^^^^
The interfaces for VASP, Pwscf, CRYSTAL, and Abinit are built in to
The interfaces for VASP, Pwscf, CRYSTAL, Abinit, and TURBOMOLE are built in to
the phono3py command.
For each calculator, each physical unit system is used. The physical
@ -30,12 +31,13 @@ unit systems used for the calculators are summarized below.
::
| unit-cell FORCES_FC3 disp_fc3.yaml
| unit-cell FORCES_FC3 disp_fc3.yaml
-----------------------------------------------
VASP | Angstrom eV/Angstrom Angstrom
QE | au (bohr) Ry/au au
CRYSTAL | Angstrom eV/Angstrom Angstrom
Abinit | au (bohr) eV/Angstrom au
VASP | Angstrom eV/Angstrom Angstrom
QE | au (bohr) Ry/au au
CRYSTAL | Angstrom eV/Angstrom Angstrom
Abinit | au (bohr) eV/Angstrom au
TURBOMOLE | au (bohr) hartree/au au
``FORCES_FC2`` and ``disp_fc2.yaml`` have the same physical units as
``FORCES_FC3`` and ``disp_fc3.yaml``, respectively.
@ -52,11 +54,11 @@ Default unit cell file name
Default unit cell file names are also changed according to the calculators::
VASP | POSCAR
QE | unitcell.in
CRYSTAL | crystal.o
Abinit | unitcell.in
VASP | POSCAR
QE | unitcell.in
CRYSTAL | crystal.o
Abinit | unitcell.in
TURBOMOLE | control
.. _default_displacement_distance_for_calculator:
@ -66,7 +68,8 @@ Default displacement distance created
Default displacement distances created by ``-d`` option without
``--amplitude`` option are respectively as follows::
VASP | 0.03 Angstrom
QE | 0.06 au (bohr)
CRYSTAL | 0.03 Angstrom
Abinit | 0.06 au (bohr)
VASP | 0.03 Angstrom
QE | 0.06 au (bohr)
CRYSTAL | 0.03 Angstrom
Abinit | 0.06 au (bohr)
TURBOMOLE | 0.06 au (bohr)

81
doc/turbomole.rst Normal file
View File

@ -0,0 +1,81 @@
.. _turbomole_interface:
TURBOMOLE & phono3py calculation
==============================
The riper module of TURBOMOLE can be used to study periodic structures.
An example for TURBOMOLE is found in the ``example/Si-TURBOMOLE`` directory.
To invoke the TURBOMOLE interface, ``--turbomole`` option has to be always
specified::
% phono3py --turbomole [options] [arguments]
When the file name of the unit cell is different from the default one
(see :ref:`default_unit_cell_file_name_for_calculator`), ``-c`` option
is used to specify the file name. TURBOMOLE unit cell file parser used in
phono3py is the same as that in phonopy. It reads a limited number of
keywords that are documented in the phonopy web site
(http://atztogo.github.io/phonopy/turbomole.html#turbomole-interface).
.. _turbomole_workflow:
Workflow
---------
In the example Si-TURBOMOLE, the TURBOMOLE input file is ``control``.
This is the default file name for the TURBOMOLE interface,
so the -c control parameter is not needed.
1) Create supercells with displacements
2x2x2 conventional cell for 3rd order FC
3x3x3 conventional cell for 2nd order FC
::
% phono3py --turbomole --dim="2 2 2" --dim-fc2="3 3 3" -d
111 supercell directories (``supercell-00xxx``) for the third order
force constants are created. In addition, one supercell directory
(``supercell_fc2-00001``) is created for the second order
force constants.
2) Complete TURBOMOLE inputs need to be prepared manually in the subdirectories.
Note that supercells with displacements must not be relaxed in the
force calculations, because atomic forces induced by a small atomic
displacement are what we need for the phonon calculation. To get accurate
forces, $scfconv should be 10. Phono3py includes this data group automatically
in the ``control`` file. You also need to choose a k-point mesh for the force
calculations. TURBOMOLE data group $riper may need to be adjusted to improve
SCF convergence (see example files in subdirectory supercell-00001 for
further details)
Then, TURBOMOLE supercell calculations are executed to obtain forces on
atoms, e.g., as follows::
% riper > supercell-00001.out
3) Collect forces in ``FORCES_FC3`` and ``FORCES_FC2``::
% phono3py --turbomole --cf3 supercell-*
% phono3py --turbomole --cf2 supercell_fc2-*
``disp_fc3.yaml`` and ``disp_fc2.yaml`` are used to create ``FORCES_FC3`` and
``FORCES_FC2``, therefore they must exist in current directory. The Si-TURBOMOLE
example contains pre-calculated force files.
4) Calculate 3rd and 2nd order force constants in files ``fc3.hdf5`` and ``fc2.hdf5``::
% phono3py --turbomole --dim="2 2 2" --dim-fc2="3 3 3" --sym-fc
``--sym-fc`` is used to symmetrize second- and third-order force constants.
5) Thermal conductivity calculation::
% phono3py --turbomole --primitive-axis="0 1/2 1/2 1/2 0 1/2 1/2 1/2 0" --fc3 --fc2 --dim="2 2 2" --dim-fc2="3 3 3" --mesh="20 20 20" --br
``--primitive-axis`` is used to get the results for the primitive 2-atom cell
``--br`` invokes the Relaxation Time Approximation.
Carefully test the convergence with respect to ``--mesh``!

View File

@ -3,9 +3,10 @@ Si lattice thermal conductivity
CRYSTAL output file is crystal.o. This is the default file name
for the CRYSTAL interface, so the -c crystal.o parameter is not needed
1) Create displaced supercells:
(4x4x4 for 2nd order FC, 2x2x2 for 3rd order FC)
1) Create displaced supercells (4x4x4 for 2nd order FC, 2x2x2 for 3rd order FC):
phono3py --crystal --dim="2 2 2" --dim-fc2="4 4 4" -d
Complete CRYSTAL inputs can be prepared manually
or with the help of a template
(TEMPLATE for FC2-supercells, TEMPLATE3 for FC3-supercells)
@ -14,16 +15,23 @@ for the CRYSTAL interface, so the -c crystal.o parameter is not needed
Here the supercells have been pre-calculated (outputs.tar.gz).
3) Collect forces:
phono3py --crystal --cf3 supercell-*o
phono3py --crystal --cf2 supercell_fc2-*o
(Here the pre-calculated forces are available as FORCES_FC2 and FORCES_FC3)
Here the pre-calculated forces are available as FORCES_FC2 and FORCES_FC3
4) Create force constant files fc2.hdf5 and fc3.hdf5:
phono3py --crystal --dim="2 2 2" --dim-fc2="4 4 4" --sym-fc
5) Thermal conductivity calculation:
phono3py --crystal --fc3 --fc2 --dim="2 2 2" --dim-fc2="4 4 4" --mesh="20 20 20" --br
--br -> Relaxation time approximation
With 20x20x20 mesh, the lattice thermal conductivity at 300 K is 164 W m^-1 K^-1.
Add --isotope for isotope scattering
Check the effect of --nac for polar systems

View File

@ -0,0 +1,218 @@
# File: 1
# 1 0.0600000000000000 0.0000000000000000 0.0000000000000000
-0.0081048897 -0.0000000073 -0.0000000073
0.0000021030 -0.0000000064 -0.0000000065
0.0000012187 -0.0000000060 -0.0000000060
0.0000133465 0.0000001397 -0.0000000450
0.0000010082 0.0000078812 -0.0000125823
0.0000006440 -0.0000076659 -0.0000122518
0.0000133469 -0.0000001543 0.0000000325
0.0000010076 -0.0000078944 0.0000125690
0.0000006449 0.0000076531 0.0000122379
0.0000133465 -0.0000000448 0.0000001398
0.0000010083 -0.0000125823 0.0000078812
0.0000006440 -0.0000122518 -0.0000076659
-0.0000632757 0.0000124567 0.0000124566
0.0000009590 -0.0000017765 -0.0000017769
0.0000009094 0.0000017608 0.0000017608
-0.0000637886 0.0000124533 -0.0000124670
0.0000008829 0.0000017681 -0.0000017824
0.0000008298 -0.0000017841 0.0000017696
0.0000133469 0.0000000324 -0.0000001543
0.0000010076 0.0000125691 -0.0000078944
0.0000006448 0.0000122380 0.0000076531
-0.0000637885 -0.0000124670 0.0000124532
0.0000008829 -0.0000017825 0.0000017681
0.0000008298 0.0000017697 -0.0000017840
-0.0000632762 -0.0000124688 -0.0000124687
0.0000009597 0.0000017614 0.0000017614
0.0000009100 -0.0000017744 -0.0000017744
0.0001168891 0.0001089617 0.0000667144
0.0001221746 -0.0001133424 0.0000695831
0.0000018144 0.0000001663 -0.0000015754
0.0001168898 -0.0001088437 -0.0000667269
0.0001221760 0.0001134625 -0.0000695939
0.0000018148 -0.0000000462 0.0000015619
0.0000065340 0.0000000583 -0.0000000063
0.0000065193 0.0000000587 -0.0000000072
-0.0000006798 0.0000000593 -0.0000000075
0.0000104486 -0.0000150430 -0.0000025764
0.0000104703 0.0000150745 0.0000077169
-0.0000010655 0.0000021468 0.0000014454
0.0000103192 0.0000147049 -0.0000079180
0.0000103774 -0.0000145234 0.0000023274
-0.0000009223 0.0000022250 -0.0000014997
0.0000017730 -0.0000020543 0.0000088857
0.0000018777 -0.0000021025 -0.0000089476
0.0000016581 0.0000000601 0.0000000075
0.0000103190 -0.0000145854 0.0000079046
0.0000103776 0.0000146429 -0.0000023409
-0.0000009221 -0.0000021066 0.0000014863
0.0000104490 0.0000151624 0.0000025627
0.0000104692 -0.0000149560 -0.0000077302
-0.0000010657 -0.0000020282 -0.0000014593
0.0000017735 0.0000021706 -0.0000088991
0.0000018784 0.0000022183 0.0000089338
0.0000016573 0.0000000563 -0.0000000233
0.0001168892 0.0000667143 0.0001089618
0.0001221746 0.0000695831 -0.0001133424
0.0000018144 -0.0000015753 0.0000001663
0.0000104486 -0.0000025764 -0.0000150429
0.0000104702 0.0000077169 0.0000150747
-0.0000010655 0.0000014455 0.0000021467
0.0000103190 0.0000079046 -0.0000145854
0.0000103776 -0.0000023409 0.0000146429
-0.0000009221 0.0000014863 -0.0000021065
0.0001168897 -0.0000667268 -0.0001088436
0.0001221759 -0.0000695939 0.0001134625
0.0000018148 0.0000015618 -0.0000000462
0.0000103192 -0.0000079180 0.0000147049
0.0000103774 0.0000023274 -0.0000145234
-0.0000009222 -0.0000014996 0.0000022250
0.0000104490 0.0000025628 0.0000151624
0.0000104692 -0.0000077303 -0.0000149560
-0.0000010657 -0.0000014593 -0.0000020282
0.0000065340 -0.0000000064 0.0000000584
0.0000065192 -0.0000000072 0.0000000587
-0.0000006798 -0.0000000075 0.0000000593
0.0000017730 0.0000088856 -0.0000020543
0.0000018777 -0.0000089474 -0.0000021024
0.0000016581 0.0000000076 0.0000000600
0.0000017737 -0.0000088991 0.0000021706
0.0000018784 0.0000089339 0.0000022184
0.0000016572 -0.0000000232 0.0000000564
-0.0002549993 -0.0000691904 -0.0000691903
-0.0000016721 -0.0000077063 -0.0000077062
-0.0000015526 0.0000024901 0.0000024902
-0.0002562781 -0.0000708450 0.0000709637
-0.0000018721 0.0000024927 -0.0000023730
-0.0000016896 -0.0000077376 0.0000078573
0.0000069102 0.0000016229 0.0000001038
-0.0000007515 -0.0000014664 0.0000089355
-0.0000007655 -0.0000013814 -0.0000089229
-0.0002562781 0.0000709637 -0.0000708450
-0.0000018720 -0.0000023730 0.0000024928
-0.0000016896 0.0000078573 -0.0000077376
-0.0002549976 0.0000693098 0.0000693098
-0.0000016719 0.0000078254 0.0000078254
-0.0000015526 -0.0000023717 -0.0000023717
0.0000069094 -0.0000015057 0.0000000163
-0.0000007515 0.0000015825 -0.0000088176
-0.0000007660 0.0000014975 0.0000090421
0.0000069102 0.0000001037 0.0000016229
-0.0000007516 0.0000089355 -0.0000014664
-0.0000007656 -0.0000089228 -0.0000013814
0.0000069094 0.0000000162 -0.0000015057
-0.0000007514 -0.0000088176 0.0000015825
-0.0000007659 0.0000090421 0.0000014975
-0.0000666251 0.0000000593 0.0000000593
0.0000011012 0.0000000587 0.0000000586
0.0000010503 0.0000000578 0.0000000578
0.0019374869 0.0012962744 0.0012962743
-0.0000049981 0.0000176586 0.0000176586
0.0000006372 0.0000019867 0.0000019868
-0.0000186094 0.0000173647 0.0000210819
0.0000086431 0.0000099930 0.0000309540
-0.0000014977 0.0000010071 -0.0000061837
-0.0000098418 0.0000019361 -0.0000023068
0.0000010430 0.0000009760 -0.0000056525
0.0000027456 -0.0000016950 -0.0000007763
-0.0000186095 0.0000210818 0.0000173646
0.0000086432 0.0000309540 0.0000099930
-0.0000014977 -0.0000061838 0.0000010071
0.0001069308 0.0000306987 0.0000306986
-0.0000051188 -0.0000003111 -0.0000003112
-0.0000001128 0.0000017806 0.0000017806
-0.0000060281 -0.0000062765 -0.0000058853
0.0000005680 0.0000018444 0.0000112722
-0.0000014253 0.0000028757 -0.0000025848
-0.0000098418 -0.0000023068 0.0000019360
0.0000010430 -0.0000056526 0.0000009760
0.0000027456 -0.0000007763 -0.0000016951
-0.0000060281 -0.0000058852 -0.0000062765
0.0000005681 0.0000112723 0.0000018445
-0.0000014252 -0.0000025848 0.0000028757
0.0000387390 -0.0000009917 -0.0000009917
-0.0000008840 -0.0000025325 -0.0000025326
-0.0000003265 -0.0000000068 -0.0000000068
0.0019939163 0.0014079277 -0.0014079815
0.0000006129 0.0000018147 -0.0000018683
-0.0000059451 0.0000182831 -0.0000183376
-0.0000098138 0.0000018673 0.0000021839
0.0000028407 -0.0000015941 0.0000011497
0.0000007690 0.0000008550 0.0000060973
-0.0000190823 0.0000176773 -0.0000202390
-0.0000015591 0.0000008139 0.0000063109
0.0000076658 0.0000092213 -0.0000306129
-0.0000190817 0.0000201851 -0.0000177297
-0.0000015595 -0.0000063639 -0.0000008666
0.0000076661 0.0000305603 -0.0000092736
-0.0000061567 -0.0000062778 0.0000058733
-0.0000015074 0.0000027618 0.0000024734
0.0000004073 0.0000017851 -0.0000112885
0.0001083059 0.0000307533 -0.0000308054
-0.0000000592 0.0000018356 -0.0000018878
-0.0000053051 -0.0000003281 0.0000002766
-0.0000098137 -0.0000022373 -0.0000019176
0.0000028410 -0.0000012018 0.0000015421
0.0000007695 -0.0000061504 -0.0000009079
0.0000388095 -0.0000010050 0.0000009531
-0.0000003518 -0.0000000997 0.0000000480
-0.0000008802 -0.0000025710 0.0000025190
-0.0000061567 -0.0000059254 0.0000062246
-0.0000015072 -0.0000025242 -0.0000028139
0.0000004074 0.0000112365 -0.0000018375
0.0019939163 -0.0014079815 0.0014079277
0.0000006129 -0.0000018684 0.0000018148
-0.0000059451 -0.0000183376 0.0000182831
-0.0000190816 -0.0000177297 0.0000201851
-0.0000015595 -0.0000008667 -0.0000063639
0.0000076661 -0.0000092736 0.0000305603
-0.0000098137 -0.0000019176 -0.0000022372
0.0000028409 0.0000015420 -0.0000012018
0.0000007696 -0.0000009078 -0.0000061505
-0.0000098138 0.0000021839 0.0000018673
0.0000028406 0.0000011496 -0.0000015942
0.0000007689 0.0000060974 0.0000008550
-0.0000061568 0.0000058733 -0.0000062779
-0.0000015073 0.0000024734 0.0000027618
0.0000004073 -0.0000112886 0.0000017851
0.0000388094 0.0000009532 -0.0000010049
-0.0000003518 0.0000000479 -0.0000000996
-0.0000008803 0.0000025189 -0.0000025710
-0.0000190823 -0.0000202389 0.0000176772
-0.0000015591 0.0000063109 0.0000008139
0.0000076659 -0.0000306129 0.0000092213
0.0001083060 -0.0000308054 0.0000307533
-0.0000000591 -0.0000018877 0.0000018356
-0.0000053051 0.0000002767 -0.0000003282
-0.0000061568 0.0000062247 -0.0000059254
-0.0000015072 -0.0000028140 -0.0000025241
0.0000004074 -0.0000018376 0.0000112364
0.0019374865 -0.0012963275 -0.0012963275
-0.0000049993 -0.0000177115 -0.0000177116
0.0000006377 -0.0000020405 -0.0000020404
-0.0000098416 -0.0000019867 0.0000022529
0.0000010430 -0.0000010279 0.0000055992
0.0000027466 0.0000016423 0.0000007231
-0.0000186102 -0.0000174158 -0.0000211355
0.0000086429 -0.0000100450 -0.0000310079
-0.0000014988 -0.0000010594 0.0000061302
-0.0000098415 0.0000022529 -0.0000019868
0.0000010430 0.0000055991 -0.0000010280
0.0000027467 0.0000007231 0.0000016423
0.0000387402 0.0000009386 0.0000009386
-0.0000008841 0.0000024808 0.0000024808
-0.0000003278 -0.0000000436 -0.0000000436
-0.0000060276 0.0000058323 0.0000062249
0.0000005672 -0.0000113236 -0.0000018957
-0.0000014257 0.0000025339 -0.0000029272
-0.0000186102 -0.0000211356 -0.0000174157
0.0000086429 -0.0000310079 -0.0000100451
-0.0000014988 0.0000061302 -0.0000010594
-0.0000060276 0.0000062250 0.0000058324
0.0000005673 -0.0000018957 -0.0000113236
-0.0000014257 -0.0000029272 0.0000025340
0.0001069321 -0.0000307508 -0.0000307508
-0.0000051187 0.0000002595 0.0000002595
-0.0000001139 -0.0000018319 -0.0000018319

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
Si lattice thermal conductivity
The default file name for the TURBOMOLE interface is "control",
so the -c control parameter is not needed
1) Create displaced supercells
2x2x2 conventional cell for 3rd order FC
3x3x3 conventional cell for 2nd order FC
phono3py --turbomole --dim="2 2 2" --dim-fc2="3 3 3" -d
Complete TURBOMOLE inputs can be prepared manually
2) Run the supercell inputs with TURBOMOLE
Here the supercells have been pre-calculated (outputs.tar.gz).
3) Collect forces:
phono3py --turbomole --cf3 supercell-*
phono3py --turbomole --cf2 supercell_fc2-*
Here the pre-calculated forces are available as FORCES_FC2 and FORCES_FC3
4) Create 2nd and 3rd order force constant files fc2.hdf5 and fc3.hdf5
phono3py --turbomole --dim="2 2 2" --dim-fc2="3 3 3" --sym-fc
5) Thermal conductivity calculation
--primitive-axis is used to get the results for the primitive 2-atom cell
phono3py --turbomole --primitive-axis="0 1/2 1/2 1/2 0 1/2 1/2 1/2 0" --fc3 --fc2 --dim="2 2 2" --dim-fc2="3 3 3" --mesh="20 20 20" --br
--br -> Relaxation time approximation
With 20x20x20 mesh, the lattice thermal conductivity at 300 K is 142 W m^-1 K^-1.

View File

@ -0,0 +1,12 @@
$periodic 3
$lattice
10.357962933 0.0000000000 0.0000000000
0.0000000000 10.357962933 0.0000000000
0.0000000000 0.0000000000 10.357962933
$coord file=coord
$kpoints
nkpoints 6 6 6
$riper
pqmatdiag on
pqsingtol 1.0d-7
$end

View File

@ -0,0 +1,11 @@
$coord
2.58949092075 2.58949092075 2.58949092075 si
-2.58949092075 -2.58949092075 2.58949092075 si
-2.58949092075 2.58949092075 -2.58949092075 si
2.58949092075 -2.58949092075 -2.58949092075 si
0.00000000000 0.00000000000 0.00000000000 si
5.17898184151 5.17898184151 0.00000000000 si
5.17898184151 0.00000000000 5.17898184151 si
0.00000000000 5.17898184151 5.17898184151 si
$end

Binary file not shown.