basically finished point dfect chapter
[lectures/latex.git] / posic / thesis / vasp_patch.tex
1 \chapter{Modifications to the VASP code}
2 \label{app:patch_vasp}
3
4 \section{Description}
5 The modifications to the VASP code allow to rotate all atom coordinates individually in the particle position evaluation routine of VASP.
6 In that way constraints for every atom can be applied independently of the chosen basis.
7 A patch against version 4.6 of the VASP code containing these modifications is available for download\footnote{http://www.physik.uni-augsburg.de/\~{}zirkelfr/download/posic/sd\_rot\_all-atoms.patch}.
8
9 \section{Usage}
10
11 Since this feature only makes sense in selective dynamics mode, it can be switched on by adding the word {\em Transformed} in front of the {\em selective dynamics} switch.
12 This feature only works in direct mode.
13 Two values of angles need to be added after the extra flags of each atom.
14 The first angle corresponds to the rotation of the basis about the $z$-axis.
15 The second angle determines the rotation about the transformed $x$-axis, $x'$.
16 All values have to be supplied in degrees.
17 All these information is given in the POSCAR file as can be seen in the follwing example:
18 \begin{verbatim}
19 cubic diamond                           
20    5.48000000000000     
21      2.9909698580839312    0.0039546630279804   -0.0039658085666586
22      0.0039548953566878    2.9909698596656376   -0.0039660323646892
23     -0.0039680658132861   -0.0039674231313905    2.9909994291263242
24  216   1
25 Transformed selective dynamics
26 Direct
27  0.994174 0.994174 -0.000408732 T F T 45 36.5145
28  0.182792 0.182792 0.981597 T F T -135 -5.95043
29  ...
30  0.119896 0.119896 0.0385525 T F T -135 21.8036
31 \end{verbatim}
32 In case of the first atom the basis is transformed by a rotation of $45^{\circ}$ and $36.5145^{\circ}$ about the $z$ and $x'$ axis.
33 Relaxation of this atom is constrained to the $y''$-axis.
34