Exercise 10 Instructions
Exercise 10 Instructions
Contents
1. Cohesive Energy for Bulk Phases of Si 1
1.1. Setting up the Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. Structure-Dependent Total Energies for a Small k-Point Grid . . . . . . . . . . . 4
1.3. Plot the Resulting Total Energies . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4. Converging the k-Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5. Converging the Basis Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1
# Physical s e t t i n g s
xc pw−l d a
spin none
relativistic atomic zora scalar
# SCF s e t t i n g s
sc accuracy rho 1E −4
sc accuracy eev 1E −2
sc accuracy etot 1E −5
# k− g r i d s e t t i n g s ( t o be a d j u s t e d )
k grid nkx nky nkz
Please keep these basic settings as default for this exercise (unless specified otherwise).
You should have seen most of these keywords in the previous exercise for free atoms, but one
thing is new: the k grid specification.
As outlined in class, the different Kohn-Sham eigenfunctions of a periodic solid, ϕi (r) can be
classified a little further by refining the index i ≡ {k, n}. According to the Bloch theorem, the
different (inequivalent) eigenfunctions on the (periodic) lattice can be written as
Here, uk,n (r) is a so-called Bloch function, which has the same periodicity as the crystal itself. In
contrast, the phase factor exp(ikr) need not have any periodicity at all. All that the translational
symmetry of the crystal dictates is that the Bloch functions are only inequivalent for the set
of three-dimensional, real-valued vectors {k} that are located in a unit volume of the so-called
reciprocal space. This space is spanned by vectors {Gi , i = 1, . . . , 3} that are defined by
ai · Gj = 2πδij (2)
we must sample a sufficiently large number of points k in a practical calculation to get a well
converged result.
You will note that the number of possible points k is in principle infinite (the possible values of
k are continuous and therefore infinitely many even within the unit volume of reciprocal space).
Thus, the sum over k should formally rather be an integral – in practice, however, we can only
compute such an integral as a sum over specific points on a computer (and we have, somewhat
precariously, left out any integration weights in the expression above).
For a practical calculation, it thus remains to specify these k-points. This is what the k grid
setting does, by explicitly setting up a number of integer grid divisions nkx, nky, nkz along each
of the reciprocal lattice vectors Gi , as illustrated in Figure 1 for a two-dimensional example. In
three dimensions, the total number of k-grid points is thus nkx·nky·nkz.
The other players in the FHI-aims input sample above should all be well familiar. The Perdew-
Wang LDA (xc pw-lda) exchange-correlation functional[2] will be used for all calculations. Silicon
would turn out to be nonmagnetic, so no explicit spin treatment is needed. The relativistic
treatment triggered by the relativistic atomic zora scalar setting is not strictly necessary for
silicon. The nuclear charge of silicon (Z = 14) is still small enough to allow for a non-relativistic
2
Figure 1: Illustration of the k-grid for the 2D rectangular lattice. The reciprocal vectors G1 and
G2 define a rectangular reciprocal cell. A k-space grid of 3 × 3 (example) divides the
reciprocal cell into 9 sub-rectangles (green lines) and evaluates the total energy based
on the light green and the grey dots for the reciprocal cell integration.
treatment. Since the correction is computationally inexpensive, it does not hurt to use it, either.
Just be sure to never compare total energies from different relativistic settings.
Please use the default light species settings for Si in
/programs/FHI-aims/aimsfiles/species defaults/light/14 Si default.
3
where R is the Cartesian position of the specified atom.
/opt/jmol-14.0.7/jmol.sh geometry.in
To get periodically repeated units of the lattice, open the console in Jmol and type
load ”geometry.in” {3 3 3}
The numbers give the repetition of the structure along the corresponding lattice vector.
Task:
• Prepare a control.in file using 3 × 3 × 3 k-points and the settings given in the
introduction.
• Use a shell script (see below) to calculate total energies of the fcc, bcc, and
diamond phases of Si as a function of lattice constant a. Consider 7 different
values of a in steps of 0.1 Å, centered around the lattice parameters given above,
for each structure.
The basic settings in control.in were given near the beginning of this documents. To start
out, please use:
k grid 3 3 3
We will later find that, for a small unit cell, this k-point density is by no means enough – but
let us go ahead anyway, for now.
Once all input files are set up for a given structure, you can run the parallel version of FHI-aims
by
4
#! / b i n / b a s h − l
s e t −e # Stop on e r r o r
f o r A i n 3 . 5 3 . 6 3 . 7 3 . 8 3 . 9 4 . 0 4 . 1 ; do
echo ” P r o c e s s i n g l a t t i c e c o n s t a n t $A Angstrom . ”
mkdir $A
# Use t h i s c o n s t r u c t f o r s i m p l e c a l c u l a t i o n s . As v a l u e s
# a r e r e p l a c e d v e r b a t i m , a l w a y s p u t them i n t o ”(” , ” ) ” .
A2=$ ( python −c ” p r i n t ($A ) / 2 . 0 ” )
# Write geometry . i n
c a t >$A/ geometry . i n <<EOF
# f c c s t r u c t u r e w i t h l a t t i c e c o n s t a n t $A Angstrom .
l a t t i c e v e c t o r 0 . 0 $A2 $A2
l a t t i c e v e c t o r $A2 0 . 0 $A2
l a t t i c e v e c t o r $A2 $A2 0 . 0
atom frac 0.0 0.0 0.0 Si
EOF
# Write c o n t r o l . i n
cp c o n t r o l . i n $A/ c o n t r o l . i n
For the other two phases, bcc and diamond, you will have to create very similar shell scripts.
Please copy these scripts to dedicated folders for bcc and diamond Si.
To make your script executable, type
#! / b i n / b a s h − l
s e t −e # Stop on e r r o r
echo ”# l a t t i c e c o n s t a n t s i n Angstrom , e n e r g i e s i n eV” > e n e r g i e s . d a t
f o r A i n 3 . 5 3 . 6 3 . 7 3 . 8 3 . 9 4 . 0 4 . 1 ; do
# Check f o r c o n v e r g e n c e o f c a l c u l a t i o n .
i f ( ! g r e p −−q u i e t ” S e l f −c o n s i s t e n c y c y c l e c o n v e r g e d . ” \
<$A/ aims . out ) | | \
( ! g r e p −−q u i e t ”Have a n i c e day . ” \
<$A/ aims . out ) ; then
echo ” ‘ pwd ‘ / $A/ aims . out d i d not c o n v e r g e ! ”
fi
# Write r e s u l t s t o d a t a f i l e .
echo ”$A $E” >> e n e r g i e s . dat
done
This script extracts the total energies and writes them to a file called energies.dat, along with the
lattice constants. You will need to adapt this script to the other phases of silicon. In particular,
adjust the lattice constants.
5
Note that, in order to compare total energies for different phases of Si, it is advantageous to
write out the total energy per atom, not per unit cell. This makes a difference for the diamond
structure. For example, use the expression Eatom=$(python -c ”print ($E)/2.0”) for the diamond
structure and puts it into the bash variable $Eatom. You can then write this variable instead
of $E to the data file.
You might find that, with the current computational settings, the diamond Si phase is unfavor-
able compared to the other two phases. However, the experimentally most stable phase is the
diamond structure. We will next show that the too coarse 3 × 3 × 3 k-grid is the reason for this
disagreement.
Task:
• Calculate the total energies for only one of the Si phases as a function of the
lattice constant for k-grids of size 8 × 8 × 8, 12 × 12 × 12, and 16 × 16 × 16.
Otherwise, use the same computational settings and the same lattice constants
as before.
• Prepare a plot with all total energies drawn against lattice constant. Add the
previously calculated 3 × 3 × 3 results, too.
• Which k-grid would you use to achieve convergence within 10 meV?
You should dedicate a separate directory to every series of these calculations. The calculations
should be done exactly as in the last problem but with the appropriate changes to control.in.
Discuss the resulting curves and decide which k-space grid would have been “good enough” for
your results.
6
1.5. Converging the Basis Set
In the following, just use a 12 × 12 × 12 k-grid for all three phases.
Task:
• Calculate the total energies for your chosen phase of Si as a function of the
lattice constant for the minimal basis and for the full tier1 basis sets. Use the
same lattice constants and computational settings as before together with the
12 × 12 × 12 k-grid.
• Again, prepare a plot with the total energies. Add the results for the mini-
mal+spd basis set (the default for the light species settings) from the k-point
convergence test above.
In order to change the basis size settings, look into the species dependent settings within con-
trol.in. There, you will find a line starting with
# ”First tier ”
Each line after this defines a group of basis functions (radial function type and angular momen-
tum) which is added to the minimal basis. In the “light” defaults for Si, there is one additional
radial function for each valence channel (s and p) as well as a d function.
To run FHI-aims with a minimal basis instead, simply comment out these three lines by prepend-
ing a ‘#’ character.
To run FHI-aims with a full tier1 basis set, uncomment all four lines following # “First tier” by
removing the initial ‘#’ character.
Can you make a statement about the accuracy of the total energy (how strongly does it change
and in which direction), as well as about the computational effort?
You may also want to look at the Si species defaults for “tight” settings, found in
/programs/FHI-aims/aimsfiles/species defaults/tight/14 Si default.
Here, you will see that a number of other parameters change (grids, Hartree potential, extent
of basis functions, and number of basis functions) in addition to “just” the basis set.
The resulting binding curves should show that the experimentally observed diamond structure
of silicon is most stable in LDA among the crystal structures studied here.
7
2.2. Cohesive Energies as a Function of Volume per Atom
The cohesive energy (Ecoh ) of a crystal is the energy per atom needed to separate it into its
constituent neutral atoms. Ecoh is defined as
Task:
• Perform a total energy calculation of the free silicon atom
• Calculate the cohesive energies and the volume of the crystal per atom for all
the structures treated in this section so far.
• Plot the cohesive energies of all three phases into one plot, using the atomic
volume as the x axis.
For the free atom calculation in the LDA, simply use the following settings: (this will lead to a
spherically symmetric atomic state, but we do not need to worry about this here)
# Physical s e t t i n g s
xc pw−l d a
spin collinear
d e f a u l t i n i t i a l m o m e n t hund
relativistic atomic zora scalar
...
cut pot 8 1.5 1.0
basis dep cutoff 0.0
...
G = E − T S + pV . (6)
8
2.3. Birch-Murnaghan Equation of State
The lowest-energy lattice parameter a0 is an important quantity which we can calculate from
our data. In principle, this could be done with a quadratic fit for E(a) or E(V ). Here, we
will discuss and use a thermodynamically motivated and more accurate fitting function, the
Birch-Murnaghan Equation of State[3, 4]. The energy per atom (E = −Ecoh ) is expressed as a
function of the atomic volume (V = Vatom )
0
!
V (V0 /V )B B0 V 0
E(V ) = E0 + B0 0 · 0
+1 − 0 (7)
B B −1 B −1
V0 and E0 are the lowest-energy atomic volume and energy per atom, respectively. B0 is the
so-called bulk modulus and B00 its derivative with respect to pressure. Equation (7) can be
derived by assuming a constant pressure derivative B00 .
Task:
• Fit the cohesive energy data for the three phases to the Birch- Murnaghan
Equation of State using the program murn.py.
• Determine the lattice constant a0 , the bulk modulus B0 , and the cohesive energy
per atom Ecoh at minimum energy for each phase.
• Compare the above quantities for the diamond phase with the experimental
values of a = 5.430 Å, B0 = 98.8 GPa, and Ecoh = 4.63 eV[5].
• Plot the cohesive energies E(V) with respect to the atomic volume for all three
phases.
The fitting program murn.py is part of the FHI-aims distribution. You can get some documen-
tation by typing
murn . py − −h e l p
The script takes an input file with two columns, the first containing the volume and the second
total energies. Using the file name murn.in as an example, one can simply use the script with
The program then writes the parameters V0 , E0 , B0 , and B00 for the given data set to the output
file, here called ’fit.dat’.
As a quick plausibility check of the fit, you can use the option -p to get a visual impression. The
script performs no unit conversions, so the bulk modulus B0 is given in units of eVÅ−3 because
the cohesive energies and atomic volumes were provided in eV and Å3 , respectively. You can
use GNU units to convert to SI units. For example, use
9
to convert 0.5 eVÅ3 to about 80 GPa. The optimal lattice constant can be calculated from the
equilibrium atomic volume V0 by
p
3
a0 = Nsc V0 (8)
with Nsc the number of atoms in the cubic unit cell.
Compare the calculated results with experimental reference values given above.
Note: Exact agreement between DFT and experimental data is not our goal for this exercise.
DFT-LDA is an approximation, and we here see how well (or not) it works.
After performing the Birch-Murnaghan fit for all three phases, please plot the resulting fitted
curves saved in fit.dat into one figure.
10
B. Information on the BCC, FCC, and Diamond Lattices
The fcc lattice for Si with a lattice constant a is defined by
lattice vector 0 . 0 a /2 a /2
lattice vector a /2 0 . 0 a /2
lattice vector a /2 a /2 0 . 0
atom frac 0.00 0.00 0.00 Si
lattice vector a /2 a /2 −a /2
lattice vector a /2 −a /2 a /2
l a t t i c e v e c t o r −a /2 a /2 a /2
atom frac 0.00 0.00 0.00 Si
lattice vector 0 . 0 a /2 a /2
lattice vector a /2 0 . 0 a /2
lattice vector a /2 a /2 0 . 0
atom frac 0.00 0.00 0.00 Si
atom frac 0.25 0.25 0.25 Si
References
[1] M. T. Yin and M. L. Cohen, “Microscopic theory of the phase transformation and lattice
dynamics of si,” Physical Review Letters, vol. 45, pp. 1004–1007, Sept. 1980.
[2] J. P. Perdew and Y. Wang, “Accurate and simple analytic representation of the electron-gas
correlation-energy,” Physical Review B, vol. 45, pp. 13244–13249, Jan. 1992.
[3] F. Birch, “Finite elastic strain of cubic crystals,” Physical Review, vol. 71, no. 11, pp. 809–
824, 1947.
[5] C. Kittel, Introduction to Solid State Physics. Hoboken, NJ: John Wiley & Sons, Inc, 8 ed.,
2005.
11