Part 1: Graphene


1 Static-lattice approximation

By the end of this tutorial, you will be able to:

  • list some limitations of the static-lattice approximation
  • perform a relaxation of the ionic position and cell shape at fixed volume for 2D materials
  • set the verbosity of the OUTCAR file
  • visualize the crystal structure using py4vasp

1.1 Task

Relax the ionic positions and cell shape of graphene at fixed volume.

The standard ab-initio calculation uses a static lattice model, where the ions constitute a fixed, rigid, immobile periodic structure. That is, the electronic and ionic degrees of freedom are separated using the Born-Oppenheimer approximation. To find a stable structure, we typically perform the following sequence of steps

  1. chooses an initial structure
  2. treats the electrons quantum mechanically
  3. updates the ionic positions based on the ab-initio forces (Hellmann—Feyman theorem).

The static lattice model describes many phenomena, but there are considerable limitations when lattice dynamics play a dominant role. For instance, phonons contribute more to the specific heat than electrons for many materials. Furthermore, the static lattice model cannot describe thermal expansion, thermal conductivity, piezoelectricity, melting, the transmission of sound, the temperature-dependent intensity of X-ray diffraction, certain aspects of neutron scattering, and some optical and dielectric properties. An example for the latter is crystals that show resonances in their reflectivity at energies far below the bandgap.

1.2 Input

The input files to run this example are prepared at $TUTORIALS/phonon/e01_static-lattice. Check them out!

POSCAR


Graphene
   2.458
     1.0000000000000000    0.0000000000000000    0.0000000000000000
    -0.5000000000000000    0.8660254037844386    0.0000000000000000
    -0.0000000000000000   -0.0000000000000000    3.2546786004882016
  C
   2
Selective dynamics
Direct
  0.3333333333333333  0.6666666666666666  0.0000000000000000  T T F
  0.6666666666666666  0.3333333333333333  0.0000000000000000  T T F

INCAR


SYSTEM = graphene
NWRITE = 3
ENCUT = 400

# electronic
PREC = Accurate
EDIFF = 1e-8
ISMEAR = -1
SIGMA = 0.2 

# ionic
IBRION = 2 
NSW = 100 
ISIF = 4

KPOINTS


k mesh
 0
Gamma
 12 12 1
 0  0  0

POTCAR


PAW C_s 04May1998

The POSCAR file defines the graphene structure; a single layer of carbon atoms in a Honeycomb lattice. An 8-Å vacuum layer suppresses the interaction between periodic replica in the z direction. The selective dynamics blocks relaxations in z direction and does not impact the resulting graphene after the relaxation.

The INCAR file specifies tags regarding the electronic and ionic minimization. The electronic and ionic degrees of freedom are updated iteratively:

  1. For a given structure, the Kohn-Sham equations define the electronic ground state.
  2. The gradient of the electronic energy (Hellmann—Feyman theorem) yields the forces and stress acting on the structure.
  3. The IBRION tag determines the optimization algorithm for the structure (here: conjugate gradient) resulting in a new structure.
  4. VASP repeats step 1 to 3 until satisfying the convergence criterion (EDIFFG).

Note that EDIFF must be small enough to avoid a spurious convergence. If EDIFF is too large, the electronic density may not be converged well enough to obtain precise forces and stress. As a result, VASP may struggle to converge the structure or potentially end up with an incorrect solution. Therefore, it is a good idea to check whether the forces and stress really vanish using a tighter EDIFF cutoff.

What does ISIF=4 imply? Do we need to worry about Pulay stress in this calculation? Read the VASP Wiki to find the answer!

Click to see the answer!

Even though the volume is fixed, the lattice parameters are allowed to change. This may induce Pulay stress, because the number of G vectors satisfying the energy cutoff ENCUT may change. Take care of Pulay stress by restarting after a couple of ionic steps especially if large changes to the unit cell shape occurred. Alternatively, increase ENCUT to reduce the impact of the Pulay stress.

The verbosity of the OUTCAR file is controlled by the NWRITE tag. Here, we expect a rather short calculation including both electronic and ionic steps. Therefore, it is a good opportunity to increase verbosity and observe the additional output to the OUTCAR file.

The KPOINTS file defines a Γ-centered equidistant $\mathbf{k}$ mesh. Monolayers do not need a subdivision of the $\mathbf{k}$ mesh normal to the surface direction. Additional $\mathbf{k}$ points in the direction of the surface normal would merely describe the interaction between the periodic images of the graphene layer.

1.3 Calculation

Open a terminal, navigate to this example's directory and run VASP by entering the following:

cd $TUTORIALS/phonon/e01_*
mpirun -np 2 vasp_std

Visualize the relaxed graphene structure using py4vasp!

In [2]:
import py4vasp
mycalc = py4vasp.Calculation.from_path( "./e01_static-lattice")

mycalc.structure.plot()

NGLWidget()

To see the typical graphene layers, plot a 3x3x1 supercell using py4vasp!

In [3]:
import py4vasp
mycalc = py4vasp.Calculation.from_path( "./e01_static-lattice")

mycalc.structure.plot(supercell=(3,3,1))
NGLWidget()

Open the OUTCAR file and find information about the forces computed at each ionic iteration! Can you identify additional information due to the NWRITE tag? What is the force on each ionic site in the first and in the final iteration step? What is the convergence criterion? What is the value of the EDIFFG tag in this calculation?

Click to see the answer!

EDIFFG defaults to 10 times EDIFF = 1e-7. When you search for TOTAL-FORCE (eV/Angst) in the OUTCAR file, you see that the forces are zero at each step and the structure was already (meta-)stable.

In the next example, we continue with the structure in the POSCAR file because it is symmetrized.

1.4 Questions

  1. What are some limitations of the static-lattice approximation?
  2. How many subdivisions of the $\mathbf{k}$ mesh are appropriate perpendicular to the surface? Why?
  3. What does the NWRITE tag control?
  4. Which tag has to be changed to perform the calculation at varying volume?

2 Force constants using finite differences

By the end of this tutorial, you will be able to:

  • create supercells for phonon calculations
  • state the definition and compute the force constants using finite differences
  • judge when to set LREAL=Auto
  • explain the use of symmetry in the context of the finite differences algorithm

2.1 Task

Compute the force constants for graphene

We consider the Born-Oppenheimer energy surface $E(\{\mathbf{R}\})$. This ground-state energy of the electronic system depends on the position $\mathbf{R}_{I} = \mathbf{R}^0_{I} + \mathbf{u}_{I}$. Here, $\mathbf{u}_{I}$ is a the displacement of ion $I$ with respect to the ground state. Expanding the total energy $E$ around the unperturbed system with total energy $E^0$ yields $$\tag{1.1} E(\{\mathbf{R}\})= E(\{\mathbf{R}^0\}) - \sum_{I\alpha} F_{I\alpha} (\{\mathbf{R}^0\}) u_{I\alpha}+ \sum_{I\alpha J\beta} \Phi_{I\alpha J\beta} (\{\mathbf{R}^0\}) u_{I\alpha} u_{J\beta} + \mathcal{O}(\mathbf{R}^3), $$ where $\alpha$ and $\beta$ run over the Cartesian axis. The harmonic approximation truncates the expansion at the second derivative of the total energy with ionic displacements. This approximation is reasonable when the displacements are small with respect to the equilibrium position.

The name and sign convention of the expansion coefficients relate to their physical interpretation. The first-order coefficient is the force $F$ and the second-order one the Hessian or force-constant matrix $\Phi$: $$\tag{1.2} F_{I\alpha} (\{\mathbf{R}^0\}) = - \left. \frac{\partial E(\{\mathbf{R}\})}{\partial R_{I\alpha}} \right|_{\mathbf{R} =\mathbf{R^0}} ,\quad \Phi_{I\alpha J\beta} (\{\mathbf{R}^0\}) = \left. \frac{\partial E(\{\mathbf{R}\})}{\partial R_{I\alpha} \partial R_{J\beta}} \right|_{\mathbf{R} =\mathbf{R^0}} = - \left. \frac{\partial F_{I\alpha}(\{\mathbf{R}\})}{\partial R_{J\beta}} \right|_{\mathbf{R} =\mathbf{R^0}} . $$ The forces are computed using the Hellmann–Feynman theorem.

To capture phonon modes with wavelengths larger than the primitive unit cell, VASP requires a calculation of the appropriate supercell. Mind: Converge all phonon calculations with respect to the size of the supercell. When increasing the supercell size by a factor, reduce the $\mathbf{k}$-point mesh by the same factor so that the sampling density remains invariant.

2.2 Input

The input files to run this example are prepared at $TUTORIALS/phonon/e02_fin-diff-force-constants. The POSCAR file contains a previously relaxed primitive cell of graphene. In the following python code, we generate 3x3, 4x4, 5x5, and 6x6 supercells of graphene replicated in-plane. Run them and inspect the different generated POSCAR files.

In [4]:
from pymatgen.core import Structure
from pymatgen.io.vasp import Poscar

my_struc = Structure.from_file("./e02_fin-diff-force-constants/POSCAR")

# make a 3x3x1 supercell
my_struc.make_supercell([3,3,1])

# write supercell to POSCAR format with specified filename
Poscar(my_struc).write_file(filename="./e02_fin-diff-force-constants/supercell_3x3x1/POSCAR",significant_figures=16)

# A POSCAR file will appear at $TUTORIALS/MD/e02_fin-diff-force-constants/supercell_3x3x1/
# You may need to refresh the file browser to see it
In [5]:
my_struc = Structure.from_file("./e02_fin-diff-force-constants/POSCAR")
my_struc.make_supercell([4,4,1])
Poscar(my_struc).write_file(filename="./e02_fin-diff-force-constants/supercell_4x4x1/POSCAR",significant_figures=16)
In [6]:
my_struc = Structure.from_file("./e02_fin-diff-force-constants/POSCAR")
my_struc.make_supercell([5,5,1])
Poscar(my_struc).write_file(filename="./e02_fin-diff-force-constants/supercell_5x5x1/POSCAR",significant_figures=16)
In [7]:
my_struc = Structure.from_file("./e02_fin-diff-force-constants/POSCAR")
my_struc.make_supercell([6,6,1])
Poscar(my_struc).write_file(filename="./e02_fin-diff-force-constants/supercell_6x6x1/POSCAR",significant_figures=16)

POSCAR


Click to see supercell_3x3x1/POSCAR!
C18
1.0
7.3521657209830806 0.0000000000000000 0.0000000000000000
-3.6760828604915403 6.3671622872044793 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
18
direct
0.1111111111111133 0.2222222222222200 0.0000000000000000 C
0.1111111111111133 0.5555555555555532 0.0000000000000000 C
0.1111111111111133 0.8888888888888866 0.0000000000000000 C
0.4444444444444466 0.2222222222222200 0.0000000000000000 C
0.4444444444444466 0.5555555555555532 0.0000000000000000 C
0.4444444444444466 0.8888888888888866 0.0000000000000000 C
0.7777777777777801 0.2222222222222200 0.0000000000000000 C
0.7777777777777799 0.5555555555555532 0.0000000000000000 C
0.7777777777777799 0.8888888888888866 0.0000000000000000 C
0.2222222222222200 0.1111111111111133 0.0000000000000000 C
0.2222222222222200 0.4444444444444466 0.0000000000000000 C
0.2222222222222199 0.7777777777777799 0.0000000000000000 C
0.5555555555555532 0.1111111111111133 0.0000000000000000 C
0.5555555555555534 0.4444444444444466 0.0000000000000000 C
0.5555555555555534 0.7777777777777799 0.0000000000000000 C
0.8888888888888866 0.1111111111111133 0.0000000000000000 C
0.8888888888888866 0.4444444444444466 0.0000000000000000 C
0.8888888888888866 0.7777777777777799 0.0000000000000000 C
Click to see supercell_4x4x1/POSCAR!
C32
1.0
9.8028876279774408 0.0000000000000000 0.0000000000000000
-4.9014438139887204 8.4895497162726397 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
32
direct
0.0833333333333350 0.1666666666666650 0.0000000000000000 C
0.0833333333333350 0.4166666666666650 0.0000000000000000 C
0.0833333333333350 0.6666666666666650 0.0000000000000000 C
0.0833333333333349 0.9166666666666649 0.0000000000000000 C
0.3333333333333350 0.1666666666666650 0.0000000000000000 C
0.3333333333333350 0.4166666666666650 0.0000000000000000 C
0.3333333333333350 0.6666666666666650 0.0000000000000000 C
0.3333333333333349 0.9166666666666649 0.0000000000000000 C
0.5833333333333350 0.1666666666666650 0.0000000000000000 C
0.5833333333333350 0.4166666666666650 0.0000000000000000 C
0.5833333333333350 0.6666666666666650 0.0000000000000000 C
0.5833333333333349 0.9166666666666649 0.0000000000000000 C
0.8333333333333350 0.1666666666666650 0.0000000000000000 C
0.8333333333333350 0.4166666666666650 0.0000000000000000 C
0.8333333333333350 0.6666666666666650 0.0000000000000000 C
0.8333333333333349 0.9166666666666649 0.0000000000000000 C
0.1666666666666650 0.0833333333333350 0.0000000000000000 C
0.1666666666666650 0.3333333333333350 0.0000000000000000 C
0.1666666666666650 0.5833333333333349 0.0000000000000000 C
0.1666666666666649 0.8333333333333348 0.0000000000000000 C
0.4166666666666650 0.0833333333333350 0.0000000000000000 C
0.4166666666666650 0.3333333333333350 0.0000000000000000 C
0.4166666666666650 0.5833333333333349 0.0000000000000000 C
0.4166666666666649 0.8333333333333348 0.0000000000000000 C
0.6666666666666650 0.0833333333333350 0.0000000000000000 C
0.6666666666666650 0.3333333333333350 0.0000000000000000 C
0.6666666666666650 0.5833333333333349 0.0000000000000000 C
0.6666666666666649 0.8333333333333348 0.0000000000000000 C
0.9166666666666650 0.0833333333333350 0.0000000000000000 C
0.9166666666666650 0.3333333333333350 0.0000000000000000 C
0.9166666666666650 0.5833333333333349 0.0000000000000000 C
0.9166666666666649 0.8333333333333348 0.0000000000000000 C
Click to see supercell_5x5x1/POSCAR!
C50
1.0
12.2536095349718011 0.0000000000000000 0.0000000000000000
-6.1268047674859005 10.6119371453408000 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
50
direct
0.0666666666666680 0.1333333333333320 0.0000000000000000 C
0.0666666666666680 0.3333333333333320 0.0000000000000000 C
0.0666666666666680 0.5333333333333320 0.0000000000000000 C
0.0666666666666680 0.7333333333333321 0.0000000000000000 C
0.0666666666666680 0.9333333333333320 0.0000000000000000 C
0.2666666666666680 0.1333333333333320 0.0000000000000000 C
0.2666666666666680 0.3333333333333320 0.0000000000000000 C
0.2666666666666680 0.5333333333333320 0.0000000000000000 C
0.2666666666666680 0.7333333333333321 0.0000000000000000 C
0.2666666666666679 0.9333333333333320 0.0000000000000000 C
0.4666666666666680 0.1333333333333320 0.0000000000000000 C
0.4666666666666680 0.3333333333333320 0.0000000000000000 C
0.4666666666666680 0.5333333333333320 0.0000000000000000 C
0.4666666666666680 0.7333333333333321 0.0000000000000000 C
0.4666666666666680 0.9333333333333320 0.0000000000000000 C
0.6666666666666681 0.1333333333333320 0.0000000000000000 C
0.6666666666666681 0.3333333333333320 0.0000000000000000 C
0.6666666666666681 0.5333333333333320 0.0000000000000000 C
0.6666666666666681 0.7333333333333321 0.0000000000000000 C
0.6666666666666681 0.9333333333333320 0.0000000000000000 C
0.8666666666666680 0.1333333333333320 0.0000000000000000 C
0.8666666666666680 0.3333333333333320 0.0000000000000000 C
0.8666666666666680 0.5333333333333320 0.0000000000000000 C
0.8666666666666680 0.7333333333333321 0.0000000000000000 C
0.8666666666666680 0.9333333333333320 0.0000000000000000 C
0.1333333333333320 0.0666666666666680 0.0000000000000000 C
0.1333333333333320 0.2666666666666680 0.0000000000000000 C
0.1333333333333320 0.4666666666666680 0.0000000000000000 C
0.1333333333333320 0.6666666666666681 0.0000000000000000 C
0.1333333333333319 0.8666666666666679 0.0000000000000000 C
0.3333333333333320 0.0666666666666680 0.0000000000000000 C
0.3333333333333319 0.2666666666666680 0.0000000000000000 C
0.3333333333333319 0.4666666666666680 0.0000000000000000 C
0.3333333333333320 0.6666666666666681 0.0000000000000000 C
0.3333333333333319 0.8666666666666679 0.0000000000000000 C
0.5333333333333320 0.0666666666666680 0.0000000000000000 C
0.5333333333333320 0.2666666666666680 0.0000000000000000 C
0.5333333333333320 0.4666666666666680 0.0000000000000000 C
0.5333333333333320 0.6666666666666681 0.0000000000000000 C
0.5333333333333319 0.8666666666666679 0.0000000000000000 C
0.7333333333333321 0.0666666666666680 0.0000000000000000 C
0.7333333333333321 0.2666666666666680 0.0000000000000000 C
0.7333333333333321 0.4666666666666680 0.0000000000000000 C
0.7333333333333321 0.6666666666666681 0.0000000000000000 C
0.7333333333333321 0.8666666666666679 0.0000000000000000 C
0.9333333333333319 0.0666666666666680 0.0000000000000000 C
0.9333333333333319 0.2666666666666680 0.0000000000000000 C
0.9333333333333319 0.4666666666666680 0.0000000000000000 C
0.9333333333333319 0.6666666666666681 0.0000000000000000 C
0.9333333333333319 0.8666666666666679 0.0000000000000000 C
Click to see supercell_6x6x1/POSCAR!
C72
1.0
14.7043314419661613 0.0000000000000000 0.0000000000000000
-7.3521657209830806 12.7343245744089586 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
72
direct
0.0555555555555567 0.1111111111111100 0.0000000000000000 C
0.0555555555555566 0.2777777777777766 0.0000000000000000 C
0.0555555555555566 0.4444444444444433 0.0000000000000000 C
0.0555555555555567 0.6111111111111101 0.0000000000000000 C
0.0555555555555566 0.7777777777777765 0.0000000000000000 C
0.0555555555555567 0.9444444444444433 0.0000000000000000 C
0.2222222222222233 0.1111111111111100 0.0000000000000000 C
0.2222222222222233 0.2777777777777766 0.0000000000000000 C
0.2222222222222233 0.4444444444444433 0.0000000000000000 C
0.2222222222222233 0.6111111111111101 0.0000000000000000 C
0.2222222222222232 0.7777777777777765 0.0000000000000000 C
0.2222222222222233 0.9444444444444433 0.0000000000000000 C
0.3888888888888901 0.1111111111111100 0.0000000000000000 C
0.3888888888888899 0.2777777777777766 0.0000000000000000 C
0.3888888888888899 0.4444444444444433 0.0000000000000000 C
0.3888888888888900 0.6111111111111101 0.0000000000000000 C
0.3888888888888899 0.7777777777777765 0.0000000000000000 C
0.3888888888888900 0.9444444444444433 0.0000000000000000 C
0.5555555555555567 0.1111111111111100 0.0000000000000000 C
0.5555555555555567 0.2777777777777766 0.0000000000000000 C
0.5555555555555567 0.4444444444444433 0.0000000000000000 C
0.5555555555555567 0.6111111111111101 0.0000000000000000 C
0.5555555555555566 0.7777777777777765 0.0000000000000000 C
0.5555555555555567 0.9444444444444433 0.0000000000000000 C
0.7222222222222234 0.1111111111111100 0.0000000000000000 C
0.7222222222222233 0.2777777777777766 0.0000000000000000 C
0.7222222222222233 0.4444444444444433 0.0000000000000000 C
0.7222222222222234 0.6111111111111101 0.0000000000000000 C
0.7222222222222232 0.7777777777777765 0.0000000000000000 C
0.7222222222222234 0.9444444444444433 0.0000000000000000 C
0.8888888888888899 0.1111111111111100 0.0000000000000000 C
0.8888888888888898 0.2777777777777766 0.0000000000000000 C
0.8888888888888899 0.4444444444444433 0.0000000000000000 C
0.8888888888888899 0.6111111111111101 0.0000000000000000 C
0.8888888888888897 0.7777777777777765 0.0000000000000000 C
0.8888888888888899 0.9444444444444433 0.0000000000000000 C
0.1111111111111100 0.0555555555555567 0.0000000000000000 C
0.1111111111111100 0.2222222222222233 0.0000000000000000 C
0.1111111111111100 0.3888888888888899 0.0000000000000000 C
0.1111111111111100 0.5555555555555567 0.0000000000000000 C
0.1111111111111099 0.7222222222222232 0.0000000000000000 C
0.1111111111111100 0.8888888888888899 0.0000000000000000 C
0.2777777777777766 0.0555555555555567 0.0000000000000000 C
0.2777777777777767 0.2222222222222233 0.0000000000000000 C
0.2777777777777767 0.3888888888888899 0.0000000000000000 C
0.2777777777777767 0.5555555555555567 0.0000000000000000 C
0.2777777777777766 0.7222222222222232 0.0000000000000000 C
0.2777777777777767 0.8888888888888899 0.0000000000000000 C
0.4444444444444433 0.0555555555555567 0.0000000000000000 C
0.4444444444444433 0.2222222222222233 0.0000000000000000 C
0.4444444444444433 0.3888888888888899 0.0000000000000000 C
0.4444444444444433 0.5555555555555567 0.0000000000000000 C
0.4444444444444433 0.7222222222222232 0.0000000000000000 C
0.4444444444444433 0.8888888888888899 0.0000000000000000 C
0.6111111111111101 0.0555555555555567 0.0000000000000000 C
0.6111111111111101 0.2222222222222233 0.0000000000000000 C
0.6111111111111099 0.3888888888888899 0.0000000000000000 C
0.6111111111111101 0.5555555555555567 0.0000000000000000 C
0.6111111111111099 0.7222222222222232 0.0000000000000000 C
0.6111111111111101 0.8888888888888899 0.0000000000000000 C
0.7777777777777767 0.0555555555555567 0.0000000000000000 C
0.7777777777777766 0.2222222222222233 0.0000000000000000 C
0.7777777777777767 0.3888888888888899 0.0000000000000000 C
0.7777777777777767 0.5555555555555567 0.0000000000000000 C
0.7777777777777766 0.7222222222222232 0.0000000000000000 C
0.7777777777777767 0.8888888888888899 0.0000000000000000 C
0.9444444444444432 0.0555555555555567 0.0000000000000000 C
0.9444444444444433 0.2222222222222233 0.0000000000000000 C
0.9444444444444432 0.3888888888888899 0.0000000000000000 C
0.9444444444444432 0.5555555555555567 0.0000000000000000 C
0.9444444444444431 0.7222222222222232 0.0000000000000000 C
0.9444444444444433 0.8888888888888899 0.0000000000000000 C

INCAR


SYSTEM = graphene
ENCUT = 400

# electronic
PREC = Accurate
NELMIN = 5
EDIFF = 1e-8
ISMEAR = -1
SIGMA = 0.2 
LREAL = .FALSE.
LWAVE = .FALSE.
LCHARG = .FALSE.

# ionic (finite differences)
IBRION = 6 
POTIM  = 0.015

KPOINTS


Click to see supercell_3x3x1/KPOINTS!
K points
 0
Gamma
4  4  1
0  0  0
Click to see supercell_4x4x1/KPOINTS!
K points
 0
Gamma
3  3  1
0  0  0
Click to see supercell_5x5x1/KPOINTS!
K points
 0
Gamma
2  2  1
0  0  0
Click to see supercell_6x6x1/KPOINTS!
K points
 0
Gamma
2  2  1
0  0  0

POTCAR


PAW C_s 04May1998


In the INCAR file, IBRION=6 triggers a computation of the force constants and phonon modes using the finite differences approach.

2.3 Calculation

Open a terminal, navigate to this example's directory and run VASP by entering the following:

cd $TUTORIALS/phonon/e02_*
for d in 3x3x1 4x4x1 5x5x1 6x6x1
do
  cd supercell_$d
  mpirun -np 4 vasp_std
  cd ..
done

You will see an advice:

 -----------------------------------------------------------------------------
|                                                                             |
|               ----> ADVICE to this user running VASP <----                  |
|                                                                             |
|     You have a (more or less) 'large supercell' and for larger cells it     |
|     might be more efficient to use real-space projection operators.         |
|     Therefore, try LREAL= Auto in the INCAR file.                           |
|     Mind: For very accurate calculation, you might also keep the            |
|     reciprocal projection scheme (i.e. LREAL=.FALSE.).                      |
|                                                                             |
 -----------------------------------------------------------------------------

The calculation of the force constants takes some time for the larger 5x5x1 and 6x6x1 supercells (5 and 12 minutes respectively). You can proceed with the tutorial while the larger calculations are running.

In the meantime let us understand the projection operators and the meaning of the LREAL tag. Read the VASP Wiki to answer the following questions: What is aliasing? The evaluation of which part of the pseudo potential requires performing a projection? What is projected onto what? Which tag should be set in conjuction with LREAL=Auto? How is the appropriate setting for that tag determined? Should we use LREAL=Auto or LREAL=False here? Why?

Plot the supercells using py4vasp!

In [9]:
import py4vasp
supercell3 = py4vasp.Calculation.from_path("./e02_fin-diff-force-constants/supercell_3x3x1")

supercell3.structure[:].plot()
NGLWidget(max_frame=4)

py4vasp visualizes the ground state structure along with 4 perturbed ones used for the finite-difference algorithm. When you press iterate over the structure in a loop, recognize that one atom wiggles. Structure 0 is the unperturbed structure. VASP exploits the symmetry of the system, to extract the force constants of the entire system using only these small ionic displacements. Will the larger supercell have more degrees of freedom? Execute the next cell!

In [10]:
supercell4 = py4vasp.Calculation.from_path("./e02_fin-diff-force-constants/supercell_4x4x1")
supercell4.structure[:].plot()
NGLWidget(max_frame=4)

There are also 5 structures: the equilibrium structure and 2 ionic displacements for each of the 2 degrees of freedom. Why are there 2 degrees of freedom and not 3 $\times$ the number of ions in the unit cell?

Click to see a hint!

Symmetry operations map the carbon atoms onto each other. For the larger cell, a simple translation of the crystal maps all atoms into the primitive cell with 2 atoms. But there are also symmetry operations in the primitive cell to consider.

What is the length of the lattice vectors? Which angle do they enclose? What other symmetries might be taken into account?

Click to see the answer!

Graphene has a hexagonal structure and, thus, the in-plane lattice vectors have the same length. They enclose an angle of $60^\circ$ with a 6-fold rotational symmetry around the third lattice vector. This point-group operation reduces the number of degrees of freedom from 6 to 4, because for each site there is only one in-plane degree of freedom. The inversion symmetry reduces the number of degrees of freedom by two, because only one of the sites needs to be displaced.

If you use IBRION=5 instead of 6, the finite difference algorithm will not exploit the symmetry of the system.

In [11]:
supercell5 = py4vasp.Calculation.from_path("./e02_fin-diff-force-constants/supercell_5x5x1")
supercell5.structure[:].plot()
NGLWidget(max_frame=4)
In [12]:
supercell6 = py4vasp.Calculation.from_path("./e02_fin-diff-force-constants/supercell_6x6x1")
supercell6.structure[:].plot()
NGLWidget(max_frame=4)

The force constant matrix can be retrieved using py4vasp. Run the following command! How many entries do you find for the different supercells?

In [13]:
supercell3.force_constant.print()
Force constants (eV/Ų):
atom(i)  atom(j)   xi,xj     xi,yj     xi,zj     yi,xj     yi,yj     yi,zj     zi,xj     zi,yj     zi,zj
----------------------------------------------------------------------------------------------------------
     1        1   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     1        2    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     1        3    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     1        4     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     1        5    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     1        6     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     1        7     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
     1        8     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
     1        9    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     1       10    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     1       11    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     1       12    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     1       13    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     1       14    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     1       15    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     1       16    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     1       17    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     1       18     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     2        2   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     2        3    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     2        4     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     2        5     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     2        6    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     2        7    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     2        8     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
     2        9     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
     2       10    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     2       11    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     2       12    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     2       13    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     2       14    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     2       15    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     2       16     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     2       17    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     2       18    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     3        3   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     3        4    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     3        5     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     3        6     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     3        7     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
     3        8    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     3        9     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
     3       10    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     3       11    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     3       12    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     3       13    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     3       14    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     3       15    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     3       16    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     3       17     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     3       18    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     4        4   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     4        5    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     4        6    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     4        7     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     4        8    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     4        9     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     4       10    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     4       11    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     4       12     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     4       13    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     4       14    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     4       15    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     4       16    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     4       17    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     4       18    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     5        5   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     5        6    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     5        7     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     5        8     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     5        9    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     5       10     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     5       11    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     5       12    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     5       13    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     5       14    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     5       15    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     5       16    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     5       17    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     5       18    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     6        6   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     6        7    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     6        8     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
     6        9     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
     6       10    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     6       11     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     6       12    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     6       13    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     6       14    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     6       15    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     6       16    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     6       17    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     6       18    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     7        7   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     7        8    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     7        9    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
     7       10    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     7       11    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     7       12    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     7       13    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     7       14    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     7       15     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     7       16    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     7       17    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     7       18    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     8        8   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     8        9    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
     8       10    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     8       11    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     8       12    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     8       13     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     8       14    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     8       15    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     8       16    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     8       17    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     8       18    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     9        9   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
     9       10    -0.6946   -1.6062   -0.0000   -1.6062    1.1601    0.0000   -0.0000    0.0000    0.3787
     9       11    -0.7797    0.3355   -0.0000    0.3355   -0.3923   -0.0000   -0.0000   -0.0000   -0.9230
     9       12    -0.1986   -0.0000   -0.0000   -0.0000   -0.9734    0.0000   -0.0000    0.0000   -0.9230
     9       13    -0.6946    1.6062    0.0000    1.6062    1.1601    0.0000    0.0000    0.0000    0.3787
     9       14     2.0874   -0.0000   -0.0000   -0.0000   -1.6219   -0.0000   -0.0000   -0.0000    0.3787
     9       15    23.1422    7.2688   -0.0000    7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
     9       16    10.5523    0.0000    0.0000    0.0000   27.3389    0.0000    0.0000    0.0000    6.4368
     9       17    -0.7797   -0.3355    0.0000   -0.3355   -0.3923   -0.0000    0.0000   -0.0000   -0.9230
     9       18    23.1422   -7.2688   -0.0000   -7.2688   14.7489   -0.0000   -0.0000   -0.0000    6.4368
    10       10   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    10       11    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    10       12    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    10       13     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    10       14    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    10       15     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    10       16     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
    10       17     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
    10       18    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    11       11   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    11       12    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    11       13     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    11       14     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    11       15    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    11       16    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    11       17     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
    11       18     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
    12       12   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    12       13    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    12       14     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    12       15     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    12       16     1.4508    0.0000   -0.0000    0.0000    1.4508    0.0000   -0.0000   -0.0000    0.2259
    12       17    -0.7721    2.6048    0.0000    3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    12       18     4.8383    0.6344    0.0000   -0.6344   -2.6423   -0.0000   -0.0000    0.0000   -0.5585
    13       13   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    13       14    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    13       15    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    13       16     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    13       17    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    13       18     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    14       14   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    14       15    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    14       16     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    14       17     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    14       18    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    15       15   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    15       16    -0.7721    3.8736    0.0000    2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    15       17     1.4508    0.0000   -0.0000    0.0000    1.4508   -0.0000   -0.0000    0.0000    0.2259
    15       18     4.8383   -0.6344   -0.0000    0.6344   -2.6423    0.0000    0.0000   -0.0000   -0.5585
    16       16   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    16       17    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    16       18    -0.7721   -2.6048    0.0000   -3.8736    2.9682   -0.0000    0.0000    0.0000   -0.5585
    17       17   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
    17       18    -0.7721   -3.8736    0.0000   -2.6048    2.9682    0.0000    0.0000   -0.0000   -0.5585
    18       18   -65.2668   -0.0000    0.0000   -0.0000  -65.2668   -0.0000    0.0000   -0.0000  -14.7785
In [14]:
supercell4.force_constant.print()
Force constants (eV/Ų):
atom(i)  atom(j)   xi,xj     xi,yj     xi,zj     yi,xj     yi,yj     yi,zj     zi,xj     zi,yj     zi,zj
----------------------------------------------------------------------------------------------------------
     1        1   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     1        2    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     1        3    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
     1        4    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
     1        5     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     1        6    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     1        7     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     1        8     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     1        9     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     1       10     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     1       11    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     1       12     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     1       13     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     1       14     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     1       15     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     1       16    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
     1       17    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     1       18    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     1       19     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     1       20    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     1       21    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     1       22    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     1       23     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     1       24    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     1       25    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     1       26    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     1       27    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     1       28    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     1       29    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     1       30    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     1       31    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     1       32     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     2        2   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     2        3    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     2        4    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
     2        5     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     2        6     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     2        7    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     2        8     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     2        9     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     2       10     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     2       11     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     2       12    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     2       13    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
     2       14     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     2       15     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     2       16     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     2       17    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     2       18    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     2       19    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     2       20     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     2       21    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     2       22    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     2       23    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     2       24     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     2       25    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     2       26    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     2       27    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     2       28    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     2       29     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     2       30    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     2       31    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     2       32    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     3        3   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     3        4    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     3        5     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     3        6     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     3        7     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     3        8    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     3        9    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     3       10     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     3       11     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     3       12     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     3       13     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     3       14    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
     3       15     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     3       16     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     3       17     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     3       18    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     3       19    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     3       20    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     3       21     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     3       22    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     3       23    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     3       24    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     3       25    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     3       26    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     3       27    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     3       28    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     3       29    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     3       30     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     3       31    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     3       32    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     4        4   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     4        5    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     4        6     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     4        7     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     4        8     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     4        9     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     4       10    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     4       11     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     4       12     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     4       13     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     4       14     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     4       15    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
     4       16     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     4       17    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     4       18     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     4       19    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     4       20    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     4       21    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     4       22     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     4       23    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     4       24    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     4       25    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     4       26    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     4       27    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     4       28    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     4       29    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     4       30    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     4       31     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     4       32    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     5        5   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     5        6    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     5        7    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
     5        8    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
     5        9     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     5       10    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     5       11     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     5       12     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     5       13     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     5       14     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     5       15    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     5       16     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     5       17    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     5       18    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     5       19    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     5       20     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     5       21    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     5       22    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     5       23     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     5       24    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     5       25    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     5       26    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     5       27     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     5       28    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     5       29    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     5       30    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     5       31    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     5       32    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     6        6   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     6        7    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     6        8    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
     6        9     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     6       10     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     6       11    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     6       12     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     6       13     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     6       14     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     6       15     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     6       16    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     6       17     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     6       18    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     6       19    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     6       20    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     6       21    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     6       22    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     6       23    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     6       24     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     6       25    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     6       26    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     6       27    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     6       28     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     6       29    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     6       30    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     6       31    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     6       32    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     7        7   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     7        8    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     7        9     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     7       10     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     7       11     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     7       12    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     7       13    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     7       14     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     7       15     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     7       16     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     7       17    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     7       18     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     7       19    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     7       20    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     7       21     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     7       22    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     7       23    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     7       24    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     7       25     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     7       26    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     7       27    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     7       28    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     7       29    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     7       30    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     7       31    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     7       32    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     8        8   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     8        9    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     8       10     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     8       11     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     8       12     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     8       13     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
     8       14    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
     8       15     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
     8       16     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
     8       17    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     8       18    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     8       19     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     8       20    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     8       21    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     8       22     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     8       23    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     8       24    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     8       25    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     8       26     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     8       27    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
     8       28    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     8       29    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     8       30    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     8       31    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     8       32    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     9        9   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
     9       10    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
     9       11    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
     9       12    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
     9       13     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
     9       14    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
     9       15     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
     9       16     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
     9       17    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
     9       18    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
     9       19    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
     9       20    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     9       21    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     9       22    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
     9       23    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
     9       24     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
     9       25    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
     9       26    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
     9       27     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
     9       28    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
     9       29    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
     9       30    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
     9       31     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
     9       32    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    10       10   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    10       11    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    10       12    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    10       13     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    10       14     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    10       15    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    10       16     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    10       17    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    10       18    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    10       19    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    10       20    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    10       21     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    10       22    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    10       23    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    10       24    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    10       25    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    10       26    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    10       27    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    10       28     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    10       29    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    10       30    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    10       31    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    10       32     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    11       11   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    11       12    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    11       13     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    11       14     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    11       15     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    11       16    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    11       17    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    11       18    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    11       19    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    11       20    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    11       21    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    11       22     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    11       23    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    11       24    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    11       25     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    11       26    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    11       27    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    11       28    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    11       29     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    11       30    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    11       31    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    11       32    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    12       12   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    12       13    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    12       14     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    12       15     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    12       16     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    12       17    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    12       18    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    12       19    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    12       20    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    12       21    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    12       22    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    12       23     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    12       24    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    12       25    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    12       26     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    12       27    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    12       28    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    12       29    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    12       30     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    12       31    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    12       32    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    13       13   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    13       14    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    13       15    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    13       16    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    13       17    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    13       18    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    13       19     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    13       20    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    13       21    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    13       22    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    13       23    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    13       24    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    13       25    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    13       26    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    13       27    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    13       28     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    13       29    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    13       30    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    13       31     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    13       32    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    14       14   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    14       15    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    14       16    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    14       17    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    14       18    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    14       19    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    14       20     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    14       21    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    14       22    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    14       23    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    14       24    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    14       25     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    14       26    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    14       27    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    14       28    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    14       29    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    14       30    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    14       31    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    14       32     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    15       15   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    15       16    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    15       17     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    15       18    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    15       19    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    15       20    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    15       21    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    15       22    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    15       23    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    15       24    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    15       25    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    15       26     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    15       27    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    15       28    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    15       29     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    15       30    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    15       31    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    15       32    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    16       16   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    16       17    -0.3217   -1.2954   -0.0000   -1.2954    1.1741   -0.0000   -0.0000   -0.0000    0.4037
    16       18     0.4403    0.3247    0.0000    0.3247   -0.8298   -0.0000    0.0000   -0.0000   -0.4758
    16       19    -0.7350    0.0000   -0.0000    0.0000   -0.7350   -0.0000   -0.0000   -0.0000    0.1863
    16       20    -0.2311    0.7123   -0.0000    0.7123   -0.1584    0.0000   -0.0000    0.0000   -0.4758
    16       21    -0.4495   -0.0000    0.0000   -0.0000    0.1002   -0.0000    0.0000   -0.0000   -0.0138
    16       22    -0.0373   -0.2380    0.0000   -0.2380   -0.3121    0.0000    0.0000    0.0000   -0.0138
    16       23    -0.7935   -0.3876    0.0000   -0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    16       24    -0.2311   -0.7123    0.0000   -0.7123   -0.1584    0.0000    0.0000    0.0000   -0.4758
    16       25    -0.3217    1.2954    0.0000    1.2954    1.1741   -0.0000    0.0000   -0.0000    0.4037
    16       26    -0.0373    0.2380   -0.0000    0.2380   -0.3121    0.0000   -0.0000    0.0000   -0.0138
    16       27     1.9219    0.0000    0.0000    0.0000   -1.0696   -0.0000    0.0000   -0.0000    0.4037
    16       28    23.2859    7.4677   -0.0000    7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    16       29    10.3514   -0.0000   -0.0000   -0.0000   27.5974   -0.0000   -0.0000   -0.0000    6.3922
    16       30     0.4403   -0.3247   -0.0000   -0.3247   -0.8298    0.0000   -0.0000    0.0000   -0.4758
    16       31    -0.7935    0.3876    0.0000    0.3876    0.4039    0.0000    0.0000    0.0000   -0.4758
    16       32    23.2859   -7.4677   -0.0000   -7.4677   14.6629    0.0000   -0.0000    0.0000    6.3922
    17       17   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    17       18    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    17       19    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    17       20    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    17       21     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    17       22    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    17       23     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    17       24     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    17       25     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    17       26     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    17       27    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    17       28     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    17       29     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    17       30     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    17       31     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    17       32    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    18       18   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    18       19    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    18       20    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    18       21     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    18       22     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    18       23    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    18       24     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    18       25     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    18       26     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    18       27     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    18       28    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    18       29    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    18       30     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    18       31     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    18       32     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    19       19   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    19       20    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    19       21     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    19       22     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    19       23     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    19       24    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    19       25    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    19       26     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    19       27     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    19       28     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    19       29     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    19       30    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    19       31     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    19       32     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    20       20   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    20       21    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    20       22     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    20       23     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    20       24     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    20       25     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    20       26    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    20       27     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    20       28     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    20       29     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    20       30     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    20       31    -0.6933    2.8622    0.0000    3.5182    2.9905    0.0000   -0.0000   -0.0000   -0.5305
    20       32     4.8323    0.3280    0.0000   -0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    21       21   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    21       22    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    21       23    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    21       24    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    21       25     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    21       26    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    21       27     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    21       28     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    21       29     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    21       30     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    21       31    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    21       32     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    22       22   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    22       23    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    22       24    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    22       25     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    22       26     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    22       27    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    22       28     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    22       29     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    22       30     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    22       31     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    22       32    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    23       23   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    23       24    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    23       25     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    23       26     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    23       27     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    23       28    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    23       29    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    23       30     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    23       31     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    23       32     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    24       24   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    24       25    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    24       26     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    24       27     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    24       28     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    24       29     0.6212    0.2153   -0.0000    0.2153    0.3726   -0.0000    0.0000    0.0000    0.0602
    24       30    -0.1492    0.2438    0.0000    0.2438    0.1323   -0.0000    0.0000   -0.0000   -0.0206
    24       31     0.6212    0.2153    0.0000    0.2153    0.3726    0.0000   -0.0000   -0.0000    0.0602
    24       32     0.2730    0.0000   -0.0000    0.0000   -0.2900   -0.0000   -0.0000   -0.0000   -0.0206
    25       25   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    25       26    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    25       27    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    25       28    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    25       29     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    25       30    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    25       31     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    25       32     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    26       26   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    26       27    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    26       28    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    26       29     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    26       30     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    26       31    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    26       32     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    27       27   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    27       28    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    27       29     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    27       30     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    27       31     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    27       32    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    28       28   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    28       29    -0.6933    3.5182   -0.0000    2.8622    2.9905   -0.0000    0.0000    0.0000   -0.5305
    28       30     0.2483   -0.0000   -0.0000   -0.0000    0.7455   -0.0000   -0.0000   -0.0000    0.0602
    28       31     0.6212   -0.2153    0.0000   -0.2153    0.3726    0.0000    0.0000    0.0000    0.0602
    28       32     4.8323   -0.3280    0.0000    0.3280   -2.5352   -0.0000    0.0000   -0.0000   -0.5305
    29       29   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    29       30    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    29       31    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    29       32    -0.6933   -2.8622   -0.0000   -3.5182    2.9905    0.0000    0.0000   -0.0000   -0.5305
    30       30   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    30       31    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    30       32    -0.1492   -0.2438   -0.0000   -0.2438    0.1323   -0.0000   -0.0000   -0.0000   -0.0206
    31       31   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943
    31       32    -0.6933   -3.5182    0.0000   -2.8622    2.9905   -0.0000   -0.0000    0.0000   -0.5305
    32       32   -65.6216    0.0000   -0.0000    0.0000  -65.6216   -0.0000   -0.0000   -0.0000  -14.7943

VASP computes the force constants in Cartesian coordinates. In the case of graphene and other 2D materials, the in-plane force constants do not couple to the out-of-plane ones. This manifests as vanishing force constants for all off-diagonal elements involving in-plane ($x$ and $y$) and out-of-plane ($z$) components.

Let us plot the out-of-plane force constants as a function of the distance between different nuclei. With the following function, we select one atom index and evaluate the Cartesian distance to all the other atoms. We use the distance to the periodic image whenever that is smaller. Sorting the distances by magnitude allows plotting the corresponding out-of-plane force constants.

In [1]:
import numpy as np
from py4vasp import Calculation, plot

atom_index = 0

def out_of_plane_force_constants(supercell):
    calculation = Calculation.from_path(f"./e02_fin-diff-force-constants/supercell_{supercell}")
    structure = calculation.structure[0].read()
    
    # evaluate minimal distance for a structure with periodic boundaries
    distances = structure["positions"][atom_index] - structure["positions"]
    minimal_distances = distances - np.rint(distances)
    
    # convert to absolute distance
    cartesian_distances = minimal_distances @ structure["lattice_vectors"]
    absolute_distances = np.linalg.norm(cartesian_distances, axis=1)
    
    # sort the distances
    order = np.argsort(absolute_distances)
    absolute_distances = absolute_distances[order]
    
    # get out-of-plane force constants
    slice_ = lambda i: slice(3 * i, 3 * (i + 1))
    ii = slice_(atom_index)
    force_constants = calculation.force_constant.read()["force_constants"]
    force_constants = np.array([force_constants[ii, slice_(j)][2, 2] for j in order])
    
    # skip the atom interacting with itself
    return absolute_distances[1:], force_constants[1:], supercell

plot(
    out_of_plane_force_constants("3x3x1"),
    xlabel='distance (Å)',
    ylabel='Force-constant (eV/Ų)',
)

As you can see the force constants oscillate between negative and positive values when considering neighbors at different distances.

What does it mean to have negative force-constants? (Click to see the answer)

The second order force constants are the second derivative of the total energy with respect to two ionic positions. The sign of the force constants determines whether the total energy increases or decreases when these two ions move relative to each other. This begs the question whether negative force constants mean that the structure is meta-stable. Here, meta-stable means a structure with vanishing forces but decreasing total energy upon distortion. However, the appearance of some negative force constants is not sufficient for a meta-stable structure. While the displacement of one pair of ions may lower the total energy, other positive force constants coupling different ion pairs may counterbalance them yielding an overall stable structure.

For the in-plane force constants, we define a local reference frame based on the relative positions of the relevant ion pair. We rotate the 3x3 force constant matrix ($\mathbf{\Phi}$) for the ion pair $(I, J)$ to a new reference the coordinate vectors point along the longitudinal and the transverse direction as well as normal to the monolayer. Here the longitudinal direction $\hat{\mathbf{r}}_{\mathrm L}$ points from one atom to the other and the transverse direction $\hat{\mathbf{r}}_{\mathrm T}$ is perpendicular to it in the plane. The matrix $\mathbf{R} = (\hat{\mathbf{r}}_{\mathrm{L}}, \hat{\mathbf{r}}_{\mathrm T}, \hat{\mathbf{z}})$ and rotates the force-constants matrix $\tilde{\mathbf{\Phi}} = \mathbf{R}^T \mathbf{\Phi} \mathbf{R}$. We plot the longitudinal and transverse components of $\tilde{\mathbf{\Phi}}$ as a function of the distance between the atoms.

In [2]:
import numpy as np
from py4vasp import Calculation, plot

def in_plane_force_constants(calculation, atom_index):
    structure = calculation.structure[0].read()
    
    # evaluate minimal distance in period boundaries
    distances = structure["positions"][atom_index] - structure["positions"]
    minimal_distances = distances - np.rint(distances)
    
    # convert to absolute distance
    cartesian_distances = minimal_distances @ structure["lattice_vectors"]
    absolute_distances = np.linalg.norm(cartesian_distances, axis=1)
    
    # sort the distances (skip the atom interacting with itself)
    order = np.argsort(absolute_distances)[1:]
    absolute_distances = absolute_distances[order]
    
    # construct rotation matrix
    r_l = (cartesian_distances[order].T / absolute_distances).T
    zz = [0,0,1]
    r_t = np.cross(r_l, zz)
    rotations = np.array([[l, t, zz] for l, t in zip(r_l, r_t)])
    
    # split force constants into longitudinal and transversal
    force_constants = calculation.force_constant.read()["force_constants"]
    slice_ = lambda i: slice(3 * i, 3 * (i + 1))
    ii = slice_(atom_index)
    longitudinal = []
    transversal = []
    for R, j in zip(rotations, order):
        Φ = force_constants[ii, slice_(j)]
        Φt = R.T @ Φ @ R
        longitudinal.append(Φt[0,0])
        transversal.append(Φt[1,1])
       
    return (absolute_distances,longitudinal,"longitudinal"), (absolute_distances,transversal,"transversal")
    

atom_index = 0
my_calc3 = Calculation.from_path("./e02_fin-diff-force-constants/supercell_3x3x1")

plot(
    *in_plane_force_constants(my_calc3,atom_index),
    xlabel='distance (Å)',
    ylabel='force-constant (eV/Ų)',
    )

Try plotting the force constants for different supercell sizes.

In [3]:
my_calc4 = Calculation.from_path("./e02_fin-diff-force-constants/supercell_4x4x1")

plot(
    *in_plane_force_constants(my_calc4,atom_index),
    xlabel='distance (Å)',
    ylabel='force-constant (eV/Ų)',
    )
In [4]:
my_calc5 = Calculation.from_path("./e02_fin-diff-force-constants/supercell_5x5x1")

plot(
    *in_plane_force_constants(my_calc5,atom_index),
    xlabel='distance (Å)',
    ylabel='force-constant (eV/Ų)',
    )
What additional information do you obtain when increasing the supercell size?

When increasing the supercell size the force constants for a larger number of atom pairs are computed.

We can increase the accuracy of the phonon dispersion by including force-constants on increasingly large supercells (i.e considering more distant interacting ions). Because the magnitude of these force-constants decreases for pairs of atoms that are further apart we know that the phonon dispersion will eventually converge with reasonably sized supercells. There are a few notable exceptions to this that we should point out:

  1. When ions with different charges move, they form dipoles which interact with a slowly decaying force constants (we will tackle this topic in the next tutorial).
  2. For metals and semi-metals the nuclei movement leads to changes in the Fermi level which leads to changes total energy. This interaction is often long-ranged and is known as a Kohn anomally.

2.4 Questions

  1. What is the difference between IBRION=5 and 6?
  2. What is the definition of the force constants?
  3. What does the LREAL tag control?
  4. Why is the size of the supercell important for a precise phonon dispersion calculation?

3 Phonon dispersion

By the end of this tutorial, you will be able to:

  • compute and plot the phonon dispersion

3.1 Task

Compute the phonon dispersion of graphene.

In the harmonic approximation, the ionic Hamiltonian yields $$ H = \frac{1}{2} \sum_{I\alpha} M_I \dot{u}^2_{I\alpha} + \frac{1}{2} \sum_{I\alpha J\beta} \Phi_{I\alpha J\beta} u_{I\alpha} u_{J\beta}, $$ which leads to the following equation of motion: $$ M_I \ddot{u}_{I\alpha} = - \Phi_{I\alpha J\beta} u_{J\beta} $$

When we consider solutions in the form of plane waves traveling parallel to the wave vector $\mathbf{q}$, i.e., $$ \mathbf{u}^\mu_{I\alpha}(\mathbf{q},t) = \frac{1}{2} \frac{1}{\sqrt{M_I}} \left\{ A^\mu(\mathbf{q}) \varepsilon^{\mu }_{I\alpha}(\mathbf{q}) e^{ i [\mathbf{q} \cdot \mathbf{\mathbf{R}}_I -\omega_\mu(\mathbf{q})t]}+ A^{\mu*}(\mathbf{q}) \varepsilon^{\mu*}_{I\alpha}(\mathbf{q}) e^{-i [\mathbf{q} \cdot \mathbf{\mathbf{R}}_I -\omega_\mu(\mathbf{q})t]} \right\} $$ determining the phonon modes $\varepsilon^{\mu }_{I\alpha}(\mathbf{q})$ and vibrational frequencies $\omega^\mu(\mathbf{q})$ amounts to solving: $$\tag{2} \sum_{J\beta} \frac{1}{\sqrt{M_I M_J}} \Phi_{I\alpha J\beta} e^{i\mathbf{q} \cdot (\mathbf{R}_J-\mathbf{R}_I)} \varepsilon^{\mu }_{J\beta}(\mathbf{q}) = \omega^\mu(\mathbf{q})^2 \varepsilon^{\mu }_{I\alpha}(\mathbf{q}) $$ where $\Phi_{I\alpha J\beta}$ is the Hessian with respect to the ionic site $I, J$ with mass $M_{I/J}$ and direction $\alpha,\beta=x, y, z$. $A(\mathbf q)$ is the phonon amplitude and $\varepsilon^{\mu }_{I\alpha}(\mathbf q)$ is the phonon normal modes of vibration. With $N$ ions in the supercell, the dimension of the dynamical matrix $\frac{1}{\sqrt{M_I M_J}} \Phi_{I\alpha J\beta} e^{i\mathbf{q} \cdot (\mathbf{R}_J-\mathbf{R}_I)}$ is thus $3N$, which yields a set of $3N$ linear homogeneous equations for each wave vector $\mathbf q$.

Solving the eigenvalue problem yields eigenvectors $\varepsilon^{\mu }_{I\alpha}(\mathbf q)$ and eigenvalues $\omega^\mu(\mathbf{q})$.

We can write the positions of the atoms in the supercell $\mathbf{R}_I$ in terms of integer multiples of the lattice vectors of the unit cell $\mathbf{L}_i$ such that $\mathbf{R}_I = \mathbf{L}_i + \mathbf{r}_i$ with $\mathbf{r}_i$ being the position of the ion in the unit cell. This allows us to compute the phonons in the unit cell using the following equation $$ \sum_{L_i,L_j} \sum_{i\beta} \frac{1}{\sqrt{M_i M_j}} \Phi_{I\alpha J\beta} e^{i\mathbf{q} \cdot (\mathbf{L}_j-\mathbf{L}_i+\mathbf{r}_j-\mathbf{r}_i)} \varepsilon^{\mu }_{j\beta}(\mathbf{q}) = \omega^\mu(\mathbf{q})^2 \varepsilon^{\mu }_{i\alpha}(\mathbf{q}) $$ in this case, the dynamical matrix has dimension $3n$ with $n$ the number of atoms in the unit cell.

The phonon frequencies in the primitive cell are commensurate for $\mathbf{q}$ points that satisfy $$ \mathbf q = \frac{s_1}{n_1} \mathbf{b}_1 + \frac{s_2}{n_2} \mathbf{b}_2 + \frac{s_3}{n_3} \mathbf{b}_3 $$ where $s_i = 1...n_i$, with $n_i$ the number of repetitions of the unit cell in each direction, $\mathbf q$ is restricted to the first Brillouin zone in reciprocal space spanned by $\mathbf{b}_1$, $\mathbf{b}_2$, and $\mathbf{b}_3$.

3.2 Input

The input files to run this example are prepared at $TUTORIALS/phonon/e03_dispersion. Check them out!

POSCAR


Click to see supercell_3x3x1/POSCAR!
C18
1.0
7.3521657209830806 0.0000000000000000 0.0000000000000000
-3.6760828604915403 6.3671622872044793 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
18
direct
0.1111111111111133 0.2222222222222200 0.0000000000000000 C
0.1111111111111133 0.5555555555555532 0.0000000000000000 C
0.1111111111111133 0.8888888888888866 0.0000000000000000 C
0.4444444444444466 0.2222222222222200 0.0000000000000000 C
0.4444444444444466 0.5555555555555532 0.0000000000000000 C
0.4444444444444466 0.8888888888888866 0.0000000000000000 C
0.7777777777777801 0.2222222222222200 0.0000000000000000 C
0.7777777777777799 0.5555555555555532 0.0000000000000000 C
0.7777777777777799 0.8888888888888866 0.0000000000000000 C
0.2222222222222200 0.1111111111111133 0.0000000000000000 C
0.2222222222222200 0.4444444444444466 0.0000000000000000 C
0.2222222222222199 0.7777777777777799 0.0000000000000000 C
0.5555555555555532 0.1111111111111133 0.0000000000000000 C
0.5555555555555534 0.4444444444444466 0.0000000000000000 C
0.5555555555555534 0.7777777777777799 0.0000000000000000 C
0.8888888888888866 0.1111111111111133 0.0000000000000000 C
0.8888888888888866 0.4444444444444466 0.0000000000000000 C
0.8888888888888866 0.7777777777777799 0.0000000000000000 C
Click to see supercell_4x4x1/POSCAR!
C32
1.0
9.8028876279774408 0.0000000000000000 0.0000000000000000
-4.9014438139887204 8.4895497162726397 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
32
direct
0.0833333333333350 0.1666666666666650 0.0000000000000000 C
0.0833333333333350 0.4166666666666650 0.0000000000000000 C
0.0833333333333350 0.6666666666666650 0.0000000000000000 C
0.0833333333333349 0.9166666666666649 0.0000000000000000 C
0.3333333333333350 0.1666666666666650 0.0000000000000000 C
0.3333333333333350 0.4166666666666650 0.0000000000000000 C
0.3333333333333350 0.6666666666666650 0.0000000000000000 C
0.3333333333333349 0.9166666666666649 0.0000000000000000 C
0.5833333333333350 0.1666666666666650 0.0000000000000000 C
0.5833333333333350 0.4166666666666650 0.0000000000000000 C
0.5833333333333350 0.6666666666666650 0.0000000000000000 C
0.5833333333333349 0.9166666666666649 0.0000000000000000 C
0.8333333333333350 0.1666666666666650 0.0000000000000000 C
0.8333333333333350 0.4166666666666650 0.0000000000000000 C
0.8333333333333350 0.6666666666666650 0.0000000000000000 C
0.8333333333333349 0.9166666666666649 0.0000000000000000 C
0.1666666666666650 0.0833333333333350 0.0000000000000000 C
0.1666666666666650 0.3333333333333350 0.0000000000000000 C
0.1666666666666650 0.5833333333333349 0.0000000000000000 C
0.1666666666666649 0.8333333333333348 0.0000000000000000 C
0.4166666666666650 0.0833333333333350 0.0000000000000000 C
0.4166666666666650 0.3333333333333350 0.0000000000000000 C
0.4166666666666650 0.5833333333333349 0.0000000000000000 C
0.4166666666666649 0.8333333333333348 0.0000000000000000 C
0.6666666666666650 0.0833333333333350 0.0000000000000000 C
0.6666666666666650 0.3333333333333350 0.0000000000000000 C
0.6666666666666650 0.5833333333333349 0.0000000000000000 C
0.6666666666666649 0.8333333333333348 0.0000000000000000 C
0.9166666666666650 0.0833333333333350 0.0000000000000000 C
0.9166666666666650 0.3333333333333350 0.0000000000000000 C
0.9166666666666650 0.5833333333333349 0.0000000000000000 C
0.9166666666666649 0.8333333333333348 0.0000000000000000 C
Click to see supercell_5x5x1/POSCAR!
C50
1.0
12.2536095349718011 0.0000000000000000 0.0000000000000000
-6.1268047674859005 10.6119371453408000 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
50
direct
0.0666666666666680 0.1333333333333320 0.0000000000000000 C
0.0666666666666680 0.3333333333333320 0.0000000000000000 C
0.0666666666666680 0.5333333333333320 0.0000000000000000 C
0.0666666666666680 0.7333333333333321 0.0000000000000000 C
0.0666666666666680 0.9333333333333320 0.0000000000000000 C
0.2666666666666680 0.1333333333333320 0.0000000000000000 C
0.2666666666666680 0.3333333333333320 0.0000000000000000 C
0.2666666666666680 0.5333333333333320 0.0000000000000000 C
0.2666666666666680 0.7333333333333321 0.0000000000000000 C
0.2666666666666679 0.9333333333333320 0.0000000000000000 C
0.4666666666666680 0.1333333333333320 0.0000000000000000 C
0.4666666666666680 0.3333333333333320 0.0000000000000000 C
0.4666666666666680 0.5333333333333320 0.0000000000000000 C
0.4666666666666680 0.7333333333333321 0.0000000000000000 C
0.4666666666666680 0.9333333333333320 0.0000000000000000 C
0.6666666666666681 0.1333333333333320 0.0000000000000000 C
0.6666666666666681 0.3333333333333320 0.0000000000000000 C
0.6666666666666681 0.5333333333333320 0.0000000000000000 C
0.6666666666666681 0.7333333333333321 0.0000000000000000 C
0.6666666666666681 0.9333333333333320 0.0000000000000000 C
0.8666666666666680 0.1333333333333320 0.0000000000000000 C
0.8666666666666680 0.3333333333333320 0.0000000000000000 C
0.8666666666666680 0.5333333333333320 0.0000000000000000 C
0.8666666666666680 0.7333333333333321 0.0000000000000000 C
0.8666666666666680 0.9333333333333320 0.0000000000000000 C
0.1333333333333320 0.0666666666666680 0.0000000000000000 C
0.1333333333333320 0.2666666666666680 0.0000000000000000 C
0.1333333333333320 0.4666666666666680 0.0000000000000000 C
0.1333333333333320 0.6666666666666681 0.0000000000000000 C
0.1333333333333319 0.8666666666666679 0.0000000000000000 C
0.3333333333333320 0.0666666666666680 0.0000000000000000 C
0.3333333333333319 0.2666666666666680 0.0000000000000000 C
0.3333333333333319 0.4666666666666680 0.0000000000000000 C
0.3333333333333320 0.6666666666666681 0.0000000000000000 C
0.3333333333333319 0.8666666666666679 0.0000000000000000 C
0.5333333333333320 0.0666666666666680 0.0000000000000000 C
0.5333333333333320 0.2666666666666680 0.0000000000000000 C
0.5333333333333320 0.4666666666666680 0.0000000000000000 C
0.5333333333333320 0.6666666666666681 0.0000000000000000 C
0.5333333333333319 0.8666666666666679 0.0000000000000000 C
0.7333333333333321 0.0666666666666680 0.0000000000000000 C
0.7333333333333321 0.2666666666666680 0.0000000000000000 C
0.7333333333333321 0.4666666666666680 0.0000000000000000 C
0.7333333333333321 0.6666666666666681 0.0000000000000000 C
0.7333333333333321 0.8666666666666679 0.0000000000000000 C
0.9333333333333319 0.0666666666666680 0.0000000000000000 C
0.9333333333333319 0.2666666666666680 0.0000000000000000 C
0.9333333333333319 0.4666666666666680 0.0000000000000000 C
0.9333333333333319 0.6666666666666681 0.0000000000000000 C
0.9333333333333319 0.8666666666666679 0.0000000000000000 C
Click to see supercell_6x6x1/POSCAR!
C72
1.0
14.7043314419661613 0.0000000000000000 0.0000000000000000
-7.3521657209830806 12.7343245744089586 0.0000000000000000
0.0000000000000000 0.0000000000000000 8.0000000000000000
C
72
direct
0.0555555555555567 0.1111111111111100 0.0000000000000000 C
0.0555555555555566 0.2777777777777766 0.0000000000000000 C
0.0555555555555566 0.4444444444444433 0.0000000000000000 C
0.0555555555555567 0.6111111111111101 0.0000000000000000 C
0.0555555555555566 0.7777777777777765 0.0000000000000000 C
0.0555555555555567 0.9444444444444433 0.0000000000000000 C
0.2222222222222233 0.1111111111111100 0.0000000000000000 C
0.2222222222222233 0.2777777777777766 0.0000000000000000 C
0.2222222222222233 0.4444444444444433 0.0000000000000000 C
0.2222222222222233 0.6111111111111101 0.0000000000000000 C
0.2222222222222232 0.7777777777777765 0.0000000000000000 C
0.2222222222222233 0.9444444444444433 0.0000000000000000 C
0.3888888888888901 0.1111111111111100 0.0000000000000000 C
0.3888888888888899 0.2777777777777766 0.0000000000000000 C
0.3888888888888899 0.4444444444444433 0.0000000000000000 C
0.3888888888888900 0.6111111111111101 0.0000000000000000 C
0.3888888888888899 0.7777777777777765 0.0000000000000000 C
0.3888888888888900 0.9444444444444433 0.0000000000000000 C
0.5555555555555567 0.1111111111111100 0.0000000000000000 C
0.5555555555555567 0.2777777777777766 0.0000000000000000 C
0.5555555555555567 0.4444444444444433 0.0000000000000000 C
0.5555555555555567 0.6111111111111101 0.0000000000000000 C
0.5555555555555566 0.7777777777777765 0.0000000000000000 C
0.5555555555555567 0.9444444444444433 0.0000000000000000 C
0.7222222222222234 0.1111111111111100 0.0000000000000000 C
0.7222222222222233 0.2777777777777766 0.0000000000000000 C
0.7222222222222233 0.4444444444444433 0.0000000000000000 C
0.7222222222222234 0.6111111111111101 0.0000000000000000 C
0.7222222222222232 0.7777777777777765 0.0000000000000000 C
0.7222222222222234 0.9444444444444433 0.0000000000000000 C
0.8888888888888899 0.1111111111111100 0.0000000000000000 C
0.8888888888888898 0.2777777777777766 0.0000000000000000 C
0.8888888888888899 0.4444444444444433 0.0000000000000000 C
0.8888888888888899 0.6111111111111101 0.0000000000000000 C
0.8888888888888897 0.7777777777777765 0.0000000000000000 C
0.8888888888888899 0.9444444444444433 0.0000000000000000 C
0.1111111111111100 0.0555555555555567 0.0000000000000000 C
0.1111111111111100 0.2222222222222233 0.0000000000000000 C
0.1111111111111100 0.3888888888888899 0.0000000000000000 C
0.1111111111111100 0.5555555555555567 0.0000000000000000 C
0.1111111111111099 0.7222222222222232 0.0000000000000000 C
0.1111111111111100 0.8888888888888899 0.0000000000000000 C
0.2777777777777766 0.0555555555555567 0.0000000000000000 C
0.2777777777777767 0.2222222222222233 0.0000000000000000 C
0.2777777777777767 0.3888888888888899 0.0000000000000000 C
0.2777777777777767 0.5555555555555567 0.0000000000000000 C
0.2777777777777766 0.7222222222222232 0.0000000000000000 C
0.2777777777777767 0.8888888888888899 0.0000000000000000 C
0.4444444444444433 0.0555555555555567 0.0000000000000000 C
0.4444444444444433 0.2222222222222233 0.0000000000000000 C
0.4444444444444433 0.3888888888888899 0.0000000000000000 C
0.4444444444444433 0.5555555555555567 0.0000000000000000 C
0.4444444444444433 0.7222222222222232 0.0000000000000000 C
0.4444444444444433 0.8888888888888899 0.0000000000000000 C
0.6111111111111101 0.0555555555555567 0.0000000000000000 C
0.6111111111111101 0.2222222222222233 0.0000000000000000 C
0.6111111111111099 0.3888888888888899 0.0000000000000000 C
0.6111111111111101 0.5555555555555567 0.0000000000000000 C
0.6111111111111099 0.7222222222222232 0.0000000000000000 C
0.6111111111111101 0.8888888888888899 0.0000000000000000 C
0.7777777777777767 0.0555555555555567 0.0000000000000000 C
0.7777777777777766 0.2222222222222233 0.0000000000000000 C
0.7777777777777767 0.3888888888888899 0.0000000000000000 C
0.7777777777777767 0.5555555555555567 0.0000000000000000 C
0.7777777777777766 0.7222222222222232 0.0000000000000000 C
0.7777777777777767 0.8888888888888899 0.0000000000000000 C
0.9444444444444432 0.0555555555555567 0.0000000000000000 C
0.9444444444444433 0.2222222222222233 0.0000000000000000 C
0.9444444444444432 0.3888888888888899 0.0000000000000000 C
0.9444444444444432 0.5555555555555567 0.0000000000000000 C
0.9444444444444431 0.7222222222222232 0.0000000000000000 C
0.9444444444444433 0.8888888888888899 0.0000000000000000 C```

</details>

INCAR


#computation of the phonon dispersion
PHON_NWRITE = -2
LPHON_DISPERSION = .TRUE.
LPHON_POLAR=.FALSE.
LPHON_READ_FORCE_CONSTANTS=.TRUE.

vaspin.h5


Contains the force constants in a format readable by VASP


QPOINTS


wave vector q
50
line
reciprocal
  0.00000000   0.00000000   0.00000000 GAMMA
  0.50000000   0.00000000   0.00000000 M

  0.50000000   0.00000000   0.00000000 M
  0.33333333   0.33333333   0.00000000 K

  0.33333333   0.33333333   0.00000000 K
  0.00000000   0.00000000   0.00000000 GAMMA

KPOINTS


Click to see supercell_3x3x1/KPOINTS!
K points
 0
Gamma
4  4  1
0  0  0
Click to see supercell_4x4x1/KPOINTS!
K points
 0
Gamma
3  3  1
0  0  0
Click to see supercell_5x5x1/KPOINTS!
K points
 0
Gamma
2  2  1
0  0  0
Click to see supercell_6x6x1/KPOINTS!
K points
 0
Gamma
2  2  1
0  0  0

POTCAR


PAW C_s 04May1998
4.00000000000000


Check the meaning of all tags used in the INCAR file and make comments in the file!

3.3 Calculation

Open a terminal, navigate to this example's directory, copy the vaspout.h5 and POSCAR file of the previous example to vaspin.h5 and run VASP by entering the following:

cd $TUTORIALS/phonon/e03_*
for d in 3x3x1 4x4x1 5x5x1 6x6x1
do
  cd supercell_$d
  cp ../../e02_*/supercell_$d/POSCAR POSCAR
  cp ../../e02_*/supercell_$d/vaspout.h5 vaspin.h5
  mpirun -np 1 vasp_std
  cd ..
done

Plot the phonon dispersion using py4vasp!

In [5]:
import py4vasp
supercell3 = py4vasp.Calculation.from_path( "./e03_dispersion/supercell_3x3x1")
supercell4 = py4vasp.Calculation.from_path( "./e03_dispersion/supercell_4x4x1")
supercell5 = py4vasp.Calculation.from_path( "./e03_dispersion/supercell_5x5x1")
supercell6 = py4vasp.Calculation.from_path( "./e03_dispersion/supercell_6x6x1")

supercell3.phonon_band.plot()
In [6]:
supercell4.phonon_band.plot()
In [7]:
supercell5.phonon_band.plot()
In [8]:
supercell6.phonon_band.plot()

With the following code you can get the phonon dispersions for all the different supercell sizes on the same plot

In [9]:
import py4vasp
from plotly.subplots import make_subplots

calculations = ['3x3','4x4','5x5','6x6']

#create plotly figure
final_fig = make_subplots()
for i,label in enumerate(calculations):
    fig = py4vasp.Calculation.from_path(f"./e03_dispersion/supercell_{label}x1").phonon_band.to_plotly()
    for d in fig.data:
        d.name = label
        d['line'].color=None  # reset the color scheme
    final_fig.add_traces(fig.data)

final_fig.update_layout(fig.layout)
final_fig.update_layout(autosize=False,width=800,showlegend=True,margin={"l":0,"r":0,"t":0,"b":0})

What are the differences between the different phonon dispersions?

Near the Γ point, a saddle point appears when the supercell size is too small. These slightly imaginary modes might appear again for larger supercell sizes but tend to disappear when the supercell size is large enough. The convergence of these quadratic 'soft' phonon modes in 2D materials is particularly difficult and a lot of care should be taken when performing these calculations.

Negative phonon frequencies indicate of instability in the structure. While the forces were zero in the equilibrium structure, the distortion according to a certain phonon mode lowers the total energy. This implies that the structure is metastable (given the approximations and limitations of the current approach: 0 K and harmonic approximation). Sometimes these instabilities are signatures of an inaccurate calculation or an artifact of the interpolation of the phonon dispersion using a truncated set of real space force constants (finite supercell size). Sometimes they have physical meaning and distorting according to that phonon mode and performing ionic relaxation leads to a structure with different symmetry and lower energy.

In the present calculation (and in most cases) these negative modes near the Γ point are indicative of a problem with the calculation. This can be insufficient supercell size or too low ENCUT.

Look at the phonon frequencies at the Γ point for the different supercell sizes.

Why does the 5x5 supercell yield optical phonon frequencies different from all the other calculations?

While for the 3x3, 4x4, and 6x6 supercells we kept the k point sampling consistent (i.e. decreasing with increasing supercell size) for the 5x5 supercell this is not possible so we used a coarser k point mesh. The difference between the frequencies at Γ for 5x5 and the other supercells will be small when the k-point sampling is dense enough.

As we have mentioned before, at the q points commensurate with the supercell the phonon frequencies are computed exactly. All the other points are obtained through interpolation. To illustrate this better, we show how increasing the size of the supercell corresponds to sampling the Brillouin zone with a Γ centered k point mesh. Shown below are the plots of the reciprocal Brillouin zone with the k points generated from a regular sampling of the Brillouin zone corresponding to a certain supercell size.

title width=800

For a given supercell if we interpolate the dynamical matrix along a path in reciprocal space that passes on the points in blue and diagonalize it, we will obtain the exact phonon frequencies (given the current approximations: 0 K, harmonic approximation, DFT, etc..) only on those blue points. Everywhere else the results are obtained through interpolation.

What is the minimum supercell size we need to compute the phonon frequencies at the M point?

2x2

What is the minimum supercell size we need to compute the phonon frequencies at the K point?

3x3

Now you can interactively visualize the phonon modes. This is done using the phononwebsite.

Executing the following code will use the phononwebsite to visualize the phonon modes. First a .json file will be created from the vasput.h5 file.

In [25]:
#create json file from hdf5
from phononweb.vaspphonon import VaspPhonon
vp = VaspPhonon("graphene",filename="e03_dispersion/supercell_4x4x1/vaspout.h5")
vp.write_json()

This will create a graphene.json file in the current working directory. Download this file and visualize it using the Choose-file option on https://henriquemiranda.github.io/phononwebsite/phonon.html.

On the left panel, you can see the structural information, choose the number of repetitions of the unit cell to be displayed, change the camera, change the amplitude of the oscillations or display vectors in the directions where the atoms are moving.

The middle panel shows the structure oscillating according to some phonon modes. You can move it around by dragging it with the mouse or zoom in/out by scrolling.

The right panel shows the phonon dispersion. By clicking on any point in it you can select which phonon mode should be animated in the central panel.

3.4 Questions

  1. How far does the wavelength of $\mathbf q=0$ phonons extend in the crystal?
  2. What is phonon dispersion?
  3. How are the force constants and the phonon frequencies connected?

Good job! You have finished part 1 of the tutorial on phonons!

Go to Top $\uparrow$