File: README.md

package info (click to toggle)
phonopy 2.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,136 kB
  • sloc: python: 42,934; xml: 12,080; ansic: 3,227; cpp: 525; sh: 213; makefile: 20
file content (28 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (3)
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
# Example of the CP2K Phonopy interface for NaCl

To create supercells with displacements:

```console
$ phonopy --cp2k -c NaCl.inp -d --dim="2 2 2"
```

A perfect 2x2x2 supercell (`NaCl-supercell.inp`) and two 2x2x2 supercells
(`NaCl-supercell-001.inp`, resp. `NaCl-supercell-002.inp`) of the conventional
unit cell written in `NaCl.inp` are created.
In addition, `phonopy_disp.yaml` file is created.

The `amplitude` option is optionally specified for atomic displacement distance
in Angstrom. After force the calculations with the crystal structures in
NaCl-supercell-xxx.inp, it is needed to create `FORCE_SETS` file by running

```console
$ phonopy --cp2k -f NaCl-supercell-001-forces-1_0.xyz NaCl-supercell-002-forces-1_0.xyz
```

Here the XYZ files are supposed to contain the forces on atoms calculated
by CP2K. The `phonopy_disp.yaml` file has to be put in the current directory.
Now you can run phonon calculation, e.g.,

```console
$ phonopy --cp2k -c NaCl.inp -p band.conf
```