started modifying basic chapter
[lectures/latex.git] / posic / thesis / basics.tex
1 \chapter{Basic principles of utilized simulation techniques}
2 \label{chapter:basics}
3
4 In the following the simulation methods used within the scope of this study are introduced.
5 Enabling the investigation of the evolution of structure on the atomic scale, molecular dynamics (MD) simulations were chosen in order to model the behavior and precipitation of C introduced into an initially crystalline Si environment.
6 To be able to model systems with a large amount of atoms computational efficient classical potentials to describe the interaction of the atoms are most often used in MD studies.
7 For reasons of flexibility in executing this non-standard task and in order to be able to use a novel interaction potential \cite{albe_sic_pot} an appropriate MD code called {\textsc posic}\footnote{{\textsc posic} is an abbreviation for {\bf p}recipitation {\bf o}f {\bf SiC}}\footnote{Source code: http://www.physik.uni-augsburg.de/\~{}zirkelfr/posic/posic.tar.bz2} including a library collecting respective MD subroutines was developed from scratch.
8 The basic ideas of MD in general and the adopted techniques as implemented in {\em posic} in particular are outlined in section \ref{section:md}, while the functional form and derivative of the employed classical potential is presented in appendix \ref{app:d_tersoff}.
9 An overview of the most important tools within the MD package is given in appendix \ref{app:code}.
10 Although classical potentials are often most successful and at the same time computationally efficient in calculating some physical properties of a particular system, not all of its properties might be described correctly due to the lack of quantum-mechanical effects.
11 Thus, in order to obtain more accurate results quantum-mechanical calculations from first principles based on density functional theory (DFT) were performed.
12 The Vienna {\em ab initio} simulation package ({\textsc vasp}) \cite{kresse96} is used for this purpose.
13 The relevant basics of DFT are described in section \ref{section:dft} while an overview of utilities mainly used to create input or parse output data of {\textsc vasp} is given in appendix \ref{app:code}.
14 The gain in accuracy achieved by this method, however, is accompanied by an increase in computational effort constraining the system to be described to be much smaller in size.
15 Thus, investigations based on DFT are restricted to single defects or combinations of two defects in a rather small Si supercell, their structural relaxation as well as some selected diffusion processes.
16 Next to the structure, defects can be characterized by the defect formation energy, a scalar indicating the costs necessary for the formation of the defect, which is explained in section \ref{section:basics:defects}.
17 The method used to investigate migration pathways to identify the prevalent diffusion mechanism is introduced in section \ref{section:basics:migration} and modifications to the {\textsc vasp} code implementing this method are presented in appendix \ref{app:patch_vasp}.
18
19 \section{Molecular dynamics simulations}
20 \label{section:md}
21
22 \begin{quotation}
23 \dq We may regard the present state of the universe as the effect of the past and the cause of the future. An intellect which at any given moment knew all of the forces that animate nature and the mutual positions of the beings that compose it, if this intellect were vast enough to submit the data to analysis, could condense into a single formula the movement of the greatest bodies of the universe and that of the lightest atom; for such an intellect nothing could be uncertain and the future just like the past would be present before its eyes.\dq{}
24 \begin{flushright}
25 {\em Marquis Pierre Simon de Laplace, 1814.} \cite{laplace}
26 \end{flushright}
27 \end{quotation}
28
29 \noindent
30 Pierre Simon de Laplace phrased this vision in terms of a controlling, omniscient instance - the {\em Laplace demon} - which would be able to look into the future as well as into the past due to the deterministic nature of processes, governed by the solution of differential equations.
31 Although Laplace's vision is nowadays corrected by chaos theory and quantum mechanics, it expresses two main features of classical mechanics, the determinism of processes and time reversibility of the fundamental equations.
32 This understanding was one of the first ideas for doing molecular dynamics simulations, considering an isolated system of particles, the behaviour of which is fully determined by the solution of the classical equations of motion.
33
34 \subsection{Introduction to molecular dynamics simulations}
35
36 Molecular dynamics (MD) simulation is a technique to compute a system of particles, referred to as molecules, with their positions, volocities and forces among each other evolving in time.
37 The MD method was first introduced by Alder and Wainwright in 1957 \cite{alder57,alder59} to study the interactions of hard spheres.
38 The basis of the approach are Newton's equations of motion to describe classicaly the many-body system.
39 MD is the numerical way of solving the $N$-body problem which cannot be solved analytically for $N>3$.
40 A potential is necessary describing the interaction of the particles.
41 By MD a complete description of the system in the sense of classical mechanics on the microscopic level is obtained.
42 The microscopic information can then be translated to macroscopic observables by means of statistical mechanics.
43
44 The basic idea is to integrate Newton's equations numerically.
45 A system of $N$ particles of masses $m_i$ ($i=1,\ldots,N$) at positions ${\bf r}_i$ and velocities $\dot{{\bf r}}_i$ is given by
46 \begin{equation}
47 m_i \frac{d^2}{dt^2} {\bf r}_i = {\bf F}_i \, \textrm{.}
48 \end{equation}
49 The forces ${\bf F}_i$ are obtained from the potential energy $U(\{{\bf r}\})$:
50 \begin{equation}
51 {\bf F}_i = - \nabla_{{\bf r}_i} U({\{\bf r}\}) \, \textrm{.}
52 \end{equation}
53 Given the initial conditions ${\bf r}_i(t_0)$ and $\dot{{\bf r}}_i(t_0)$ the equations can be integrated by a certain integration algorithm.
54 The solution of these equations provides the complete information of a system evolving in time.
55
56 The following sections cover the tools of the trade necessary for the MD simulation technique.
57 Three ingredients are required for an MD simulation:
58 \begin{enumerate}
59 \item A model for the interaction between system constituents is needed.
60       Interaction potentials and their accuracy for describing certain systems of elements will be outlined in section \ref{subsection:interact_pot}.
61 \item An integrator is needed, which propagtes the particle positions and velocities from time $t$ to $t+\delta t$, realised by a finite difference scheme which moves trajectories discretely in time.
62       This is explained in section \ref{subsection:integrate_algo}.
63 \item A statistical ensemble has to be chosen, which allows certain thermodynamic quantities to be controlled or to stay constant.
64       This is discussed in section \ref{subsection:statistical_ensembles}.
65 \end{enumerate}
66 Furthermore special techniques will be outlined which reduce the complexity of the MD algorithm, though the evaluation of the energy and force almost inevitably dictates the overall speed.
67
68 \subsection{Integration algorithms}
69 \label{subsection:integrate_algo}
70
71 \subsection{Interaction potentials}
72 \label{subsection:interact_pot}
73
74 The potential energy of $N$ interacting atoms can be written in the form
75 \begin{equation}
76 U(\{{\bf r}\}) = \sum_i U_1({\bf r}_i) + \sum_i \sum_{j>i} U_2({\bf r}_i,{\bf r}_j) + \sum_i \sum_{j>i} \sum_{k>j>i} U_3({\bf r}_i,{\bf r}_j,{\bf r}_k) \ldots
77 \end{equation}
78 where $U$ is the total potential energy.
79 $U_1$ is a single particle potential describing external forces.
80 Examples of single particle potentials are the gravitational force or an electric field.
81 $U_2$ is a two body pair potential which only depends on the distance $r_{ij}$ between the two atoms $i$ and $j$.
82 If not only pair potentials are considered, three body potentials $U_3$ or multi body potentials $U_n$ can be included.
83 Mainly these higher order terms are avoided since they are not easy to model and it is rather time consuming to evaluate potentials and forces originating from these many body terms.
84
85 Ordinary pair potentials have a close-packed structure like face-centered cubic (FCC) or hexagonal close-packed (HCP) as a ground state.
86 A pair potential is thus unable to describe properly elements with other structures than FCC or HCP.
87 Silicon and carbon for instance, have a diamand and zincblende structure with four covalent bonded neighbours, which is far from a close-packed structure.
88 A three body potential has to be included for these types of elements.
89
90 %\subsubsection{The Lennard-Jones potential}
91 %
92 %The L-J potential is a realistic two body pair potential and is of the form
93 %\begin{equation}
94 %U^{LJ}(r) = 4 \epsilon \Big[ \Big( \frac{\sigma}{r} \Big)^{12} - \Big( \frac{\sigma}{r} \Big)^6 \Big] \, \textrm{,}
95 %\label{eq:lj-p}
96 %\end{equation}
97 %where $r$ denotes the distance between the two atoms.
98 %
99 %The attractive tail for large separations $(\sim r^{-6})$ is essentially due to correlations between electron clouds surrounding the atoms. The attractive part is also known as {\em van der Waals} or {\em London} interaction.
100 %It can be derived classically by considering how two charged spheres induce dipol-dipol interactions into each other, or by considering the interaction between two oscillators in a quantum mechanical way.
101 %
102 %The repulsive term $(\sim r^{-12})$ captures the non-bonded overlap of the electron clouds.
103 %It does not have a true physical motivation, other than the exponent being larger than $6$ to get a steep rising repulsive potential wall at short distances.
104 %Chosing $12$ as the exponent of the repulsive term it is just the square of the attractive term which makes the potential evaluable in a very efficient way.
105 %
106 %The constants $\epsilon$ and $\sigma$ are usually determined by fitting to experimental data.
107 %$\epsilon$ accounts to the depth of the potential well, where $\sigma$ is regarded as the radius of the particle, also known as the van der Waals radius.
108 %
109 %Writing down the derivative of the Lennard-Jones potential in respect to $x_i$ (the $i$th component of the distance vector ${\bf r}$)
110 %\begin{equation}
111 %\frac{\partial}{\partial x_i} U^{LJ}(r) = 4 \epsilon x_i \Big( -12 \frac{\sigma^{12}}{r^{14}} + 6 \frac{\sigma^6}{r^8} \Big)
112 %\label{eq:lj-d}
113 %\end{equation}
114 %one can easily identify $\sigma$ by the equilibrium distance of the atoms $r_e=\sqrt[6]{2} \sigma$.
115 %Applying the equilibrium distance into \eqref{eq:lj-p} $\epsilon$ turns out to be the negative well depth.
116 %The $i$th component of the force is given by
117 %\begin{equation}
118 %F_i = - \frac{\partial}{\partial x_i} U^{LJ}(r) \, \textrm{.}
119 %\label{eq:lj-f}
120 %\end{equation}
121 %
122 %\subsubsection{The Stillinger Weber potential}
123 %
124 %The Stillinger Weber potential \cite{stillinger_weber} \ldots
125 %
126 %\begin{equation}
127 %U = \sum_{i,j} U_2({\bf r}_i,{\bf r}_j) + \sum_{i,j,k} U_3({\bf r}_i,{\bf r}_j,{\bf r}_k)
128 %\end{equation}
129 %
130 %\begin{equation}
131 %U_2(r_{ij}) = \left\{
132 %  \begin{array}{ll}
133 %    \epsilon A \Big( B (r_{ij} / \sigma)^{-p} - 1\Big) \exp \Big[ (r_{ij} / \sigma - 1)^{-1}  \Big]  & r_{ij} < a \sigma \\
134 %    0 & r_{ij} \ge a \sigma
135 %  \end{array} \right.
136 %\end{equation}
137 %
138 %\begin{equation}
139 %U_3({\bf r}_i,{\bf r}_j,{\bf r}_k) = 
140 %\epsilon \Big[ h(r_{ij},r_{ik},\theta_{jik}) + h(r_{ji},r_{jk},\theta_{ijk}) + h(r_{ki},r_{kj},\theta_{ikj}) \Big]
141 %\end{equation}
142 %
143 %\begin{equation}
144 %h(r_{ij},r_{ik},\theta_{jik}) =
145 %\lambda \exp \Big[ \gamma (r_{ij}/\sigma -a)^{-1} + \gamma (r_{ik}/\sigma - a)^{-1} \Big] \Big( \cos \theta_{jik} + \frac{1}{3} \Big)^2
146 %\end{equation}
147
148 \subsubsection{The Tersoff potential}
149
150 Tersoff proposed an empirical interatomic potential for covalent systems.
151 The Tersoff potential explicitly incorporates the dependence of bond order on local envirenments, permitting an improved description of covalent materials.
152 Tersoff applied the potential to silicon \cite{tersoff_si1,tersoff_si2,tersoff_si3}, carbon \cite{tersoff_c} and also to multicomponent systems like $SiC$ \cite{tersoff_m}.
153 The basic idea is that, in real systems, the bond order depends upon the local environment.
154 An atom with many neighbours forms weaker bonds than an atom with few neighbours.
155
156 The interatomic potential is taken to have the form
157 \begin{eqnarray}
158 E & = & \sum_i E_i = \frac{1}{2} \sum_{i \ne j} V_{ij} \textrm{ ,} \\
159 V_{ij} & = & f_C(r_{ij}) [ f_R(r_{ij}) + b_{ij} f_A(r_{ij}) ] \textrm{ .}
160 \end{eqnarray}
161 $E$ is the total energy of the system, constituted either by the sum over the site energies $E_i$ or by the bond energies $V_{ij}$.
162 The indices $i$ and $j$ correspond to the atoms of the system with $r_{ij}$ being the distance from atom $i$ to atom $j$.
163
164 The functions $f_R$ and $f_A$ represent a repulsive and an attractive pair potential.
165 The repulsive part is due to the orthogonalization energy of overlapped atomic wave functions.
166 The attractive part is associated with the bonding.
167 \begin{eqnarray}
168 f_R(r_{ij}) & = & A_{ij} \exp (- \lambda_{ij} r_{ij} ) \\
169 f_A(r_{ij}) & = & -B_{ij} \exp (- \mu_{ij} r_{ij} )
170 \end{eqnarray}
171 The function $f_C$ is the potential cutoff function to limit the range of the potential.
172 It is designed to have a smooth transition of the potential at distances $R_{ij}$ and $S_{ij}$.
173 \begin{equation}
174 f_C(r_{ij}) = \left\{
175   \begin{array}{ll}
176     1, & r_{ij} < R_{ij} \\
177     \frac{1}{2} + \frac{1}{2} \cos \Big[ \pi (r_{ij} - R_{ij})/(S_{ij} - R_{ij}) \Big], & R_{ij} < r_{ij} < S_{ij} \\
178     0, & r_{ij} > S_{ij}
179   \end{array} \right.
180 \label{eq:basics:fc}
181 \end{equation}
182
183 The function $b_{ij}$ represents a measure of the bond order, monotonically decreasing with the coordination of atoms $i$ and $j$.
184 It is of the form:
185 \begin{eqnarray}
186 b_{ij} & = & \chi_{ij} (1 + \beta_i^{n_i} \zeta^{n_i}_{ij})^{-1/2n_i} \\
187 \zeta_{ij} & = & \sum_{k \ne i,j} f_C (r_{ik}) \omega_{ik} g(\theta_{ijk}) \\
188 g(\theta_{ijk}) & = & 1 + c_i^2/d_i^2 - c_i^2/[d_i^2 + (h_i - \cos \theta_{ijk})^2] \\
189 \end{eqnarray}
190 where $\theta_{ijk}$ is the bond angle between bonds $ij$ and $ik$.
191 This is illustrated in Figure \ref{img:tersoff_angle}.
192
193 \printimg{!h}{width=8cm}{tersoff_angle.eps}{Angle between bonds of atoms $i,j$ and $i,k$.}{img:tersoff_angle}
194
195 Here comes an explanation, energy per bond monotonically decreasing with the amount of bonds and so on and so on \ldots
196
197 The force acting on atom $i$ is given by the derivative of the potential energy.
198 For a three body potential ($V_{ij} \neq V{ji}$) the derivation is of the form
199 \begin{equation}
200 \nabla_{{\bf r}_i} E = \frac{1}{2} \big[ \sum_j ( \nabla_{{\bf r}_i} V_{ij} + \nabla_{{\bf r}_i} V_{ji} ) + \sum_k \sum_j \nabla_{{\bf r}_i} V_{jk} \big] \textrm{ .}
201 \end{equation}
202 The force is then given by
203 \begin{equation}
204 F^i = - \nabla_{{\bf r}_i} E \textrm{ .}
205 \end{equation}
206 The details of the Tersoff potential derivative can be seen in appendix \ref{app:d_tersoff}.
207
208 \subsubsection{A reparametrized Tersoff-like bond order potential}
209
210 Erhart-Albe potential ...
211
212 \subsection{Statistical ensembles}
213 \label{subsection:statistical_ensembles}
214
215 \section{Denstiy functional theory}
216 \label{section:dft}
217
218 \subsection{Hohenberg-Kohn theorem}
219
220 \subsection{Born-Oppenheimer (adiabatic) approximation}
221
222 \subsection{Effective potential}
223
224 \subsection{Kohn-Sham system}
225
226 \subsection{Approximations for exchange and correlation}
227
228 \subsection{Pseudopotentials}
229
230 \section{Modeling of defects}
231 \label{section:basics:defects}
232
233 \section{Migration paths and diffusion barriers}
234 \label{section:basics:migration}
235