2022-07-18 16:17:09 +08:00
.. _abacus_interface:
ABACUS & phonopy calculation
=========================================
How to run
-----------
A procedure of ABACUS-phonopy calculation is as follows:
2023-05-15 16:11:30 +08:00
1) To obtain supercells with displacements, run phonopy::
2022-07-18 16:50:59 +08:00
2023-05-15 16:11:30 +08:00
% phonopy -d --dim="2 2 2" --abacus
2022-07-18 16:17:09 +08:00
2022-07-18 16:34:14 +08:00
In this example, 2x2x2 supercells are created. `` STRU.in `` and
2022-07-18 16:50:59 +08:00
`` STRU-{number} `` give the perfect supercell and supercells
with displacements, respectively. `` phonopy_disp.yaml `` is also created.
2022-07-18 16:34:14 +08:00
This file contains information on displacements. Perhaps the supercell files are
stored in `` disp-{number} `` directories, then ABACUS calculations are
executed in these directories.
2022-07-18 16:17:09 +08:00
2023-05-15 16:11:30 +08:00
2) Calculate forces on atoms in the supercells with displacements. For each SCF calculation, you should specify `` stru_file `` with `` STRU-{number} `` and `` cal_force=1 `` in INPUT in order to calculate force using ABACUS. Be careful not to relax the structures
2022-07-18 16:17:09 +08:00
2023-05-15 16:11:30 +08:00
3) Then create `` FORCE_SETS `` file using ABACUS inteface::
2022-07-18 16:17:09 +08:00
2022-07-18 16:34:14 +08:00
% phonopy -f ./disp-001//OUT*/running* .log ./disp-002//OUT*/running* .log ...
2022-07-18 16:17:09 +08:00
2022-07-18 16:34:14 +08:00
Two examples with different settings of basis sets are found in `` example/Al-ABACUS `` .