Professional Documents
Culture Documents
Run examples
Suppose phonopy's /bin is in the list of the execution path.
Examples are found at
http://phonopy.sourceforge.net/examples.html
% cd example/Si
% phonopy -p mesh.conf
% cd example/NaCl
% phonopy -p -nac band.conf
Installation
Download phonopy
http://sourceforge.net/projects/phonopy/
Install phonopy
% sudo apt-get install python-dev python-numpy \
python-matplotlib python-tk python-lxml python-yaml
% tar xvfz phonopy-1.1.tar.gz
% cd phonopy-1.1
% python setup.py install home=.
PYTHONPATH,
export PYTHONPATH=$PYTHONPATH:~/phonopy-1.1/lib/python
Phonopy is
Calculation steps
A supercell with a displacement
Forces
Displacement
Force collection
Phonon analysis
Force collection
Disp.yaml
vasprun.xml's
% phonopy -d -dim=2 2 2
% phonopy -f ALL_vapsrun.xml
Output files
- Supercell with
displacements (POSCAR-*)
- Displacement directions
(disp.yaml)
Output file
POSCAR
DIM tag
Phonopy
process
SPOSCAR, POSCAR-*
disp.yaml
VASP calculations
Post process
Phonopy post-process
POSCAR
DIM tag or
--dim option
band.yaml
FORCE_SETS or
FORCE_CONSTANTS
PRIMITIVE_AXIS tag
mesh.yaml
Computing system
PC
Plot
Cluster
Work station
Recent PCs are enough strong that usually PC can be Work station.
EDIFFG = -1.0e-08
IBRION = 2; ISIF = 3
=
=
=
=
=
=
=
=
=
=
=
=
=
=
Accurate
500
2
3
20
5
1.0e-08
-1.0e-08
38
0; SIGMA = 0.1
.FALSE.
.TRUE.
.FALSE.
.FALSE.
Force calculation
PREC
ENCUT
IBRION
NELMIN
EDIFF
IALGO
ISMEAR
LREAL
ADDGRID
LWAVE
LCHARG
=
=
=
=
=
=
=
=
=
=
=
Accurate
500
-1
5
1.0e-08
38
0; SIGMA = 0.1
.FALSE.
.TRUE.
.FALSE.
.FALSE.
Reciprocal space
Unit
cell
22
supercell
Harmonic oscillator
Harmonic potential well
Spring constant
Mass
k
m
x
x
Equation of motion
F=ma=-kx
A solution is
frequency
Mass
n-1
n+1
n+2
un-1
un
un+1
un+2
Dispersion relation
Solving equation of motion, frequency is
Transverse wave
q
Longitudinal wave
q
i, j, k, : Cartesian components
M, N, P, : Lattice points
Diagonalization is needed.
Multiple atoms in a unit cell are considered.
Indices ... are used for internal atomic labeling.
eigvals,eigvecs=numpy.linalg.eigh(dynmat)
Eigenvector w
Orthonormality
Completeness
*Here indices i, j run over the Catesian components and atom indices.
Imaginary mode
Imaginary frequency appears when crystal structure
is dynamically unstable through the imaginary mode.
Sometimes it relates to phase transition, or may be
used to check if virtual crystal structure is stable or not.
*In phonopy output, imaginary frequency is given as negative frequency.
(a>0, b<0)
Supercell approach
Thermal properties
Thermal properties are calculated from frequencies.
Quantum mechanics is necessary to derive them.
Helmholtz free energy
Entropy
Crystal symmetry
Crystal symmetry
Crystal structure has to be correctly symmetrized
according to the space group type.
Crystal symmetry gives high quality results and reduces
computational demands.
CIF database may have small number of decimals
e.g. 1/3 0.3333
VASP geometry optimization may result in breaking symmetry
in hexagonal case, etc.
Centrings of crystals
In space group type names in international table,
starting with F, I, C, A, and B means that
crystal has centring.
F: face centre
I: body centre
C, A, B: base centre
In these cases, the conventional unit cell is 1-, 2-, or
4-fold larger than the primitive cell.
Lattice parameters of the conventional and primitive
cells are related by transformation matrix.
(ITA2002 Sec. 5.1) *ITA: International table volume A
click
More on phonopy
Mesh sampling
Sample q-points on a uniform mesh
Calculations of DOS, PDOS, thermal properties belong to this mode.
List of q-points
Sample q-points listed in QPOINTS file
1/2 0 0
1/2 1/2 0
(2)
(3)
(1)
bandplot
Re-plot band structure from band.yaml by
% bandplot
Command options can be shown by
% bandplot -h
To print out frequencies in gnuplot data format
% bandplot --gnuplot
If you want to cut below 0,
% bandplot --fmin=0
Mesh sampling/DOS
n: number of calculated q-points, g: function used for broadening
DOS is obtained by
% phonopy --dos
or
% phonopy -p
(without plot)
(with plot)
Mesh sampling/PDOS
Partial DOS is obtained by
PDOS = 1 2, 3 4 5 6
and
% phonopy
DOS/Thermal properties
Helmholtz free energy, entropy, heat capacity at constant
volume are calculated from phonon frequencies by
% phonopy -t
With -p option, the resutls are plotted.
Options --tmax,--tmin,--tstep may be used together.
The output file is thermal_properties.yaml.
Thermal properties are re-plotted by
% propplot cv
% phonopy --nac
Born effective charge and dielectric tensors are
necessary to use this option and those are
summarized in BORN file.
BORN file
Unit conversion factor
14.400
2.00 0.00 0.00
0.00 2.00 0.00
1.98 0.00 0.00
0.00 1.98 0.00
-0.99 0.00 0.00
0.00 -0.99 0.00
...
0.00
0.00
0.00
0.00 2.00
0.00 1.98
0.00 -0.99
Quasi-harmonic approximation
(QHA)
QHA: Frequencies at volumes
% phonopy-qha -p -s e-v.dat \
thermal_properties_yaml_of_volume1 \
thermal_properties_yaml_of_volume2 \
thermal_properties_yaml_of_volume3 ...
The file e-v.dat contains volumes and
electronic total energies U(V) of unit cells.
140.030000
144.500000
149.060000
...
V
-42.132246
-42.600974
-42.949142
U
Eigenvector to displacement
Finite displacements
Amplitude
Default value is 0.01 .
Too small value enhances error of forces.
Too large value induces anharmonic contribution.
Plus-minus displacement
Take plus-minus as default
This often also compensates residual forces.
Only plus when symmetric (automatically searched from crystal symmetry)