Top Banner
Linköping Studies in Science and Technology Dissertation No. 1454 Development of molecular dynamics methodology for simulations of hard materials Peter Steneteg Linköping University The Department of Physics, Chemistry and Biology Theory and Modeling SE-581 83 Linköping, Sweden Linköping 2012
81

Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Mar 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Linköping Studies in Science and TechnologyDissertation No. 1454

Development of molecular dynamicsmethodology for simulations of hard materials

Peter Steneteg

Linköping UniversityThe Department of Physics, Chemistry and Biology

Theory and ModelingSE-581 83 Linköping, Sweden

Linköping 2012

Page 2: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

c© Peter Steneteg, 2012ISBN 978-91-7519-883-5ISSN 0345-7524

Published articles have been reprinted with permission from the respectivecopyright holder.Typeset using LATEX

Printed by LiU-Tryck, Linköping 2012

ii

Page 3: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Abstract

This thesis is focused on molecular dynamics simulations, both classical andab initio. It is devoted to development of new methods and applications ofmolecular dynamics based techniques to a series of materials, all of which havethe common property of being hard.

I first study grain boundaries in diamond and apply a novel method tobetter explore the configurational phase space. Using this method severalnew grain boundary structures are found. The lowest energy grain boundarystructure has 20% lower energy then the one obtained with a conventionalapproach.

Another area is the development of efficient methods for first principlesBorn-Oppenheimer molecular dynamics. Here a fundamental shortcoming ofthe method that limits efficiency and introduces drift in the total energy ofthe system, is addressed and a solution to the problem is presented. Specialattention is directed towards methods based on plane waves. The new molec-ular dynamics simulation method is shown to be more efficient and conservesthe total energy orders of magnitude better then previous methods.

The calculation of properties for paramagnetic materials at elevated tem-perature is a complex task. Here a new method is presented that combinesthe disordered local moments model and ab initio molecular dynamics. Themethod is applied to calculate the equation of state for CrN were the con-nection between magnetic state and atomic structure is very strong. Thebulk modulus is found to be very similar for the paramagnetic cubic and theantiferromagnetic orthorhombic phase.

TiN has many applications as a hard material. The effects of temperatureon the elastic constants of TiN are studied using ab initio molecular dynamics.A significant dependence on temperature is seen for all elastic constants, whichdecrease linearly with temperature.

iii

Page 4: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical
Page 5: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Populärvetenskapligsammanfattning

Denna avhandling sitter i korsningen mellan materialvetenskap och da-torvetenskap. Under de senaste decennierna har det skett stora framsteg ibåda fälten. Inom den senare så återfinns den integrerade kretsen och denpåföljande Moores lag, vilket har givet oss en beräkningskapacitet som för-dubblas var artonde månad. I den förra så har framförallt utvecklingen av denså kallade densitets-funktional-teorin (DFT) gjort det möjligt att numerisktlösa Schrödingerekvationen för system med mer än en handfull partiklar.

Dessa två framsteg, tillsammans med otaliga andra, har gett upphov tillett nytt sätt att göra experiment. I stället för att genomföra experimentet ilaboratoriet så simuleras experimentet i datorn. En specifik simuleringsme-tod kallad molekyldynamik går ut på att ett antal atomer placeras i en lådaoch därefter så löser man rörelseekvationen för atomerna och simulerar derasrörelser. Denna metod är en röd tråd genom denna avhandling, då de prob-lem som studerats antingen ämnar att förbättra denna simulerings metod,eller applicera den på något materialsystem. Det finns ytterligare en gemen-sam nämnare mellan dessa materialsystem, de har alla den egenskapen att deär väldigt hårda, och därför ofta lämpar sig i många industriella tillämpningar.

Det första två kapitlen presenterar bakgrunden och de metoder och teorisom använts. Därefter så presenteras ett antal olika projekt. Först så studerashur diamantkorn binder till varandra med en ny metod. Med hjälp av dennahittas en ny, avsevärt stabilare, gränsstruktur.

Det nästkommande avsnittet beskriver utvecklandet av en ny metod somlöser ett tillkortakommande hos molekyldynamik-simuleringar baserade påDFT. Problemet uppkommer då man återvinner gamla lösningar för attsnabba upp metoden, ofta en faktor tio. Tyvärr så bryter det grundläggandeegenskaper för rörelseekvationerna som leder till att simuleringen inte längrebevarar totalenergin. Genom att tillföra hjälpvariabler till rörelseekvationernaså kringgås problemet, effektiviseringen kvarstår, och totalenergin bevaras.

Därefter så presteras en ny metod för att modelera det paramagnetiskatillståndet i ett material. I det paramagnetiska tillståndet så förändras

v

Page 6: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

varje atoms magnetiska moment slumpmässigt över tiden. Detta leder tillsvårigheter att separera relaxationer från den atomistiska konfigurationen rel-ativt den magnetiska konfigurationen i statiska beräkningar. Genom att köraen molekyldynamik-simulering där den magnetiska konfigurationen regelbun-det byts slumpmässigt löses det problemet. Metoden appliceras på kubiskCrN där det länge funnit frågetecken kring kompressibiliteten.

Vidare så används molekyldynamik-simulering för att undersöka deelastiska egenskaperna för TiN som funktion av temperatur. Ett tydligt tem-peraturberoende ses för alla de elastiska konstanterna, som mest sjunker de23% mellan 0 och 1500 K.

vi

Page 7: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Acknowledgments

This work in this thesis has been carried out in the group of Theoreti-cal physics at the Department of Physics, Chemistry and Biology (IFM),Linköping University. It has been made possible by the support and contri-bution from many colleagues and friends.

Starting from the beginning, I would like to thank my co-supervisor Do-cent Valeriu Chirita for introducing me to molecular dynamics in his courseComputational Physics. The product of that course was a molecular dynam-ics code called MDSinecura, which I would later use in paper I. Valeriu thengave me and my good friend Lars Erik Rosengren the opportunity to continuedeveloping MDSinecura during our diploma work.

At the end of the diploma work Valeriu put me contact with my supervisorProf. Igor Abrikosov who went on to offer me a position as a PhD studentin his group. I would like to thank Igor for all his guidance, patience, andsupport. He always has a positive attitude and has without fail managed tofind constructive solutions to any problem I have brought to him.

I would here also like to take the opportunity to thank the Swedish Foun-dation for Strategic Research via strategic center MS2E, and Swedish ResearchCouncil via grant 621-2011-4426, for providing the finances for my PhD stud-ies.

Then I would like to thank Dr. Anders Niklasson for first of all giving methe wonderful opportunity of work with him at Los Alamos National Labora-tory, and then for all the great advice and guidance he has given me.

During my PhD studies I was given the opportunity to teach a course inwave physics. I came to really enjoy teaching, part from all the wonderfulstudents, I would like to thank the examiner Prof. Kenneth Järrendahl andmy teaching colleague Dr. Mattias Jakobsson for making the experience sosatisfying. Here I would like to also thank one of my own physics teachersProf. Rolf Riklund for his truly inspiring and contagious love of physics.

I would also like to thank the people in the Theoretical physics group,the Computational Physics group, the Thin Film Physics group, the PlasmaCoatings Physics group, and the Nanostructured Materials Group for makingwork and life at IFM truly interesting and joyful.

vii

Page 8: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

A Special thank you goes out to Olle Hellman, Lars Johnson, JenniferUllbrand, and Nina Shulumba for all the endless discussions and for makingeach lunch and “fika” into something that I look forward to each day.

Finally I would like to thank my family for all their help and support.

Peter StenetegLinköping, May 2012

viii

Page 9: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Contents

Abstract iii

Populärvetenskaplig sammanfattning v

Acknowledgments vii

Contents ix

1 Introduction 11.1 Computer science . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Materials science . . . . . . . . . . . . . . . . . . . . . . . . . . 21.3 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Molecular dynamics 52.1 A simple MD program . . . . . . . . . . . . . . . . . . . . . . . 62.2 Theoretical derivation . . . . . . . . . . . . . . . . . . . . . . . 72.3 Integration schemes . . . . . . . . . . . . . . . . . . . . . . . . 9

2.3.1 Verlet algorithm . . . . . . . . . . . . . . . . . . . . . . 102.3.2 Velocity Verlet algorithm . . . . . . . . . . . . . . . . . 10

2.4 Classical molecular dynamics . . . . . . . . . . . . . . . . . . . 112.4.1 Lennard Jones potential . . . . . . . . . . . . . . . . . . 112.4.2 Embedded atom method . . . . . . . . . . . . . . . . . . 122.4.3 Tersoff potential . . . . . . . . . . . . . . . . . . . . . . 12

2.5 Ab initio molecular dynamics . . . . . . . . . . . . . . . . . . . 132.5.1 Density Function Theory . . . . . . . . . . . . . . . . . 132.5.2 Hohenberg-Kohn theorems . . . . . . . . . . . . . . . . 142.5.3 Kohn-Sham equations . . . . . . . . . . . . . . . . . . . 152.5.4 Exchange-correlation functionals . . . . . . . . . . . . . 162.5.5 Self-consistent solution . . . . . . . . . . . . . . . . . . . 162.5.6 Basis set and Bloch’s theorem . . . . . . . . . . . . . . . 162.5.7 Hellman-Feynman Theorem . . . . . . . . . . . . . . . . 182.5.8 Pseudo-potentials . . . . . . . . . . . . . . . . . . . . . . 19

ix

Page 10: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.5.9 Solving the Kohn-Sham equations . . . . . . . . . . . . 202.6 Post-processing and visualization . . . . . . . . . . . . . . . . . 202.7 Problem areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

3 Grain boundary structure 233.1 Special grain boundaries . . . . . . . . . . . . . . . . . . . . . . 243.2 Phase space spanning . . . . . . . . . . . . . . . . . . . . . . . 243.3 Varying the number of atoms in GB . . . . . . . . . . . . . . . 253.4 Simulated annealing . . . . . . . . . . . . . . . . . . . . . . . . 263.5 Simulation details . . . . . . . . . . . . . . . . . . . . . . . . . 273.6 Resulting structures . . . . . . . . . . . . . . . . . . . . . . . . 27

4 Extended Lagrangian Born-Oppenheimer MD 314.1 Energy drift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324.2 Extended Lagrangian BOMD . . . . . . . . . . . . . . . . . . . 334.3 Wavefunction extended Lagrangian BOMD . . . . . . . . . . . 344.4 Integration of equations of motion . . . . . . . . . . . . . . . . 344.5 Phase alignment . . . . . . . . . . . . . . . . . . . . . . . . . . 354.6 Stability and noise dissipation . . . . . . . . . . . . . . . . . . . 354.7 Application to TiN . . . . . . . . . . . . . . . . . . . . . . . . . 37

5 Disordered local moments molecular dynamics 415.1 Modeling the paramagnetic state . . . . . . . . . . . . . . . . . 415.2 Disordered local moment molecular dynamics . . . . . . . . . . 425.3 Examination of CrN . . . . . . . . . . . . . . . . . . . . . . . . 44

5.3.1 Potential energy and temperature . . . . . . . . . . . . 445.3.2 Pair distance distribution . . . . . . . . . . . . . . . . . 445.3.3 Equation of state . . . . . . . . . . . . . . . . . . . . . . 47

6 Temperature dependent elastic constants 496.1 Elastic constants . . . . . . . . . . . . . . . . . . . . . . . . . . 496.2 Calculation of temperature dependent elastic constants . . . . . 506.3 Parallel molecular dynamics simulations . . . . . . . . . . . . . 516.4 Application to TiN . . . . . . . . . . . . . . . . . . . . . . . . . 52

Bibliography 55

List of Figures 61

List of Tables 63

List of publications 64

Paper I 73Missing-atom structure of diamond Σ5 (001) twist grain boundary

x

Page 11: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Paper II 79Extended Lagrangian Born-Oppenheimer molecular dynamics withdissipation

Paper III 89Wavefunction extended Lagrangian Born-Oppenheimer moleculardynamics

Paper IV 97Extended Lagrangian free energy molecular dynamics

Paper V 111Equation of state of paramagnetic CrN from ab initio molecular dy-namics

Paper VI 121Temperature dependence of TiN elastic constants from ab initiomolecular dynamics simulations

Paper VII 131Effects of configurational disorder on adatom mobilities onTi1−xAlxN surfaces

xi

Page 12: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical
Page 13: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 1Introduction

This thesis positions itself in the intersection between two different fields ofscience, computer science and materials science. The work here is made pos-sible by the simultaneous and rapid development in both fields.

1.1 Computer science

The invention of the computer and the integrated transistor started a remark-able development over the last few decades. This is perhaps best illustratedby the well known Moore’s law, stating that the number of transistor in achip should double every two years. This is illustrated over the last 20 years

��

����������������������������������

��

��

�����������������������������������

�������������������������������������������

���������������������������������������������

������������������������������������������������

���������������������������������������������������

��������������������������������������������������������

�����������������������������������������������������������

������������������������������������������������������������

���������������������������������������������������������������

�����������������������������������������������������������������

������������������������������������������������������������������������������

��

�������������������������������������������������������������������������������

���

�����������������������������������������������������������������������������������

�������������������������������������������������������������������������������������

������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������

�������������������������������������������������������������������������������

��������������������������������������������������������������������������������

����������������������������������������������������������������������������

�������������������������������������������������������������������������������������

��������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������

��

�����������������������������������������������������

�������������������������������������������������������

����������������������������������������������������������

��������������������������������������������������������������

����������������������������������������������������������������������

����������������������������������������������������������������������������������

����

����������������������������������������������������������������������������������������

��

������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������

������������������������������������������������������������������������������������������������������������������������

����������������������������������������������������������������������������������������������������������������������������

�����������������������������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������������������

�� ������ ��� � � � ���

�����

� � �� � ��� � � ����� � � ���� � � �

������� � � � � � � � � �

��� � � ����� � � � �

��� � � � ���������

��� � � � � � ���������� � � ���

��

1995 2000 2005 2010

1

100

104

106

Year

GFl

op�s

X�MP�416 Cray, NSC

GC PowerPlus, NSC

T3E Cray, NSC

Monolith, NSCLenngren, KTH

Neolith, NSC

Lindgren, KTH

Figure 1.1: Moore’s law illustrated with the development of the top 500 super-computers in the world. Especially noted are swedish academic computers. Itcan be noted that the performance rate is increasing even faster then predictedby Moore, doubling about every 14th month.2

1

Page 14: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2 INTRODUCTION

Figure 1.2: One of the computer clusters used heavily in the computations inthis thesis, Neolith at National Supercomputer Center (NSC) in Linköping.1

in Fig. 1.1 for the top 500 supercomputers in the world. The academic super-computers in Sweden are highlighted, and a few of the fastest ones are alsonamed. Most work in this thesis has been carried out on the Neolith systemat National Supercomputer Center in Linköping as can be seen in Fig. 1.2 andlater on Lindgren at PDC in Stockholm. It could be noted that the compu-tational power, here measured in billion floating point operations per second(GFlops/s), of the top supercomputers in the world of the last 20 year evenhave double on average every 14 months. And the academic supercomputersin Sweden has followed that trend very well.

But pure transistor count is not enough, there has also been numerousother important developments. A set of very well optimized numerical li-braries for solving linear algebra type problems have been developed. Toolsfor running code in parallel have also been developed together with the designand development of even larger supercomputers and clusters to run the par-allel code on. Without these developments very few of the simulations in thisthesis would be possible. And even with these very fast computers, trying tosolve the Schrödinger equations directly for anything but a few electrons ispractically impossible.

1.2 Materials science

The materials we use have always been a defining characteristic. We evendefine different periods in history by what materials that could be processed,the stone age, the bronze age, and the iron age. How well we master differentmaterials have always set the limits on much of our activities. With the dis-

Page 15: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

1.3. OUTLINE 3

covery of iron and metallurgy, a broad range of possibilities opened up. It waspossible to construct tools that were more resilient than previous generation.Even a simple thing as a nail made construction much faster. In recent years,in the context of this theses, the mastering of silicon and how to process itinto transistors is one of the most important developments, giving rise to thecomputer industry, and eventually this thesis.

During the previous century many important discoveries in physics havebeen made. For the theoretical material scientist, the most important onemight be the development of quantum mechanics and the Schrödinger equa-tion. This, in principle, gives us all the answers, since we now knew the un-derlying equations that describe matter. Unfortunately, the equations provedextremely difficult to solve except for in a few simple cases like the hydro-gen atom. A new framework for how to attack these equations had to bedeveloped. In the sixties the work of Hohenberg and Kohn 35 and later Kohnand Sham 39 provided us with this framework. Although at the time thecomputers were still not up to the task of actually solving the equations forany substantial systems. But as we saw earlier the computers have improvedtremendously, allowing this framework to be successfully applied to a largevariety of systems.

1.3 Outline

The main focus in this theses is on the development and application of molec-ular dynamics methodology, and less on specific materials. Although, all ma-terials that have been investigated in the thesis are considered hard, and areoften used in applications where hardness is of prime importance, for examplein cutting tools.

Chapter 2 starts by presenting the basics of molecular dynamics, the mainmethod used in this work. It describes the basic theory of both classical andab initio molecular dynamics. It then goes on to discuss five different prob-lem areas that have been addressed in this thesis. In chapter 3 the resultsof the investigation of diamond grain boundaries related to Paper I are pre-sented. Chapter 4 discussed the work with time reversible ab initio moleculardynamics of Paper II through IV. Chapter 5 deals with the paramagneticstate of matter, developing a novel approach to study the problem at elevatedtemperature. This chapter is related to Paper V. In chapter 6 the results ofthe calculation of elastic constants of TiN as a function of temperature arepresented, in relation to Paper VI.

Page 16: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical
Page 17: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 2Molecular dynamics

The dynamics of many-body systems consisting of three or more bodies haveno general analytical solution. A method that has been proven useful in manycases, are numerical simulations instead of theoretical calculations. Numericalsimulations of many-body systems have applications in many fields of physics,all the way from simulating the galaxies we live in down to the molecules andatom we are made of.

One way of simulating atoms and molecules is called Molecular Dynamics(MD). It has its basis in the deterministic properties of our world, so well putforward by Laplace:44

Given for one instant an intelligence which could comprehendall the forces by which nature is animated and the respective posi-tions of the beings which compose it, if moreover this intelligencewere vast enough to submit these data to analysis, it would em-brace in the same formula both the movements of the largest bod-ies in the universe and those of the lightest atom; to it nothingwould be uncertain, and the future as the past would be presentto its eyes.

Molecular dynamics is a way to simulate materials on an atomic scale. Theinput that is necessary is all the atoms’ positions, velocities, and masses. MDis a deterministic way to simulate the movement of the atoms. The simulationis divided into a number of time steps, usually in the order of femtoseconds1.For each time step all the forces between all the atoms are calculated and thenintegrated to obtain new positions and velocities. This is iterated to the endof the simulation. During the time steps material properties can be calculatedfrom the positions, velocities and forces.

110−15 seconds

5

Page 18: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

6 MOLECULAR DYNAMICS

2.1 A simple MD program

The basic parts of MD simulations can be seen in figure 2.1. First the systemneeds to be initialized, often a cell consisting of a periodic lattice with atomsare used. The atoms are assigned, mass, charge, and velocity. The positionsand velocities are chosen so that they correspond the temperature that isselected. The initialization can be done in many different ways, most basicwould be to use ideal positions, and random velocities, the next step mightbe to assign the velocities according to a gaussian distribution at a certaintemperature. An even more précis way could be to excite a superposition ofphonons according to the phonon density of states and the dispersion relationsof the crystal if they are known.75 Then the basic MD loop starts, which

Forces

Start

End

Integrate

Sample

Themostat

Initiate

More steps?

Yes

No

MD Loop

Figure 2.1: The basic MD loop.

in principle consist of two important steps: the force calculation and theintegration. The force calculation is where the interactions between all theatoms are calculated. There are many different methods to choose from,all with their advantages and disadvantages. The Schrödinger equation canbe applied directly for a solution from first principles, alternatively a purelyempirical force field might be used, or any combination thereof. The forcesare used to integrate the atomic equations of motion, propagating the atoms.After that the system is sampled to calculate physical properties. The mostimportant ones would be the total energy and the temperature or kineticenergy of the system, but other properties might also be calculated such aspressure, stresses.

Page 19: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.2. THEORETICAL DERIVATION 7

The next step, which is often applied but not mandatory, is to manage thetemperature of the system. The temperature is important since it is directlyconnected to the motions of the atoms in the system. Everything from justsetting the temperature to the desired value during the initial period of thesimulation to controlling it through out the simulation and even varying itover time to simulate heating or cooling.

Finally we check if enough time steps have been calculated, otherwise weincrease the time by one step and start over calculating forces again. Whenthe simulation is finally done, a huge amount of data is generated: positions,velocities, forces, energies, temperatures, and all other sample data collectedduring the calculation. So the last step is perhaps the most important, thepost-processing of all the generated data where the relevant physical proper-ties are extracted, as well as their visualization.

2.2 Theoretical derivation

The theoretical background for the molecular dynamics method can be derivedfrom the time dependent Schrödinger equations, following the notation ofMarx and Hutter.48,

i�∂

∂tΦ({ri}, {RI}; t) = HΦ({ri}, {RI}; t) (2.1)

with the standard Hamiltonian

H = −∑

I

�2

2MI∇2

I −∑

i

�2

2me∇2

i (2.2)

+1

4πε0

∑i<j

e2

|ri − rj | +1

4πε0

∑I,i

e2

|RI − rj | +1

4πε0

∑I<J

e2

|RI − RJ |

= −∑

I

�2

2MI∇2

I −∑

i

�2

2me∇2

i + Vn−e({ri}, {RI})

= −∑

I

�2

2MI∇2

I + He({ri}, {RI}).

The upper case indices represent nuclei and lower case represent electrons,with the corresponding positions RI and ri. MI and me represent the nu-cleus and electron masses respectively, Z the atomic number, −e the electroncharge, and ε0 the vacuum permittivity. As seen here in its well known form,the Hamiltonian consists of the electron kinetic energy part, the ion kineticenergy part, the electron-electron interaction, electron-ion interaction, andthe ion-ion interaction.

Consider the solution to the time-independent electronic Schrödinger equa-tion,

He({ri}; {RI})Ψk({ri}, {RI}) = Ek({RI})Ψk({ri}; {RI}), (2.3)

Page 20: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

8 MOLECULAR DYNAMICS

known for each configuration of the nuclei {RI}. Then the total wavefunctioncan be expanded in terms of the orthonormal eigenstates to He,

Φ({ri}, {RI}; t) =∞∑

k=0

Ψk({ri}; {RI})χk({RI}; t) (2.4)

where {χl} can be seen as time-dependent expansion coefficients. This is theansatz introduced by Born in 195111,12 to separate the dynamics of the lightelements, the electrons, from the heavy elements, the nucleus.

By inserting this ansatz in Eq. 2.1 and multiplying from the left withΨ∗

l ({ri}; {RI}) and integrating over all electronic coordinates {ri} a set ofcoupled differential equations can be derived[

−∑

I

�2

2MI∇2

I + Ek({RI})

]χk +

∑l

Cklχl = i�∂

∂tχk (2.5)

with

Ckl =∫

Ψ∗k

[−∑

I

�2

2MI∇2

I

]Ψldr (2.6)

+1

MI

∑I

{∫Ψ∗

k[−i�∇I ]Ψldr}

[−i�∇I ].

The matrix elements Ckl define the coupling between different states. In theBorn-Oppenheimer approximation12 all of the coupling elements are set tozero. This leads to a completely decoupled set of equations[

−∑

I

�2

2MI∇2

I + Ek({RI})

]χk = i�

∂tχk (2.7)

Since all interaction between different states have been removed, it is notedthat the system will never change from its initial quantum state during thedynamics.

Next the nuclei wavefunctions χk are approximated as classical point par-ticles. This is done by rewriting χk on polar form, and then taking the limitwhen � → 0. The resulting equation can be identified as an equation of mo-tion in the Hamiltonian-Jacobi formulation of classical mechanics. And thefamiliar Newtonian equations of motion can be read off

MIRI(t) = −∇IV BO0 ({RI(t)}). (2.8)

In the Born-Oppenheimer approximation the potential, V BOk , is restricted to

the ground state of the time-independent Schrödinger equation, Eq. 2.3, hence

V BO0 =

∫Ψ∗

0HeΨ0 ≡ E0({RI}). (2.9)

The Born-Oppenheimer approximation can be motivated mainly by thefact that elections usually move much faster then the nuclei, often 3 orders

Page 21: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.3. INTEGRATION SCHEMES 9

of magnitude. In practice the approximation has proved to be sufficientlyaccurate for a large number of interesting system. All the molecular dynam-ics simulations in this thesis have been done within the Born-Oppenheimerapproximation. There are situations in which the approximation fails, for ex-ample, if one wants to study the dynamics of the decay of an excited stateinto a lower state.

In ab initio molecular dynamics the potential V BO0 is calculated directly

but since this is computationally expensive it is often approximated further.In classical molecular dynamics V BO

0 is expanded in a set of many-body in-teractions

V BO0 ≈ V F F =

N∑I=1

v1(RI) +N∑

I<J

v2(RI , RJ) +N∑

I<J<K

v3(RI , RJ , RK) + . . .

(2.10)often called a “force field” or an interaction potential. This will be much fasterto solve, but introduces the new problem of how to find vi, which often is adifficult task.

2.3 Integration schemes

When choosing an integration method there are several points to consider.The integrator should be accurate, but there are different kinds of accuracythat are important. First one can consider atomic trajectories. It is knownthat any numerical integrator will never give correct trajectories over longtimescales for a multi-body system, because of the sensitivity to initial con-ditions. Even for an arbitrarily small difference in initial condition the tra-jectories will diverge exponentially in finite time. Fortunately, one is usuallyinterested in either ensemble averages or time correlations functions. For en-semble averages the most important factor is to sample the correct part ofphase space, therefore exact trajectories are of lesser importance. And fortime correlation functions one is mostly interested in correlation function onsuch a short time scale that the trajectories will be sufficiently accurate. Al-ternatively it is possible to choose a time step that is short enough to givesufficient accuracy on the required time scale.

So perhaps the most important property of the integrator is that it re-mains in the part of phase space that the system is constrained to by thegiven total energy. Time reversibility is one property of an integrator whichconserves phase space. Consider moving on a trajectory forward in time andthen changing the sign of δt going back in time again. If one arrives at a dif-ferent point than the initial phase space has not been conserved. This phasespace volume change is called drift, and a time-reversible integrator shouldexhibit minimal such drift.

Energy conservation is important for a good integrator. It is often closelyconnected to the time reversibility of the integrator. Energy conservation canbe divided into short time and long time conservation and these two propertiesare usually in conflict, meaning that an integrator with good short time energy

Page 22: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

10 MOLECULAR DYNAMICS

conservation often shows energy drifts for longer time spans and the oppositefor integrators with good long time conservation.

There are a few methods that fulfill these requirements, perhaps the mostfamous one would be the velocity Verlet method66 which is both time re-versible and symplectic27,62. It is also simple to implement and does notrequire much memory. It is one of the most used methods. It provides bothpositions, velocities, and forces at the same time step, which a few similarmethods does not. There are also higher order methods that will give bettertrajectories then the velocity Verlet on short to intermediate time scales, buton long time scales they will often be worse. There are also higher order sym-plectic integrators53,54,47,45,23 that will conserve phase space well, but theyare often complicated to implement.

2.3.1 Verlet algorithm

The Verlet algorithm70 is one of the simplest algorithms and at the same timeone of the best for most cases. It gives good long time accuracy at the cost ofa quite poor short time accuracy which leads to shorter allowed time steps.The memory usage of this integrator is as small as possible and it is also fast.The positions, r, for the next time step are generated by

r(t + δt) = 2r(t) − r(t − δt) +f(t)m

δt2, (2.11)

where f is the force and m the mass of the atom. The velocities are obtainedby the simple difference equation

v(t) =r(t + δt) − r(t − δt)

2δt. (2.12)

This also implies that the velocities will be know first after the next time stepis calculated.

2.3.2 Velocity Verlet algorithm

Velocity Verlet66 is a Verlet-like integrator that gives the same trajectoriesbut also gives the velocities in a more straightforward way, it is probably themost commonly used integrator. The positions and velocities are given by

r(t + δt) = r(t) + v(t)δt +f(t)2m

δt2 (2.13)

v(t + δt) = v(t) +f(t + δt) + f(t)

2mδt. (2.14)

With this method the velocities needs to be calculated in two steps, first forthe current forces f(t) and then after the new forces f(t + δt) are calculatedfrom the new positions r(t + δt).

Page 23: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.4. CLASSICAL MOLECULAR DYNAMICS 11

2.4 Classical molecular dynamics

In classical molecular dynamics the forces are calculated from a parameterizedpotential, either fitted to empirical data or to first principles calculations.Classical molecular dynamics is fast, at least in comparison with ab initiomolecular dynamics. Large systems can be simulated in the order of billionsof atoms, hence it is possible to simulate grain growth, crack propagation,heat transport, etc. And for moderate system sizes long simulation time canalso be achieved, many millions of time steps, which means that processes thattake a relatively long time to occur can be simulated, e.g. diffusion. Anotheradvantage is that since the potential is known it can be modified to studyhow the changes in the potential effect the physical properties of the system.Hence it can be a useful model to understand the underlying mechanics of thesystem.

Though, there are many problems, first there is the empirically fitted po-tential and forces. The fitting will never be as good as the exact quantummechanical potential. There will always be compromises when fitting the pa-rameters. One also has to decide what properties that are most important toreproduce and which ones should be fitted to. There is also the problem oftransferability, since the parameters are fitted to experimental or first prin-ciples data for a certain conditions. And whenever the potential is appliedfor an other conditions is it not well known how well the model will representthis new situation. This means that it is difficult to know how accurate thepotential is in an unknown configuration. And since the goal is to predictproperties of that are unknown, this is a severe limitation.

Since most potentials are based on pair interactions and triplet interac-tions, a parameterization of an alloy with a few elements will require a rapidlyincreasing number of parameters, since parameters are needed for each kindof different interaction, a-a, a-b b-b, a-c c-b, c-c, and even worse in the caseof triplet interactions, with a-a-a, a-a-b, a-b-a, a-b-b, and so on. And with in-creasing number of elements the number of parameters grows very fast. Thismakes the process of fitting extremely time consuming. A problem is thatmany parameters that are co-dependent and often without enough empiricaldata to fit to. Although parameters can often be fitted to ab initio results,that will require many expensive calculations.

2.4.1 Lennard Jones potential

There are very many classical potentials, here I will only mention a few thatI have worked with. The Lennard Jones potential3

V LJ =∑I<J

[(σ

RIJ

)12

−(

σ

RIJ

)6]

. (2.15)

maybe the most famous one. It is a simple pair potential, and the basic startfor most molecular dynamics codes. The potential is best suited for noblegases, very “simple” systems, although they can be very useful model systems

Page 24: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

12 MOLECULAR DYNAMICS

in many cases. It has only two parameters ε which is the depth of the potentialwell and σ the distance at which the pair potential is zero.

2.4.2 Embedded atom method

The embedded atom method17,18,22 is designed to simulate metals. It is re-lated to the second moment approximation to tight binding theory. It workswell for many pure metals like Cu, Ag, Au, Pt, although it can also be usedfor alloys.

V EAM =∑

I

⎡⎣Fα

⎛⎝∑

J �=I

ρβ(RIJ)

⎞⎠+

12∑J �=I

φαβ(RIJ)

⎤⎦ (2.16)

The first term in the sum is the embedding energy Fα, representing the energyfor putting an atom, I, into the electron density, ρβ , of all the other atoms.The second term is a repulsive pair-wise potential function.

2.4.3 Tersoff potential

The Tersoff potential69,68,67 is a three-body potential made to simulate co-valent materials, such as silicon, germanium and carbon and also alloys ofcovalent materials for example silicon carbide. This is the potential that Iused in Paper I. The main idea is to scale the two-body potential with theassumption: each extra bond an atom has decreases the strength of all bonds.

The Tersoff potential is described in equation (2.17) to (2.24). The poten-tial energy is taken as a sum of all pair interactions.

V T =12∑i �=j

Vij , (2.17)

where Vij is a pair potential

Vij = fc(rij) (fr(rij) + bijfa(rij)) . (2.18)

The function fc(rij) is a smooth cutoff function

fc(rij) =

⎧⎪⎪⎨⎪⎪⎩

1, rij < Rij

12 + 1

2 cos(

rij−Rij

Sij−Rij

), Rij < rij < Sij

0, rij > Sij

(2.19)

The other two functions fr and fa are the repulsive and the attractive partof the potential.

fr(rij) = Aije−λijrij fa(rij) = −Bije−μijrij (2.20)

The parameter bij make the potentials a three body potential; it depends onthe positions of all the surrounding atoms. It affects the pair potential in

Page 25: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.5. AB INITIO MOLECULAR DYNAMICS 13

such a way that a large value of bij makes the bond stronger and a smallvalue makes it weaker. In a broad sense, a small value of bij corresponds to ahigh bound count and vice versa.

bij = χij

(1 + βni

i ζniji

)−1/2ni (2.21)

The function ζij works as a kind of bond counter inside the cutoff.

ζij =∑

k �=i,j

fc(rik)g(θijk)exp[λ3ij(rij − rik)] (2.22)

The counter is angle dependent, with the effect that atoms at positions withbond angles of about 125 degrees form stronger bonds. The function g isdefined by

g(θijk) = 1 +c2

i

d2i

− c2i

d2i + (hi − cos θijk)2 . (2.23)

The alloy parameters can be constructed by the following arithmetic andgeometric means of the pure material parameters

λij =λi + λj

2μij =

μi + μj

2Aij =

√AiAj

Bij =√

BiBj Rij =√

RiRj Sij =√

SiSj . (2.24)

where A, B, λ, μ, β, n, c, d, h, R, S and χij are material specific parameters.

2.5 Ab initio molecular dynamics

Ab initio molecular dynamics have great advantages over classical moleculardynamics. It is extremely accurate compared to classical molecular dynamics,there is no need to fit any parameters, all that has to be specified is theatomic positions, the atomic number of the element, and everything else willbe derived from fundamental physical laws.

This method has been prohibitively expensive because the numerical equa-tions are difficult to solve, but thanks to some recent developments in theoryand the exponential growth of computer power many more interesting prob-lems are now within reach.

2.5.1 Density Function Theory

In ab initio molecular dynamics there are no empirical potentials, hence thetime independent Schrödinger equation, Eq. 2.3, needs to be solved directly.In the Schrödinger equations there are on the order of 1024 dependent vari-ables for a real material, which makes it impossible to solve the equationdirectly. And even with the symmetry of the crystal there are still several100s of dependent variables in the wavefunction to solve. But it is knownthat the independent one-electron wavefunction is a very good approximation

Page 26: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

14 MOLECULAR DYNAMICS

in many cases. Hence a Slater-determinant of independent one-electron wave-functions will often give a good approximation. Density Function Theory(DFT) exploits this fact by substituting our system of dependent variables(in a simple potential) with a system of independent variables (in a compli-cated potential), while hiding all the complicated many-body interactions inan effective potential.

2.5.2 Hohenberg-Kohn theorems

In 1964 Hohenberg and Kohn35 made a quantum leap in the realization of apractical solution to the Schrödinger equation. They were not the first in thefield, but perhaps made the most important contribution. They formulatedtwo theorems. The first one state:

Theorem 1 For any system of interacting particles in an external potential,Vext(r), the potential Vext(r) is determined uniquely, except for a constant, bythe ground state particle density n0(r).

What this implies is that if the density of the system is known everythingabout the system is known. Because if the density is known it correspondsuniquely to a potential. And if the potential is known then the Hamiltonian ofthe system is known, and in principle everything about the system is known.Hence if we can find the ground state density, everything there is to know isknown. The second theorem provides a way to do this:

Theorem 2 A universal functional for the energy E[n] in terms of the densityn(r) can be defined, valid for any external potential Vext(r). For any particularVext(r), the exact ground state energy of the system is the global minimumvalue of this functional, and the density n(r) that minimizes the functional isthe exact ground state density n0(r).

This means that a scheme can be devised to find the ground state energy andthe ground state density and in principle everything about the system.

From these theorems, following the notation of Martin,46 the Hohenberg-Kohn energy functional can be derived

EHK[n] = T [n] + Eint[n] +∫

n(r)Vext(r)dr + EII (2.25)

= FHK[n] +∫

n(r)Vext(r)dr + EII (2.26)

It consists of a kinetic energy part, an electron interaction part, an externalpotential from the ions in the system, and the ion-ion interaction energy. Thefirst two parts are universal and do not depend on the specific problem. Butstill it is very difficult to solve since it still a many-body problem.

Page 27: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.5. AB INITIO MOLECULAR DYNAMICS 15

2.5.3 Kohn-Sham equations

The next step was taken by Kohn and Sham the following year when theypresented their ansatz, later known as the Kohn-Sham (KS) ansatz.39 Briefly,it states that there is a system of non-interaction particles corresponding to thesystem with interacting particles that has the same ground state density. Thismeans that instead of solving a system of interacting particles in a “simple”external potential we can try to solve a system of independent particles ina “complex” effective potential instead. All the many-body interactions inthe system are reduced to an effective potential, hence the electrons will onlyinteract through the effective potential.

From this ansatz we can derive a set of one-particle Schrödinger like equa-tions, called the Kohn-Sham equations(

−12

∇2 + Veff(r))

φi(r) = εiφi(r) (2.27)

with the effective potential calculated as

Veff = Vext +∫

n(r′)|r − r′|dr′ +

δExc[n(r)]δn(r)

(2.28)

the right hand side of equation 2.28 contains the external potential, theelectron-density interaction, and the last term called the exchange-correlation.Now the density is just a sum over the one-particle wavefunctions.

n(r) =N∑

i=1

|φi(r)|2. (2.29)

Following this we can derive a new energy functional

EKS[n] = Ts[n] +∫

drVext(r)n(r) + EHartree[n] + Exc[n] + EII (2.30)

Ts[n] = −12

N∑i=1

〈φi|∇2|φi〉 (2.31)

EHartree[n] =12

∫drdr′ n(r)n(r′)

|r − r′| , (2.32)

with the kinetic energy of independent electrons Ts, the external potential,the Hartree term, the exchange-correlation, and ion-ion interactions. Thekinetic energy is calculated exactly for the non–interacting particles. TheHartree term is the classical self-interaction of the charge density. Finally wehave the exchange–correlation term, for which we don’t know any functionalform. It can be important to note here that since the independent particlekinetic energy term and the long-range Hartree term is calculated explicitly,the remaining part is in many cases mostly local. This feature will be exploitedin the next section.

Page 28: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

16 MOLECULAR DYNAMICS

2.5.4 Exchange-correlation functionals

Up to this point we have just reformulated the problem in an exact way. Herewe are forced to find approximations to the many-body problem. The simplestway to do this is the local density approximation.39

ELDAxc [n] =

∫drεhom

xc ([n], r)n(r). (2.33)

It estimates the exchange–correlation to that of a homogenous election gaswith the same density. Since the homogenous election gas is, relatively speak-ing, a simpler problem it can be solve for different values of the density usingfor example quantum Monte Carlo techniques. These solutions are then usedfor the real system mapping the density at each point to the density in theelectron gas. This will give a very good approximation in many cases. Thetheory can also be extend, the most famous one being the Generalized gradi-ent approximation,55 where not only the local density is considered but alsothe local gradient

EGGAxc [n] =

∫drεGGA

xc ([n, ∇n], r)n(r). (2.34)

2.5.5 Self-consistent solution

To find the ground state density in practice an iterative method is used, asillustrated in Fig. 2.2. The first step is to generate an initial density n0(r),this can be done by, for instance, simply adding single atom densities. Fromthis density an effective potential Veff(r) is constructed. Now the Kohn-Shamequation can be solved, giving rise to a new set of wavefunctions. This willthen be summed up to construct a new density nk+1(r). Then comparingthe input density nk(r) with the output density nk+1(r) the convergence ischecked. If they differ by more then some small ε, a new input density nk+1(r)is constructed by mixing the output density nk+1(r) with previous densities.By choosing how to do this mixing in a good way13 the convergence will beas effective as possible. Directly using the output density as input densitywill result in very slow and oscillating convergence if any. When the outputdensity nk+1(r) is found to be sufficiently close to the input density nk(r), thecalculation has converged, and the total energy, EKS[n(r)], forces, etc., canbe calculated.

2.5.6 Basis set and Bloch’s theorem

When solving the Kohn-Sham equations 2.27, the wavefunctions needs tobe expanded in a basis set. For applications to periodic crystals it is veryconvenient to expand them in plane waves. Considering a large volume Ωwith periodic boundary conditions. The wavefunctions φi can be expandedas

φi(r) =∑

qci,q

1√Ω

eiq·r (2.35)

Page 29: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.5. AB INITIO MOLECULAR DYNAMICS 17

Construct effective potential

Start

End

Solve Kohn-Sham equations

Calculate new density

Guess initial densityn0(r)

Yes

No

Mix new density

nk+1(r) =N∑i=1

|φi(r)|2

|nk+1(r)− nk(r)| < ε

nk+1(r) = mix(nk+1(r), nk(r))(−1

2∇2 + Veff(r)

)φi(r) = εiφi(r)

Veff(r) = Vext(r) +

∫n(r′)|r− r′|dr

′ +δExc[n(r)]

δn(r)

Figure 2.2: Flowchart illustrating the basic steps in the Kohn-Sham self-consistency loop.

In the same way we can expand the effective potential, Veff(r), it will of coursehave the same period as the unit cell from definition, hence we can write

Veff(r) =∑Gm

Veff(Gm)1√Ω

eiGm·r. (2.36)

By multiplying the Kohn-Sham equations 2.27 from the left with e−iq·r andintegrating over the whole volume Ω, the problem can be written as a matrixequation ∑

m′Hm,m′(k)ci,m′(k) = εi(k)ci,m(k) (2.37)

where q = k+Gm is divided in two parts: k a wavevector in the first Brillouinzone and Gm a reciprocal lattice vector. The matrix element Hm,m′(k) is

Page 30: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

18 MOLECULAR DYNAMICS

simpleHm,m′(k) =

12

|k + Gm|2δm,m′ + Veff(Gm − G′m). (2.38)

This equations are a “simple” linear algebra problem and much more suitablefor computers. Its non-trivial solutions can be found from the secular equation

|H − 1ε| = 0 (2.39)

for which there are many efficient numerical methods.The eigenfunction to equation 2.37 can be separated in two terms

φi,k(r) =∑m

ci,m(k)1√Ω

ei(k+Gm)·r = eik·r 1√Ncell

ui,k(r). (2.40)

The last part of equation 2.40 is

ui,k(r) =1√

Ωcell

∑m

ci,m(k)eiGm·r (2.41)

where ΩcellNcell = Ω. Since Gm is a reciprocal lattice vector it follows thatui,k(r) has the periodicity of the lattice. This is what Bloch’s theorem7 states.

2.5.7 Hellman-Feynman Theorem

In general the force on atom I can be written as

FI = − ∂E

∂RI, (2.42)

where E = 〈φ| He |φ〉 + EII . The force can be written as

FI = − ∂E

∂R= −⟨

φ

∣∣∣∣ ∂H∂RI

∣∣∣∣φ⟩

−⟨

∂φ

∂R

∣∣∣∣H∣∣∣∣φ⟩

−⟨

φ

∣∣∣∣H∣∣∣∣ ∂φ

∂R

⟩− ∂EII

∂R.

(2.43)Since the at the exact ground state the energy is at an extreme point withrespect to any variation in the wavefunctions, the second and third terms willvanish:

FI = −⟨

φ

∣∣∣∣ ∂H

∂R

∣∣∣∣φ⟩

− ∂EII

∂R. (2.44)

This is often called the Hellmann-Feynman theorem19,32 or the force theorem.Further it is possible to show that FI only depends in the electron densityand the positions of the nuclei

FI = −∫

drn(r)∂Vext(r)

∂RI− ∂EII

∂R. (2.45)

Page 31: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.5. AB INITIO MOLECULAR DYNAMICS 19

2.5.8 Pseudo-potentials

One of the main problems with the use of plane waves as a basis set is that inthe core region of the atom the potential well is deep, and since all the one-particle wavefunctions have to be orthogonal, the solutions will be rapidlyoscillating functions. This means that for the plane wave expansion of thewavefunctions to work, the basis set has to be very large. Usually one definesan energy cut off,

Ecut =12

|k + Gmax|2 (2.46)

so to describe a smaller feature in real space, Gmax has to be increased inreciprocal space and hence the energy cut of. This leads to more terms in theKohn-Sham matrix equation 2.37 and seriously limits the size of systems thatcan be solved.

One solution to this problem is to use pseudo-potentials and especially theprojector augmented waves (PAW) method.10 The basic idea is that since thecore region of the atom is usually not involved in the bonding of the specificmaterial it can be pre-calculated and replaced with a smooth part making theplane-wave expansions much more effective.

Following the derivation of Rostgaard,60 we apply a linear operator, T ,to the smooth auxiliary wavefunctions φn to get the complex single electronKohn-Sham wavefunctions φn

|φn〉 = T∣∣φn

⟩. (2.47)

This means that we can transform the Kohn-Sham equations to be expressedin the smooth auxiliary wavefunctions

T †HT |φn〉 = εiT †T |φn〉 (2.48)

which now can be solved using a much smaller basis set. Since the wavefunc-tions already are smooth in the interstitial region in between the atoms thetransformation, T , can be defined as

T = 1 +N∑

a=1

T a, (2.49)

where T a has no effect outside a specific atom centered augmentation region.Inside the augmentation region the true and auxiliary wavefunctions are ex-panded in corresponding partial waves 〈ϕa

i | and⟨ϕa

i

∣∣. Then is can be shownthat the atomic centered transformation can written as

T a = 1 +∑

i

(〈ϕai | − 〈ϕa

i |) 〈pai | (2.50)

where⟨pa

i

∣∣ are projector functions. To summarize, the full wavefunction canbe written as

φn(r) = φn(r) +∑

a

∑i

(ϕan(r) − ϕ2

n(r))⟨pa

i

∣∣ φn

⟩. (2.51)

Page 32: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

20 MOLECULAR DYNAMICS

= - +

All electron wave functions, ”complicated”

Smooth pseudo wave functions, core regions

replaced, ”simple”

Smooth onsite pseudo wave functions

All electron onsite wave functions

= - +φn(r) φn(r)

N∑a=1

φan(r−Ra)

N∑a=1

φan(r−Ra)

Figure 2.3: Schematic view of the different terms in the PAW method

As a convince we can define the one center expansions

φan(r) =

∑i

ϕan(r)⟨pa

i

∣∣ φn

⟩(2.52)

φan(r) =

∑i

ϕan(r)⟨pa

i

∣∣ φn

⟩. (2.53)

In this notations the transformation can be visualized as in figure 2.3.

2.5.9 Solving the Kohn-Sham equations

The Kohn-Sham secular equation (2.37) can of course be solved directly usingstandard linear algebra diagonalization. For large systems this will be slowand a substantial bottleneck in the solution of the Kohn-Sham equations,especially for system with very large basis sets, like in the case of plane waves,even with the use of pseudo-potentials.

Instead of the direct diagonalization of the problem, an iterative solutionmethod can be used. A direct diagonalization scales as NeN2

b where Ne isthe number of eigenstates in the system and Nb is the size of the basis set.Iterative method can scale as N2

e Nb which can be a very large difference whenNb Ne. And in the case of structural relaxations or molecular dynamicsone can often find a good initial guess from the previous steps, reducing thecomputational demand even more.

2.6 Post-processing and visualization

A large part of the work when doing molecular dynamics simulations actuallycomes after the finished simulation. During the simulation a, often largeamount, of data is generated, instantaneous energies, temperatures, pressures,stresses, and of course an even larger amount of positions, velocities andforces. In many cases one will also have to run molecular dynamics simulations

Page 33: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

2.6. POST-PROCESSING AND VISUALIZATION 21

over a range of different parameters, for example, temperatures, volumes, anddifferent structures.

For example, in figure 2.4 the atomic probability density of face-centeredcubic (FCC) Mo is visualized.

Figure 2.4: Atomic probability density of Mo as a function of temperature.The data visualized is a histogram of the x-y projections of the atomic dis-placements in face-centered cubic Mo. One can see a clear transition as thetemperature increases, from dynamical unstable Mo at low temperatures tothe dynamically stable Mo at high temperatures.

FCC Mo is dynamically unstable at low temperatures, this is indicatedin the fist subplot of figure 2.4, where we see that the atomic distribution isasymmetric. As the temperature increases we can see how the distributionbecomes more and more symmetric, indicating that the dynamics now arestable.

As a matter of fact, scientific visualization is important for all types ofmolecular simulations. For example, in Paper 7 I carried out the visualizationand analysis of the energy surface of TiN and disordered TiAlN. The surfacediffusion of adatoms on TiN and TiAlN surfaces is important in the under-standing of growth process when depositing thin films. To better understandthe surface diffusion the binding energy of an Al and a N atom were calcu-lated for every point on a grid of the surface. From these energies I was ableto build the energy surface and calculated all the minimum energy sites, andfrom that all the diffusion barriers across the surface. The energy barrierswhere then used in kinetic Monte Carlo simulations to determine the adatommobility on the different surfaces.

Page 34: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

22 MOLECULAR DYNAMICS

2.7 Problem areas

In the following chapters four different problem areas in connection withmolecular dynamics are presented and addressed.

Configurational phases space. First we address the issue of finding theconfigurational ground state in a grain boundary. Since the space ofpossible configurations is so large, one has to use clever methods totry to find it. Here a method suggested by von Alfthan et al. 72 isimplemented and applied to diamond grain boundaries.

Time reversible integration. In chapter 4 we look at the problem of totalenergy drift in ab initio molecular dynamics. It happens that in an at-tempt to significantly speed up the MD, one also introduce a systematicenergy drift in the system. Here I describe a method that removes theenergy drift while maintaining the gained performance.

The paramagnetic state. Using molecular dynamics we present a way totreat both the lattice vibrations and magnetic excitations in a param-agnetic material

Temperature dependent elastic constants. The temperature depen-dence of elastic constants is of great importance in the continuummodeling of materials. Using ab initio molecular dynamics theseproperties are now within reach of our computer calculations. Here Icalculate the elastic constants for TiN.

Page 35: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 3Grain boundary structure

For any crystalline material the microstructure is important for the mechan-ical properties, e.g. hardness. The hardest material is diamond. Naturaldiamonds are often single-crystals, but synthetic diamonds may be multi-grain. One important part of the microstructure in a polycrystalline materialis how the grains are connected to each other, or in other words, the grainboundary structure. In general it is very difficult to calculate how two grainsare connected to each other. There are many different parameters that canvary: The orientation of the involved grains with respect to each other, thesize of the grains, all the different ways the atoms can form bonds betweeneach other. This problem was studied in Paper I.

Diamond, with its many fascinating properties, has always been a inter-esting material, especially during the last decades when the technology toproduce artificial diamonds became available. Thus, in the last few years, ithas been made possible to produce materials with very small diamond crys-tals (nanocrystalline diamonds), with particles in the order of a few nm28. Insuch polycrystalline aggregates, the amount of substance located in betweenthe crystallites, i.e. in the grain boundary (GB), becomes considerably largerand important for the properties of the material. Diamond grain boundarieshave therefore been studied in a large variety of ways, both experimentally28

and theoretically38,77,63. In particular, a determination of GB structure hasattracted substantial attention, and the role of computer simulations in solv-ing this problem is currently well-recognized. One type of grain boundarieswhich have been studied extensively are the so-called twist GB. They are gen-erally high energy GB and are seen as representative of many of the GB innanocrystalline diamond. Simulations have shown GB structures which havea very high amount of sp2 bonded atoms, up to 80 %38. The boundaries of-ten show high structural order at the expense of coordination disorder. Thewidths of these boundaries are very narrow, usually of the size of one or twolattice constants38.

The problem of finding the structure of a GB is in general very hard, bothsince the configurational phase space is very large for an arbitrary GB and thelimitations in time and space that computational methods gives rise to. Most

23

Page 36: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

24 GRAIN BOUNDARY STRUCTURE

attempts to find the ground state structure of a twist boundary are based oncreating a supercell representing the GB, subjecting it to simulated annealingat high temperature and thereafter cooling it down to zero temperature38,77.Von Alfthan et al.72 introduced a new method where the procedure for cre-ating the initial configuration was modified to vary the number of atoms inthe GB, resulting in significantly different GB configurations and lower GBenergies, compared to previous simulations when applied to grain boundariesin silicon. Here I apply this method for the study of grain boundaries indiamond.

3.1 Special grain boundaries

To consider all possible grain boundary structures would be difficult. Fortu-nately there are a few classes of special grain boundaries that are especiallywell suited for simulation. In this work we will focus on the twist boundaries.We use them as a model system for a more general boundary. A twist bound-ary consists of a rectangular slabs of atoms cut in the middle and rotatedaround an axis perpendicular to the cut with respect to the other, as can beseen in the Fig 3.1. A requirement for doing molecular dynamics simulationsof the twist boundary is that both slabs of atoms are commensurate with thesimulation cell. This means that only a subset of possible angles of rotationare available. One can enumerate these possible rotation angles and their re-spective grain boundaries. This is done using the Σ K notation where the K

represents how many times larger the unit cell has become. The smallest GBin the (001) direction is called Σ 5 and has a unit cell that is five times largerthan the ordinary diamond unit cell, with an angle of rotation of 36.87◦.

3.2 Phase space spanning

To find the ground state you would have to, in principle, consider all possibleatomic configurations and select the one with the lowest total energy. We callthis space of possible atomic configurations the configurational phase space.Tofind the best possible configuration we want to search as large part of thisspace as possible. If we focus on the special case of the Σ 5 boundary thereare several aspects to consider, how large will the new GB unit cell be, itcan of course consist of several Σ 5 unit cells, how far apart will the twoslabs be. We address this by using a simulation cell that is larger then thesmallest possible commensurate cell. In this case we use a simulation cell thatconsists of 2 by 2 commensurate cells. But in principle this could be verylarge to include all the possible relaxations. The distance between the slabs isallowed to adjust freely, solving the problem with finding the right distance.This means that the supercell will have two free surfaces since we can’t haveperiodic boundary conditions perpendicular to the GB. This means that wewill have to make sure that we have a sufficient amount of layers in each slabto ensure that the free surface, and the GB does not interact.

Page 37: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

3.3. VARYING THE NUMBER OF ATOMS IN GB 25

Figure 3.1: The initial configuration of the Σ 5 twisted grain boundary su-percell before simulated annealing. I should be noted the upper and lowerpart of the slab have different orientation. They have been rotated 36.87◦ inrelation to each around an axis orthogonal to the GB. When removing atomsfrom the GB, a random selection of ΔN yellow atoms is removed.

3.3 Varying the number of atoms in GB

Even though we take all of these issues into account, von Alfthan et.al.72

suggested that the phase space search would still be severely limited. Thisis due to the fact that when we generate the two opposite GB surfaces wedetermine beforehand how many atoms there should be in the GB. In principle

Page 38: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

26 GRAIN BOUNDARY STRUCTURE

atoms should be able to diffuse through the bulk layers and out to the freesurfaces in case that it would be energetically favorable although this is anextremely slow process from the point of view of a MD calculation. This willin principle never happen during our simulated annealing calculations. Thus,to alleviate this problem we will generate many different initial supercell witha certain number, ΔN , of atoms in the layer closes to the GB removed asshown in figure 3.1. Given, for example, a Σ 5 GB one can see by symmetrythat if 10 atoms are removed from the layer closes to the GB and the slab isshifted a small bit we will end up in the same configuration as we started. Wewill never have to remove more then 9 atoms. But there are of course manydifferent ways to remove ΔN atoms from the layer, so we generate a randomsample of 20 different setups for each ΔN .

3.4 Simulated annealing

0 1 2 3 4 5 60

1000

2000

3000

4000

Time �ns�

Tem

pera

ture�K�

Simulation temperatureQuench samples

Figure 3.2: Temperature evolution during the simulated annealing, the verti-cal arrows symbolize quenches to 0K done throughout the cooling period.

Simulated annealing is then done by first quickly heating the GB regionto around the melting temperature while the temperature of the surroundingbulk is kept low. The system is maintained in this state for some time, 1ns,to erase as much of the memory of the initial state as is possible. Then westart cooling the system slowly, during this cooling the current configurationis saved at a regular intervals. These are then later quenched to 0K, byminimizing all the forces in the system, using the Fire9 algorithm. Thiswill result in a number of different candidate structures and from these weselect the one with the lowest total energy. A typical temperature profile of asimulation can be seen in Fig. 3.2. Figure 3.3 plots the energy of the differentquenched structures. It is clear that after about 2/3 of the simulation a

Page 39: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

3.5. SIMULATION DETAILS 27

� �

� � � � � � � � � � � �

5 10 15 20

5.0

5.1

5.2

5.3

5.4

Quench sample number

GB

Ener

gy�J�m

2 �

� � �N�0

Figure 3.3: Energy the the quenched structures as a function of annealingtime.

plateau is reach and the simulation will not yield any structures that arelower in energy.

3.5 Simulation details

These calculations require detailed control during the simulation run. Espe-cially the temperature needs to be controlled in a precise way independentlyin different regions in the simulations cell. I have implemented the differentmethods in an in house MD code called MDSinecura.64 This also gives thepossibility to do all the quenches inline in the simulation. All simulations areperformed using the well-known Tersoff potential.69 This interaction potentialis well suited for simulation of covalently bonded materials such as Si and C,as it can reproduce the features of both sp2 and sp3 bonded atoms72,73,38,74.

3.6 Resulting structures

The lowest grain boundary energies found for each ΔN are shown in Table3.1. The smallest energy is found for the case of ΔN = 1. It is approximately20% lower than the energy for the configuration with ΔN = 0, which is themost often used configuration in previous MD simulations. We also notethat the GB with ΔN = 9 has substantially lower energy compared to theΔN = 0 case. Watanabe et al.74 reported on the calculation of the thermalconductivity in diamond GB and did not find any structures with lower energywhen using Alfthens et al. method72 for the Σ21 GB. However we clearly seethe importance of this new technique in the case of Σ5 GB.

In Fig 3.5 the resulting lowest energy GB with ΔN=1 is shown, and forcomparison the lowest energy structure with ΔN=0 is shown in Fig. 3.4.

Page 40: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

28 GRAIN BOUNDARY STRUCTURE

Figure 3.4: Top and side view of the lowest energy structure for ΔN=0, thegreen bonds comes from sp3 bonded atoms and the yellow from sp2 bondedatoms. The colors on the atoms correspond to energy Vi =

∑j Vij in the

Tersoff potential, green atoms have low energy, blue, yellow, and red atomshave increasingly higher energy.

Table 3.1: The minimal grain boundary energy, EGB , (J/m2) found for alldifferent numbers of removed atoms ΔN . ΔV is the GB volume increase perunit area as a fraction of the lattice constant.

ΔN 0 1 2 3 4 5 6 7 8 9ΔV (%) 16 16 21 22 38 18 23 31 27 48EGB 4.96 3.93 4.75 5.00 5.13 5.38 5.09 4.93 5.69 4.35

Fig. 3.4 and 3.5 gives a further analysis the resulting GB structures. Wecan see that the ΔN=1 structure is more ordered then the ΔN=0 case. Allthe sp2-bonded atoms are in a narrower area in the ΔN=1 case and almostall of them is used in the bonding across the GB which consist of only sp2

bonded atom pairs forming bonds that are almost completely perpendicularto the GB surface.

In Figure 3.7, the final distribution and total number of sp2 andsp3 bonded atoms in the GB are shown. As it can be observed in Figure3.7, in the central region of the Σ5 (2x2) ΔN = 1 GB, more than 85 % of theatoms are sp2 bonded, in total 48 out of 56 atoms in the central 3 monolayers.

Page 41: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

3.6. RESULTING STRUCTURES 29

Figure 3.5: Top and side view of the lowest energy structure for ΔN=1. Usingthe same colors as in Fig. 3.4. The structure is clearly more ordered then inthe the case of ΔN = 1 in Fig. 3.4

�3 �2 �1 0 1 2 30

20

40

60

80

0

20

40

60

80

Distance from center of GB ��

Cum

ulat

ive

num

bero

fato

ms

Bulk

Bulk

Bulku

Bulku

sp3�bondedsp2�bonded

Figure 3.6: View of the distribution of sp2 and sp3 bonds in the GB for ΔN=0

The GB width measured between the two fully sp3 bonded monolayers closestto the GB, would only be slightly wider than the perfect crystal, about 1.12a0.

Page 42: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

30 GRAIN BOUNDARY STRUCTURE

�3 �2 �1 0 1 2 30

20

40

60

80

0

20

40

60

80

Distance from center of GB ��

Cum

ulat

ive

num

bero

fato

ms

Bulk

Bulk

Bulk

Bulk

sp3�bondedsp2�bonded

Figure 3.7: View of the distribution of sp2 and sp3 bonds in the GB for ΔN=1

The very step-like features of the left side of Figure 3.7 also reveal a quite or-dered structure, compared to the smooth features of the corresponding Figure3.6.

In Table 3.1 we also present the excess volume of the GB compared tobulk diamond per unit area of the GB as a fraction of the lattice constant,ΔV = (VGB −V ∗NGB)/(AGB ∗a) where VGB is the volume of the GB region,V is the bulk volume per atom, NGB is the total number of atoms within VGB ,AGB is the area of the GB and a is the bulk lattice constant. From this wesee that, as expected, the diamond with equilibrium GB should be less dense.However, we note that the lowest energy GB ΔN=1 is as dense as the ΔN=0case, despite the fact that it has one atom less. This demonstrates that bondsare optimized in such away as to compensate for the atom removal.

In summary, a new configuration of Σ5 GB in diamond with one atomremoved from the boundary, is found to have energy approximately 20% lowerthan that for the standard configuration used in calculations. This lowestenergy configuration is narrow, has higher degree of order, and predominantlysp2 bonding between the atoms in the GB.

Page 43: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 4Extended Lagrangian

Born-Oppenheimer MD

The main limiting factor for all BOMD is the speed of the calculation. Despiteall the developments in theoretical treatment and computational power theapplicability of the simulations are still severely limited by the computationalresources. As we saw in section 2.5.5 we use an iterative solution to theKohn-Sham equations. How fast that solution converges is of course highlydependent on how good the initial guess density, n0(r), is. In moleculardynamics we can often create quite a good guess from a linear combinationof previous time steps

n0(t) =M∑

m=1

cmn(t − mδt). (4.1)

This will often reduce the number of necessary iterations by an order of mag-nitude and hence speed up the simulations drastically. Although, as willbe shown below, this comes at the cost of systematic energy drift. In thischapter I present a solution to this problem in terms of an extended La-grangian formulation of Born-Oppenheimer molecular dynamics. The similarexpression “extended Lagrangian ab initio molecular dynamics” often refersto Car-Parrinello molecular dynamics (CPMD).14 This should not be con-fused with the extended Lagrangian Born-Oppenheimer molecular dynamicsmethod discussed here. In many ways our new method combines some of thebest features of regular BOMD and CPMD, while avoiding their most seri-ous shortcomings.48 Our method maintains the small cost per time step fromCPMD through good guesses, while the systematic energy drift of BOMD isavoided. It keeps the long time steps of BOMD since there are no electrondynamics to consider. The approximations that are made are well defined asin BOMD. There are no free parameters to set as in CPMD, and the methodwork equally well both for metals and insulators. Finally it should be notedthat all molecular dynamics simulations are built on the NVE ensemble. Eventhough a simulation might use for example an NVT ensemble, if the underly-

31

Page 44: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

32 EXTENDED LAGRANGIAN BORN-OPPENHEIMER MD

ing NVE ensemble is not correct, there is no guarantee that the NVT ensemblewill be correct. Therefore energy conservation is not only important in theNVE ensemble but in all ensembles.

4.1 Energy drift

Let us consider a linear combination of previous time steps. For simplicity,let us look at a second order extrapolation

nsc(t + δt) = SCF [2nsc(t) − nsc(t − δt)] (4.2)

where SCF[·] represents the Kohn-Sham self-consistency loop. It is easy tosee that the propagation of the density is not done in a time reversible way.If we change δt to −δt we will not arrive at an equation of the same formsince the iterative SCF solution is not linear. This will be true for any linearcombination, unless the SCF solution is exact which will never happen inpractice. This means that we have broken the time-reversal symmetry of theunderlaying equations of motion, and hence we will no longer have the totalenergy as a constant of motion in the system. This will led to a systematiclong term energy drift in the system.

0 2 4 6 8 100

50

100

150

200

250

Simulation time �ps�

Tota

lene

rgy

drift�m

eV�f

.u.� Conventional BOMD

Figure 4.1: Total energy fluctuations of 2x2x2 primitive unit cells of B1 TiNas a function of time. Simulated in the Vienna Ab-Initio Simulation Pack-age43,41,42 using the projector augmented wave method.10 A time step of 0.5fs and an energy cutoff of 0.1 meV were used.

The standard way to solve this is to decrease the time step and increasethe convergence criteria for the SCF solution. But this will reduce the gainedefficiency that was the point to start with.

Page 45: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

4.2. EXTENDED LAGRANGIAN BOMD 33

4.2 Extended Lagrangian BOMD

In extended Lagrangian BOMD51,50,65 (XL-BOMD) the dynamical variablesof the BO Lagrangian are extended with an auxiliary density ρ evolving in anharmonic oscillator centered around the self-consistent ground state densitynsc,

LXBO(R, R, ρ, ρ) = LBO(R, R) +12

μ

∫ρ(r)2

dr

−12

μω2∫

(nsc(r) − ρ(r))2dr. (4.3)

Here μ is a fictitious electron mass parameter and ω is a frequency or cur-vature parameter for the harmonic potentials. Applying the Euler-Lagrangeequations to the extended Lagrangian in Eq. 4.3 gives

MiRi = −∂UDFT

∂Ri− μω2

2∂

∂Ri

∫(nsc(r) − ρ(r))2dr, (4.4)

μρ(t) = μω2(nsc(t) − ρ(t)). (4.5)

In the limit when μ → 0 we get

MiRi = −∂UDFT[R; nsc]∂Ri

, (4.6)

ρ(t) = ω2(nsc(t) − ρ(t)). (4.7)

Thus, in the limit of vanishing fictitious mass parameter, μ, we recover theregular BO equations of motion in Eq. 4.6, with the total BO energy as aconstant of motion. Equation 4.7 determines the dynamics of our auxiliarydensity ρ(t). Since μ is set to zero, the only remaining undetermined param-eter is the frequency or curvature ω of the extended harmonic potentials. Aswill be shown below, ω occurs in the integration of Eq. 4.7 only as a dimen-sionless factor δt2ω2 and therefore affects the dynamics in the same way asthe finite integration time step δt.

Since the auxiliary density ρ(t) is a dynamical variable, it can be integratedby, for example, the time-reversible Verlet algorithm.70 Moreover, since theauxiliary density evolves in a harmonic well centered around the ground statesolution, ρ(t) will stay close nsc. By maximizing the curvature ω2 of theharmonic extensions we can minimize their separation. Using the auxiliarydynamical variable ρ(t) in the initial guess to the SCF optimization,

nsc(t) = SCF [ρ(t); R] , (4.8)

therefore provides an efficient SCF procedure that can be used within a time-reversible framework. The nuclear forces will then be calculated with an un-derlying electronic degrees of freedom with the correct physical time-reversal

Page 46: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

34 EXTENDED LAGRANGIAN BORN-OPPENHEIMER MD

symmetry. This is in contrast to conventional BOMD, where the SCF opti-mization is given from an irreversible propagation of the underlying electronicdegrees of freedom as in Eq. 4.2. Hence the system will be propagating re-versibly and should not suffer from any systematic drift in the total energyand phase space.

4.3 Wavefunction extended Lagrangian BOMD

In section 2.5.9 I discussed solving the Kohn-Shan matrix equation using aniterative procedure instead of the direct diagonalization. As a consequenceof this there is also a need for a good initial guess to the wavefunctions, orthe more correctly, to the wavefunction coefficients. This means that in thecase of molecular dynamics simulations based on plane waves, we also want tosupply a good guess for the wavefunctions in the next time step, not only forthe density. Here we will run into the same problem once more, but we canapply a similar scheme. In Paper III I extend our Lagrangian with a set ofauxiliary wavefunctions Φ = {φnk} evolving in harmonic oscillators centeredaround the self-consistent ground state wavefunctions Ψsc(t),

LWXBO(R, R, ρ, ρ, Φ, Φ) = LXBO +μ

2∑nk

∫|φnk|2dr

−μω2

2∑nk

∫|ψsc

nk − φnk|2dr. (4.9)

Applying the same logic as before we will get an additional set of equationsfor the auxiliary wavefunctions

Φ(t) = ω2(Ψsc(t) − Φ(t))

(4.10)

with the same properties as the density. Hence we can use both the auxiliarydensity ρ and the auxiliary wavefunctions as initial guesses to the iterativeKohn-Sham loop

{nsc(t), Ψsc(t)} = SCF [ρ(t), Φ(t); R] . (4.11)

4.4 Integration of equations of motion

Since ρ and Φ are dynamical variables just as R, they can be integrated inthe same way. For example with the Verlet algorithm of some other time-reversible or symplectic algorithm. In this work I only consider the simpleVerlet method. Hence, for both the auxiliary density and wavefunction wecan write

Φ(t + δt) =2Φ(t) − Φ(t − δt) + δt2Φ(t)ρ(t + δt) =2ρ(t) − ρ(t − δt) + δt2ρ(t), (4.12)

Page 47: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

4.5. PHASE ALIGNMENT 35

where δt is the molecular dynamics time step. By applying the equations ofmotions 4.7,4.10 we get

Φ(t + δt) =2Φ(t) − Φ(t − δt) + δt2ω2(Ψsc(t) − Φ(t))

(4.13)ρ(t + δt) =2ρ(t) − ρ(t − δt) + δt2ω2(nsc(t) − ρ(t)

). (4.14)

Here we can clearly see that if we substitute δt with −δt we still have exactlythe same equation. Hence we have a time reversible system and the constantsof motion will be conserved.

4.5 Phase alignment

Unfortunately the integration for the wavefunctions will not work very well.This can easily be understood if we consider the last part of equation 4.13

δt2ω2(Ψsc(t) − Φ(t))

= δt2ω2(SCF [Φ(t)] − Φ(t)). (4.15)

Remember that the wavefunction is a complex function and that it is invariantto unitary rotations in the phase space. The phase of SCF [Φ(t)] and Φ(t) cantherefore be completely different, because the Kohn-Sham self-consistancywill not preserve the phase of Φ(t). Only by defining the phase of Ψsc is theintegration in equation 4.13 continuos.

We can solve this problem by applying unitary transform U which rotatesΨsc(t) such that the deviation from Φ(t) is minimized in the Frobenius norm,i.e.

U = arg minU ′

||Ψsc(t)U ′ − Φ(t)||F . (4.16)

U can be calculated from U = (OO†)−1/2O where O = 〈Ψsc|Φ〉 is the overlapmatrix between Ψsc(t) and Φ(t)6,40,25. Since the rotation is only applied toΨsc(t) and not to previous auxiliary wavefunctions, the reversibility is notaffected. The redefined Verlet integration for the wavefunctions is

Φ(t + δt) = 2Φ(t) − Φ(t − δt) + δt2ω2(Ψsc(t)U − Φ(t)). (4.17)

4.6 Stability and noise dissipation

A problem that appears in a system that has perfect time reversibility isthat errors tend to accumulate since the system does not have the ability toforget anything. And since we always have numerical errors, and often not acomplete convergence in practical implementations, this will eventually leadto instabilities in the propagation. How soon will depend on the magnitudeof the errors. In many cases we do not want to spend the necessary timeto minimize these errors, since they may be on acceptable levels from otherpoints of view. We would like to remove these errors from the propagation ina controlled manner.

One possible way to do this is to add a few extra terms in the Verletintegration in such a way as to dissipate the errors as much as possible while

Page 48: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

36 EXTENDED LAGRANGIAN BORN-OPPENHEIMER MD

still only breaking the time reversal symmetry as little as possible. If weconsider such an approach we can write the integration as

Φ(t + δt) = 2Φ(t) − Φ(t − δt) + δt2ω2(Ψsc(t)U − Φ(t))

K∑m=0

cmΦ(t − mδt). (4.18)

ρ(t + δt) = 2ρ(t) − ρ(t − δt) + δt2ω2(nsc(t) − ρ(t))

K∑m=0

cmρ(t − mδt). (4.19)

The stability of the Verlet integration in Eqs. 4.18, 4.19, under the conditionof an approximate and incomplete SCF convergence, can be analyzed from theroots λ of the characteristic equation of the homogeneous (steady state) partof the Verlet scheme, in the same way as for the density matrix in Paper II.Assume a linearization of an approximate SCF optimization, Eq. 4.11, aroundthe hypothetical exact solution Ψ∗ and n∗, where

nsc =SCF[ρ] ≈ n∗ + Γ SCF(ρ − n∗)Ψsc =SCF[Φ] ≈ Ψ∗ + Γ SCF(Φ − Ψ∗). (4.20)

Let γ be the largest eigenvalue of the SCF response kernel ΓSCF. InsertingEq. 4.20 in the Verlet scheme, Eqs. 4.18,4.19, with ΓSCF replaced by γ, for thehomogeneous steady state solution, for which Ψ∗ ≡ 0, gives the characteristicequation

λn+1 = 2λn − λn−1 + κ(γ − 1)λn + α

K∑m=0

cmλn−m. (4.21)

Here κ = δt2ω2 is a dimensionless constant and γ ∈ [−1, 1] is proportional tothe amount of convergence in the SCF optimization. As long as the initialguess Φ(t) is brought closer to the ground state solution by the SCF proce-dure, |γ| will be smaller than 1. If the characteristic roots have a magnitude|λ|max > 1, the integration is unstable (even if the accuracy is good), whereasit is stable if |λ|max ≤ 1 (even if the optimization is approximate). For|λ|max < 1 the accumulation of numerical noise will be suppressed throughdissipation.26 The coefficients κ = δt2ω2, α and cm are optimize under a setof conditions. First the coefficients cm are chosen in such a way that as manyodd terms in δt are zero as possible. Then we require that all characteris-tic roots have a magnitude smaller then one. Finally we try to maximizethe dissipation by minimizing

∫ 1−1 |λ|maxdγ. This will also keep κ as large

as possible, hence the curvature ω2 of the extended harmonic wells will bemaximized, which keeps the auxiliary wavefunctions Φ(t) as close as possibleto the ground state solutions Ψsc(t)53.

Our optimized values of α and κ and the cm coefficients can be foundtable 4.1. The dissipation decreases with increasing K, and correspondingly

Page 49: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

4.7. APPLICATION TO TIN 37

Table 4.1: Optimized coefficients for the Verlet integration scheme with theexternal dissipative force term in equation 4.18.

K δt2ω2 α×10−3 c0 c1 c2 c3 c4 c5 c6 c7 c8 c90 2.00 03 1.69 150 -2 3 0 -14 1.75 57 -3 6 -2 -2 15 1.82 18 -6 14 -8 -3 4 -16 1.84 5.5 -14 36 -27 -2 12 -6 17 1.86 1.6 -36 99 -88 11 32 -25 8 -18 1.88 0.44 -99 286 -286 78 78 -90 42 -10 19 1.89 0.12 -286 858 -936 168 168 -300 184 -63 12 -1

the energy stability increases with increasing K. For the applications in thischapter K = 5 has been found to be a good balance between error dissipationand energy stability, which also has been confirmed in independent studies.78

Three different examples of dissipation as a function of SCF convergence asmeasured by |λ|max and |γ| are shown in Fig. 4.2.

�1.0 �0.5 0.0 0.5 1.00.0

0.2

0.4

0.6

0.8

1.0

1.2

SCF convergence Γ

Dis

sipa

tion�Λ

max

BOMD, 2nd order integrationXL�BOMD, �Α�0�XL�BOMD, �Α�0�

Figure 4.2: Stability and dissipation for 2nd order regular BOMD6,40 andXL-BOMD, Eq. 4.18. The stability region of the regular BOMD is limited toγ ∈ [−0.14, 0.50] hence demanding a higher degree of SCF convergence, evenif the accuracy in each step is high. In contrast, XL-BOMD is stable in theentire region of SCF convergence, γ ∈ [−1, 1].

4.7 Application to TiN

A supercell with 2x2x2 primitive TiN unit cells was simulated for a total of10,000 steps with an ionic temperature starting around 500 K and a time stepof 0.5 fs, using the Vienna Ab-Initio Simulation Package (VASP),43,41,42 withthe projector augmented wave (PAW) method.10 The regular BOMD inte-

Page 50: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

38 EXTENDED LAGRANGIAN BORN-OPPENHEIMER MD

0 2 4 6 8 100

50

100

150

200

250

Simulation time �ps�

Tota

lene

rgy

drift�m

eV�f

.u.� Conventional BOMD

XL�BOMD

Figure 4.3: Fluctuations in the total energy, ΔE, as a function of time for2x2x2 primitive TiN unit cells and an integration time step of 0.5 fs. Thesame SCF convergence criterion was used, δE = 0.5 meV The regular BOMDsimulation shows significant systematic energy drift.

gration scheme was based on a 2nd-order extrapolation of the wavefunctionsfrom three previous time steps6,40 and the XL-BOMD scheme used K = 5for the dissipation. Both methods used the velocity Verlet integration forthe nuclear degrees of freedom and were run with the same SCF energy con-vergence criterion, δE = 0.1 meV, resulting in about 4.6 SCF iterations pertime step for the conventional method and 3.6 for XL-BOMD method. EachSCF cycle includes one single construction and solution of the Hamiltonianeigenvalue problem. For matrix diagonalization we chose the iterative RMM-DIIS76,57 method. As SCF convergence accelerating algorithm we used thePulay scheme.57 A plane-wave energy cutoff of 500 eV and a grid of 2x2x2k-points was used and the exchange-correlation energy was given by the localdensity approximation.15

The fluctuations in the total energy can be seen in Fig. 4.3. For regularBOMD we see a systematic drift in the total energy of the order of 25 meV/ps.In comparison, XL-BOMD shows no drift and the magnitude of the energyfluctuations due to the local truncation errors, occurring because of the finitetime steps and the approximate SCF convergence, is the same. The resultingshift in temperature is quite dramatic as can be seen in Fig. 4.4. During thesimulation the temperature doubles from the initial 500K to over 1000K 10 pslater for the regular BOMD. For the XL-BOMD temperature is stable at 500Kthrough the entire simulation as expected from the conserved total energy.

Page 51: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

4.7. APPLICATION TO TIN 39

0 2 4 6 8 100

500

1000

1500

Simulation time �ps�

Tem

pera

ture�K�

Conventional BOMDXL�BOMD

Figure 4.4: Temperature drift for TiN in conventional BOMD and XL-BOMD,thick lines represent a running average of the temperature. The conventionalBOMD shows a dramatic drift, doubling the temperature during the simula-tion.

Page 52: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical
Page 53: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 5Disordered local moments

molecular dynamics

Chromium nitride is a material which combines practical and industrial rele-vance as a component in protective coatings71,58 with fascinating fundamentalphysical phenomena. The latter include a phase transition with a magneti-cally driven lattice distortion20 between an antiferromagnetic orthorhombiclow temperature phase and a paramagnetic cubic high temperature phase16.The importance of strong electron correlations, as well as the necessity tomodel the paramagnetic state using finite disordered local moments have beenrecently shown34,5. Important issues, such as the impact of the phase transi-tion on the compressibility of the material59,4 are still subjects of an intensediscussion.

The core problem of obtaining a complete understanding of these phe-nomena and properties on the most fundamental level of physics arises fromthe difficulty of simulating the paramagnetic high-temperature phase fromfirst principles. I present a practical scheme for calculating thermodynamicproperties, in particular the equation of state, of a paramagnetic material atelevated temperature merging ab initio molecular dynamics and the disor-dered local moments model (DLM). This DLM-MD technique is then appliedto investigate the influence of temperature and pressure on the compressibilityof CrN. I show that the change of the bulk modulus of CrN upon the pressureinduced phase transition is minimal, strengthening conclusions from earlierstatic calculations4,5 which questioned its reported collapse59.

5.1 Modeling the paramagnetic state

Within our approach we describe the paramagnetic state of a system withinthe disordered local moment picture. In this approach, local moments existat each magnetic site of a system (in our case, at Cr sites in CrN) and arecommonly thought to fluctuate fairly independently. Thoughtful discussions

41

Page 54: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

42 DISORDERED LOCAL MOMENTS MOLECULAR DYNAMICS

of the DLM model can be found in papers by Gyorffy et al. 29 , Hubbard 36,37

and Hasegawa 30,31 .The CPA is applicable for the description of a substitutionally disordered

system with atoms at the sites of an ideal underlying crystal lattice61, andtherefore cannot be used for treatment of lattice dynamics at finite tempera-tures. In a previous work Alling et al. 5 , took one step towards the simulta-neous modeling of magnetic and vibrational finite temperature effects by sug-gesting two alternative supercell implementations of the DLM calculations. Inthe first, a specific collinear distributions of up and down magnetic momentsarranged to minimize the spin correlation functions were used, in line withthe special quasirandom structure (SQS)79 methodology. In the second, amagnetic sampling method (MSM) was proposed. In the MSM, the energiesof a number of randomly generated magnetic distributions were calculatedand their running average was taken as the potential energy of the paramag-netic sample. In the work by Alling et al. 5 it was shown that for CrN MSMcalculations are converged already for 40 different magnetic distributions, andthe two approaches, the SQS and MSM give almost identical results.

The SQS approach makes use of the fact that in a static picture with allatoms fixed on ideal lattice points, the description of a spatial disorder betweenthe local moment orientations is a good approximation to model the energeticsof the combined space and time fluctuations of magnetic moments in a realparamagnet. Unfortunately, if the vibrations of atoms are to be included,one needs to go beyond the fixed magnetic state described by the SQS. Thereason is that if a magnetic state is fixed in time one would see artificial staticdisplacements of atoms off their lattice sites due to forces between the atomswith different orientations of their local moments and with different localmagnetic environments. In the CrN case those are likely to be quite largedue to the magnetic stress discussed in the work by Filippetti and Hill 20 . Ina real paramagnet, due to the time fluctuations of the local moments, thiseffects should be at least partially averaged out and suppressed depending onthe time scales of the spin fluctuations and atomic motions.

The MSM could in principle be used to obtain the adiabatic approximationwhere the magnetic fluctuations are considered to be instantaneous on thetime scales of atomic motions. This approximation would be obtained if theforces acting on each atom were averaged over a sufficient number of differentmagnetic samples during each time step of a molecular dynamics simulation.The obvious drawback in this approach is that a large number of calculationsneeds to be run in parallel leading to an increase, a factor 40 in our case, incomputational demands. However, the MSM gives us a very good startingpoint for the implementation of the DLM picture in a MD framework.

5.2 Disordered local moment molecular dynamics

In this I introduce a method for molecular dynamics simulations of param-agnetic materials within the traditional ab-initio molecular dynamics frame-

Page 55: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

5.2. DISORDERED LOCAL MOMENT MOLECULAR DYNAMICS 43

10 Flip spins

0

...N

t (fs)

20

Run MD

Run MD

Flip spins

Flip spins

Run MD

Δtsf

Δtsf

Figure 5.1: Schematic figure describing the spin flipping process in DLM-MD.First Δtsf /Δt time steps of conventional MD then all the spins are flippedrandomly but maintaining zero net magnetization, then the process repeats.The figure show an example with CrN and a spin flip time Δtsf = 10 fs.

work. Starting from the DLM idea of a spatial disorder of local moments, Ialso change the magnetic state periodically and in a stochastic manner duringour MD simulation. In this way I deal with a magnetic state that does notshow order either on the length scales of our supercell, or time scale of oursimulation. We make an approximation that the magnetic state of the systemis completely randomly rearranged with a time step given by a spin flip time(Δtsf ), and with a constraint that the net magnetization of the system shouldbe zero. Hence to simulate a paramagnetic system with a spin flip time Δtsf ,as illustrated in figure 5.1, I initialize the calculations by setting up a supercellwhere collinear local moments are randomly oriented and the total momentof the supercell is zero, and run collinear spin-polarized molecular dynamicsfor the number of time steps (ΔtMD) corresponding to the spin flip time, thatis for Δtsf /ΔtMD time steps. Thereafter the spin state is randomized again,

Page 56: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

44 DISORDERED LOCAL MOMENTS MOLECULAR DYNAMICS

while the lattice positions and velocities are unchanged, and the simulationrun continues.

In the work by Gyorffy et al. 29 the magnetic degree of freedom was relatedto an inverse spin-wave frequency tsw ∼ 1/ωsw ∼ 100 fs, which representsthe dominating magnetic excitation at low temperatures. However, in theparamagnetic state at high temperatures the relevant magnetic excitationsare associated with spin-flips rather than with spin waves. Thus the relevanttime scale is better characterized by the spin decoherence time Δtdc ratherthan by the inverse spin-wave frequency. The latter was estimated to be ofthe order 20-50 fs in bcc Fe above TC

33. For CrN, with a TN around roomtemperature and probably with weaker exchange interactions, we expect thattdc could be somewhat larger.

However, our procedure makes it possible to model a paramagnetic systemfor any particular time scale of the spin dynamics. In fact one can spanthe whole range between the two adiabatic approximations: from the frozenmagnetic structure to magnetic configurations that rearrange instantaneouslyon the time scales of each atomic motion during the MD run. Of course, theappropriate value of this parameter needs to be found with real spin dynamicscalculations or taken from experiments. In this work, I study a range ofdifferent spin flip times and their consequences for the obtained structuraland thermodynamic properties of CrN.

5.3 Examination of CrN

5.3.1 Potential energy and temperature

From the DLM-MD calculations I extract the potential energies of CrN. Ascan be seen in figure. 5.2, the potential energy of the system is well conserved.To investigate the influence of the spin flip time, the average potential energyof CrN is calculated for several Δtsf . In Fig. 5.3 these potential energiesare collected and shown relative to the potential energy of the calculationswith shortest Δtsf , 5 fs. There is a clear shift in potential energy of about10 meV from the simulations with the shortest spin flip times of 5 fs to thelongest of 100 fs. This can be compared with the total energy reduction dueto static relaxations of 15 meV that is found when using the SQS approachtreating the magnetic state as frozen in time. Of course, the energy scaleshould be material specific. I suggest, as a quick test of the importance toconsider this effect, a calculation of relaxation energies of a paramagneticsystem using the SQS approach5 with a fixed magnetic state through therelaxation. The obtained relaxation energy should correspond to an upperlimit on the potential energy dependence on Δtsf .

5.3.2 Pair distance distribution

In order to analyze the difference between the proposed DLM-MD simula-tions and magneto-static MD in more details, an investigation of the local

Page 57: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

5.3. EXAMINATION OF CRN 45

0 1 2 3 4 5 6

�18.35

�18.30

�18.25

�18.20

Simulation time �ps�

Pote

ntia

lene

rgy�e

V�f

.u.�

Cubic 10 fs spin flip timeCubic 100 fs spin flip timeCubic static magnetic stateOrthorhombic AFM

Figure 5.2: Potential energy of cubic paramagnetic CrN as a function ofsimulation time calculated at 300 K using DLM-MD method. Shown are theresults obtained with a spin flip time of 10 fs and 100 fs, as well as with astatic magnetic state. Results for conventional AIMD simulations carried outfor CrN in the orthorhombic antiferromagnetic ground state are also shownfor comparison. The potential energy is stable and well converged as can beseen by the included running averages.

���

� ��

�0 20 40 60 80 100

�10

�8

�6

�4

�2

0

Spin flip time �fs�

Pote

ntia

lene

rgy

shift�m

eV�

� �� �

300 K1000 K

Figure 5.3: Potential energy shift for paramagnetic CrN as a function of thespin flip time Δtsf . The shortest spin flip time of 5 fs is taken as reference.

environment of the different atoms is carried out, especially the Cr - Cr metalnearest neighbor distances. In figure 5.4 histograms are shown of all the Cr -Cr nearest neighbor distances. These are also separated into ↑↑, ↓↓ and ↑↓, ↓↑pairs. Hence I can see the effect of the magnetic state on the distributionof pair distances. In the top panel of figure 5.4 the Δtsf is very short, 5 fs,

Page 58: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

46 DISORDERED LOCAL MOMENTS MOLECULAR DYNAMICS

0

2

4

6Pa

irde

nsity

300K

5 fs

1000K

5 fs

0

2

4

6

Pair

dens

ity

15 fs 15 fs

0

2

4

6

Pair

dens

ity

50 fs 50 fs

0

2

4

6

Pair

dens

ity

100 fs 100 fs

0

2

4

6

Pair

dens

ity

Static spins Static spins

2.7 2.8 2.9 3.0 3.10

2

4

6

Pair distance ��

Pair

dens

ity

AFM

2.7 2.8 2.9 3.0 3.1

Pair distance ��

AFM

Figure 5.4: Histogram of the Cr - Cr nearest neighbor distances for Cr atomswith parallel (solid line) and antiparallel (dashed line) orientations of localmagnetic moments obtained from DLM-MD simulation for the cubic para-magnetic phase at 300 K and 1000K, for spin flip times, Δtsf , of 5, 10, 50,and 100 fs. The fifth row is for a static spin configuration, and the last rowsimulates the orthorhombic antiferromagnetic phase of CrN calculated withconventional AIMD for comparison.

hence the atoms do not have time to adjust their positions for the currentorientation of local magnetic moments and we do not see any difference indistances between the ↑↑, ↓↓ and the ↑↓, ↓↑ pairs. First in the third panel offigure 5.4, with Δtsf = 50 fs, there are any noticeable difference between the

Page 59: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

5.3. EXAMINATION OF CRN 47

↑↑, ↓↓ and the ↑↓, ↓↑ pairs. In the fourth panel, the spin flip time is increasedto 100 fs and now the atoms have had sufficient time to move towards theenergetically preferential positions. Consequently, a shift in pair distances be-tween ↑↑, ↓↓ and the ↑↓, ↓↑ is evident. In fact the splitting between ↑↑, ↓↓ andthe ↑↓, ↓↑ pairs are very similar as those in panel five where the orientationof local moments is kept constants during the whole MD run. Hence, 100fs between the re-arrangement of magnetic configurations is long enough forthe atomic nuclei to adjust considerably their positions in the supercell to thegiven magnetic configuration.

In the bottom panel of figure 5.4, the pair distances are shown for thelow temperature antiferromagnetic orthorhombic ground state for comparison.Here the ↑↑, ↓↓ and ↑↓, ↓↑ pairs of magnetic moments are arranged in anordered way, see e.g. Fig. 4 in the paper by Alling et al. 5 , that allows formaximal relaxation of atomic coordinates in combination with a structuralrelaxation of the unit cell, giving rise to a large separation between the twodifferent kinds of pairs.

A possibility of statistical correlations between the atomic distances andthe orientation of atomic moments also in a dynamically changing paramag-netic phase is indeed an intriguing thought experiment. Although we cannotrule out its existence from principal considerations, to the best of our knowl-edge it has never been reported in experiments. However, I note that our twomain approximations in the present DLM-MD, the usage of collinear momentsand the temporarily broken ergodicity of the DLM approach, are likely to in-troduce inaccuracies that exaggerate those local spin-lattice correlations whena slow spin dynamics is modeled. Therefore, when the here suggested methodis used, a smaller value of Δtsf , corresponding to the absence of differencesin distances between atoms with parallel and antiparallel local moments, likein the top two panels of figure 5.4, should be recommended.

5.3.3 Equation of state

The goal with this work is to study the equation of states, and in particularthe bulk modulus of paramagnetic CrN which has recently been discussed inthe literature.59,4

Using the DLM-MD approach I am able to calculate volume as a functionof temperature and pressure for both the paramagnetic cubic and the anti-ferromagnetic orthorhombic phases. In the former case I also investigate ifthere is an impact of the value of the spin flip time parameter on the equationof state. Thus I am able to investigate how both the dynamical change ofmagnetic configurations in the paramagnetic state and the lattice vibrations,neglected in previous theoretical works but of course present in the experi-ments, impact on the compressibility. Figure 5.5 shows the calculated volumeas a function of pressure for the two phases at 300 K and compare them to theexperimental measurements by Rivadulla et al.59. One sees very good agree-ment between theoretical and experimental equations of state. In particularthe relative shift in volumes between the two phases is reproduced within the

Page 60: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

48 DISORDERED LOCAL MOMENTS MOLECULAR DYNAMICS

������

��

���

0 5 10 15 20 250.92

0.94

0.96

0.98

1.00

Pressure �GPa�

Vol

ume�V�V

0�

� �� �� �� �

MD Cubic, 10 fsMD Ortho. AFMExp. CubicExp. Ortho.

Figure 5.5: Volume as a function of pressure for the cubic and orthorhombicphase from MD simulations at 300 K. The equation of state for the cubicphase is calculated using a spin flip time of 10 fs. The calculated volumes arenormalized with the calculated equilibrium volume, (17.42 Å3), of the cubicphase, and the experimental points59 with the measured equilibrium volume,(17.84 Å3), of the cubic phase.

0 5 10 15 20 250.92

0.94

0.96

0.98

1.00

Pressure �GPa�

Vol

ume�V�V

0�

� �� �� �

10 fs50 fsStatic spins

Figure 5.6: The dependence on spin flip time for the calculated equation ofstate. The volumes are normalized in accordance with figure 5.5

measured error bars. The calculated slope of the orthorhombic phase agreeswell with the measured values for this phase where the measurement is doneover a large pressure range. Figure 5.6 shows the influence of the spin flip timeon the volume versus pressure curves in paramagnetic cubic CrN. A change inΔtsf introduces a small shift of the volumes, but does not influence the slopeof the curves.

Page 61: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Chapter 6Temperature dependent elastic

constants

The hardness of a material is an important property for technological appli-cations, but it is also a difficult property to quantify theoretically. It dependson a large set of underlaying material properties, starting with the elasticconstants of the single crystal, if restrict our self to crystalline materials, thepolycrystalline elastic moduli, the microstructure, the grain boundary struc-ture, crack propagation, and many more. Here I will discuss the first and mostbasic properties, the single crystal elastic constants and how their temperaturedependence can be calculated.

6.1 Elastic constants

The fundamental measure of homogenous strain is the matrix21

ε =

⎛⎝ ε11 ε12 ε13

ε12 ε22 ε23ε13 ε23 ε33

⎞⎠ . (6.1)

If the strain moves a point r to a new point r + u then the stain elements aredefined by

εαβ =12

(∂uα

∂xβ+

∂uβ

∂xα

). (6.2)

The strain can then be expressed in the same form of a symmetric matrix, fora small strain we can write the stress using Hooke’s law as

σαβ =∑γδ

Cαβγδεγδ, (6.3)

where the tensor Cαβγδ defines the elastic constants. In general it will have81 different elements, but from symmetry it can always be reduced to at most21, and for many crystal structures even fewer. For example, a crystal withcubic symmetry will only have 3 independent elastic constants.

49

Page 62: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

50 TEMPERATURE DEPENDENT ELASTIC CONSTANTS

Since there only are 21 independent elements, a very convenient transfor-mation can be made call the Voigt notation, we can remove two of the indicesand write equation 6.3 in a much simpler form

σi =∑

j

Cijεj . (6.4)

The new σi and εi are defined as follows⎛⎝ ε1 ε5 ε5

ε4 ε2 ε4ε5 ε4 ε3

⎞⎠ =

⎛⎝ ε11 2ε12 2ε13

2ε12 ε22 2ε232ε13 2ε23 ε33

⎞⎠ (6.5)

and ⎛⎝ σ1 σ5 σ5

σ4 σ2 σ4σ5 σ4 σ3

⎞⎠ =

⎛⎝ σ11 σ12 σ13

σ12 σ22 σ23σ13 σ23 σ33

⎞⎠ (6.6)

In this notation we can write the strain-stress relations as a matrix equation.For example, in a cubic system we get

⎛⎜⎜⎜⎜⎜⎜⎝

σ1σ2σ3σ4σ5σ6

⎞⎟⎟⎟⎟⎟⎟⎠

=

⎛⎜⎜⎜⎜⎜⎜⎝

c11 c12 c12 0 0 0c12 c11 c12 0 0 0c12 c12 c11 0 0 00 0 0 c44 0 00 0 0 0 c44 00 0 0 0 0 c44

⎞⎟⎟⎟⎟⎟⎟⎠

⎛⎜⎜⎜⎜⎜⎜⎝

ε1ε2ε3ε4ε5ε6

⎞⎟⎟⎟⎟⎟⎟⎠

. (6.7)

where we consider the strain and stress matrices as vector with six elementsinstead of matrices.

6.2 Calculation of temperature dependent elasticconstants

Here I only describe how I calculate the temperature dependent elastic con-stants, how to calculate elastic constants at 0K has been well covered else-where, see for example the book by Finnis 21 . To extract the elastic constantsat finite temperature I use the strain-stress relation explicitly, instead of usingthe total energies, which is often done at 0K

I start by applying a known strain matrix to the system, in this work Ihave used the non volume conserving matrix

ε =

⎛⎝ 1 + η η

2 0η2 1 00 0 1

⎞⎠ (6.8)

Page 63: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

6.3. PARALLEL MOLECULAR DYNAMICS SIMULATIONS 51

by inserting in equation 6.7, for a cubic material, the following equations canbe derived

dσ1

dη= C11 (6.9)

dσ2

dη= C12 (6.10)

dσ6

dη= C44. (6.11)

This means that all I have to do is to calculate the stress for a few values ofη and then evaluate the derivative to extract the elastic constants.

To capture the temperature dependence, I have to run molecular dynamicssimulations for several temperatures, and since the stress tensor will fluctuateduring the simulation, I have to run the simulations long enough to establisha well converged value for the stress tensor.

6.3 Parallel molecular dynamics simulations

In order to establish a well converged value for the stresses the total numberof molecular dynamics time steps are not the most important criteria, butrather the total number of uncorrelated time steps. Since two adjacent timesteps from a molecular dynamics simulation will be highly correlated the ac-tual number of time steps with significant information will be much less thenthe total number of time steps. One way two increase the number of uncorre-lated time steps is to run several molecular dynamics simulations in parallelfrom different starting configurations. This will sample the phase space moreevenly and generate an increased number of significant time steps. The draw-back will be that often the first part of each the simulation will be dedicatedequilibrating the system to the desired temperature. Hence this will create alarge overhead and waste simulation time in comparison to running one serialcalculation. Although if one can initialize the system in a good enough wayto decrease the need for equilibrating the system this drawback would not bea problem.

Following the method by West and Estreicher 75 supercells can be pre-pared with very good accuracy, eliminating most of the need to equilibratethe system. To generate the thermal excitations, the interatomic force con-stant matrix is calculated. Then the normal mode canonical transformation,that diagonalizes the classical harmonic Hamiltonian, is obtained from thedynamical matrix. We arrive at a set of 3Na normal modes with correspond-ing eigenvalues ω2

k and eigenvectors εk from the dynamical matrix, that canbe used to express the position uj and momentum uj of each atom

Page 64: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

52 TEMPERATURE DEPENDENT ELASTIC CONSTANTS

uj =3Na∑k=1

εjkckei(ωkt+δk) (6.12)

uj =3Na∑k=1

iεjkckωkei(ωkt+δk). (6.13)

where δk are chosen randomly to give an equal distribution between kineticand potential energy. The amplitudes ck should be chosen so that the velocitycomponents are normally distributed with a standard deviation of

√kbT/m,

and each mode k should contain on average kBT/2 of the internal energy.By choosing the following expression, with χ uniformly distributed between0 < χ < 1 these conditions are fulfilled

ck =1

ωk

√2kBT

mi

√− ln χ. (6.14)

This effectively eliminates the need of a long equilibrium period in the begin-ning of each molecular dynamics simulation, making the process of runningmolecular dynamics simulations embarrassingly24 parallel.

6.4 Application to TiN

I have applied this method to TiN using the Vienna Ab-Initio Simula-tion Package (VASP),43,41,42 using the projector augmented wave (PAW)method.10 The simulation cell consists of 4 × 4 × 4 primitive TiN unit cellsin total 64 Ti and 64 N atoms. The electronic exchange-correlation effectsare modeled using the generalized gradient approximation.55 The plane wavecut-off is increased from 400 to 500 eV to reduce the errors in the stresses.The Brillouin zone was sampled using the Monkhorst-Pack scheme? with agrid of 2×2×2 k points. All the simulations use a canonical ensemble (NVT)to maintain the desired temperature. The standard Nosé thermostat52 asimplemented in VASP is used with the default Nosé mass set by VASP.

First I calculate the equations of state. A grid of molecular dynamicssimulations over temperature and volume is setup, as can be seen by the graydots in figure 6.1. Then the total energies for each temperature are fittedto the Birch-Murnaghan equation of state8,49, and the equilibrium latticeconstants are extracted, as can be seen in figure 6.1. At each temperature aset of deformations, ε with η ∈ {−0.02, −0.01, 0.00, 0.01, 0.02}, are applied tothe supercell. For each such deformation a set of parallel molecular dynamicsare simulated according to the method in section 6.3. The resulting stressesfor 300K can be seen in figure 6.2. Then a second order polynomial is fittedto these points. The result of the fittings can be seen as dashed lines in figure6.2. The variation of the stresses during the molecular dynamics simulationscan be seen as the vertical spread of the points at each temperature. The

Page 65: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

6.4. APPLICATION TO TIN 53

��

��

0 500 1000 1500 2000

4.24

4.26

4.28

4.30

4.32

4.34

Temperature �K�

Latti

ceco

nsta

nt��

� �

� �

� �

MD gridEOS fit0K EOSExp

Figure 6.1: Temperature dependence of the lattice constant for B1 TiN, cal-culated using AIMD.

�0.02 �0.01 0.00 0.01 0.02�10

�5

0

5

10

15

Strain

Stre

ss�G

Pa�

Σ1Σ2Σ6

Figure 6.2: The stress-strain relationship for B1 TiN at 300K. The pointscorrespond to the instantaneous stresses from a large set of time steps. Thevariation of the stresses during the molecular dynamics simulation can beseen from the spread of the points at each temperature. The dashed lines aresecond order polynomial fits to these points.

convergence of the fittings have been investigated by selecting subparts of thesimulation data and fitting to then individually.

The final step is to calculate the derivative of the strain-stress curves, inaccordance with equation 6.9, to find the values of the elastic constants. Theresults are drawn as a function of temperature in figure 6.3. I should not herethat equation 6.9 considers external stress, but the stresses plotted in figure

Page 66: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

54 TEMPERATURE DEPENDENT ELASTIC CONSTANTS

�� ��

�500550600

C11�G

Pa� ��

��StaticMolecular dynamics

��

��

��120

125130135

C12�G

Pa�

���

��

0 500 1000 1500

140145150155160

Temperature �K�

C44�G

Pa�

Figure 6.3: Temperature dependence of B1 TiN single-crystal elastic con-stants. Circles are static calculations at T = 0, squares are AIMD calculations.

6.2 are internal stresses from VASP, therefore there will be a difference in thesign of the derivatives. One sees from figure 6.3 that the elastic constants cal-culated by means of AIMD at room temperature are in good agreement withthe corresponding zero temperature values obtained in conventional staticcalculations. The later, in their own turn, agree well with earlier ab initiocalculations of single-crystal elastic constants of TiN, summarized by56.

Page 67: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

Bibliography

[1] The cluster Neolith at NSC in Linköping, source: www.nsc.liu.se.

[2] Created by P. Steneteg, data source: www.top500.org.

[3] M. P. Allen and D. J. Tildesley. Computer simulation of liquids. OxfordUniversity Press, USA, 1989. ISBN 9780198556459.

[4] B. Alling, T. Marten, and I. Abrikosov. Questionable collapse of the bulkmodulus in crn. Nat Mater, 9(4):283–284, 2010. 10.1038/nmat2722.

[5] B. Alling, T. Marten, and I. A. Abrikosov. Effect of magnetic disorderand strong electron correlations on the thermodynamics of crn. Phys.Rev. B, 82(18):184430, Nov 2010.

[6] T. A. Arias, M. C. Payne, and J. D. Joannopoulos. Ab initio molecular-dynamics techniques extended to large-length-scale systems. Phys. Rev.B, 45(4):1538, Jan 1992.

[7] N. W. Ashcroft and N. D. Mermin. Solid State Physics. Brooks Cole, 1edition, Jan. 1976. ISBN 0030839939.

[8] F. Birch. Finite elastic strain of cubic crystals. Phys. Rev., 71(11):809–824, Jun 1947.

[9] E. Bitzek, P. Koskinen, F. Gähler, M. Moseler, and P. Gumbsch. Struc-tural relaxation made simple. Phys. Rev. Lett., 97(17):170201, 2006.

[10] P. E. Blöchl. Projector augmented-wave method. Phys. Rev. B, 50(24):17953, Dec 1994.

[11] M. Born and K. Huang. Dynamical theory of crystal lattices. ClarendonPress, Oxford, Nov. 1954. ISBN 9780198503699.

[12] M. Born and R. Oppenheimer. Zur Quantentheorie der Molekeln. An-nalen der Physik, 84:457–484, 1927.

55

Page 68: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

56 BIBLIOGRAPHY

[13] C. Broyden. A class of methods for solving nonlinear simultaneous equa-tions. Math. Comp, 19(92):577–593, 1965.

[14] R. Car and M. Parrinello. Unified Approach for Molecular Dynamics andDensity-Functional Theory. Phys. Rev. Lett., 55(22):2471–2474, Nov.1985. doi: 10.1103/PhysRevLett.55.2471.

[15] D. Ceperley and B. Alder. Ground state of the electron gas by a stochasticmethod. Physical Review Letters, 45(7):566–569, Aug 1980. doi: 10.1103/PhysRevLett.45.566.

[16] L. M. Corliss, N. Elliott, and J. M. Hastings. Antiferromagnetic structureof crn. Phys. Rev., 117(4):929–935, Feb 1960.

[17] M. DAW and M. Baskes. Semiempirical, Quantum-Mechanical Calcu-lation of Hydrogen Embrittlement in Metals. Phys. Rev. Lett., 50(17):1285–1288, 1983.

[18] M. DAW and M. Baskes. Embedded-Atom Method - Derivation andApplication to Impurities, Surfaces, and Other Defects in Metals. PhysRev B, 29(12):6443–6453, 1984.

[19] R. Feynman. Forces in molecules. Physical Review, 56(4):340–343, 1939.

[20] A. Filippetti and N. A. Hill. Magnetic stress as a driving force of struc-tural distortions: The case of crn. Phys. Rev. Lett., 85(24):5166–5169,Dec 2000.

[21] M. Finnis. Interatomic Forces in Condensed Matter. Oxford Univ Pr,June 2010.

[22] S. Foiles, M. Baskes, and M. DAW. Embedded-Atom-Method Functionsfor the Fcc Metals Cu, Ag, Au, Ni, Pd, Pt, and Their Alloys. Phys RevB, 33(12):7983–7991, 1986.

[23] E. Forest and R. Ruth. Fourth-order symplectic integration. Physica D:Nonlinear Phenomena, 43(1):105–117, 1990.

[24] I. Foster. Designing and Building Parallel Programs: Concepts and Toolsfor Parallel Software Engineering. Addison Wesley, 1 edition, Feb. 1995.ISBN 0201575949.

[25] P. Giannozzi and et al. J. Phys.: Condens. Matter, 21:395502, 2009.

[26] T. Glad and L. Ljung. Reglerteknik. Studentlitteratur, 2006. ISBN9789144022758.

[27] H. Goldstein. Classical mechanics. Addison Wesley Publishing Company,1980.

[28] D. M. Gruen. Nanocrystalline diamond films. Annu. Rev. Mater. Sci.,29(1):211–259, 1999.

Page 69: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

BIBLIOGRAPHY 57

[29] B. L. Gyorffy, A. J. Pindor, J. Staunton, G. M. Stocks, and H. Winter.A first-principles theory of ferromagnetic phase transitions in metals.Journal of Physics F: Metal Physics, 15(6):1337, 1985.

[30] H. Hasegawa. Single-Site Functional-Integral Approach to Itinerant-Electron Ferromagnetism. Journal of the Physical Society of Japan, 46:1504, 1979.

[31] H. Hasegawa. Journal of the Physical Society of Japan, 49:178, 1980.

[32] H. Hellmann. Einfuhrung in die Quantumchemie. Franz Deutsche, 1937.

[33] J. Hellsvik, B. Skubic, L. Nordström, B. Sanyal, O. Eriksson, P. Nord-blad, and P. Svedlindh. Dynamics of diluted magnetic semiconductorsfrom atomistic spind-dynamics simulations: Mn-doped GaAs. PhysicalReview B, 78:144419, 2008.

[34] A. Herwadkar and W. R. L. Lambrecht. Electronic structure of crn: Aborderline mott insulator. Phys. Rev. B, 79(3):035125, Jan 2009.

[35] P. Hohenberg and W. Kohn. Inhomogeneous Electron Gas. Physical Re-view, 136(3B):B864–B871, Nov. 1964. doi: 10.1103/PhysRev.136.B864.

[36] J. Hubbard. Physical Review B, 19:2626, 1979.

[37] J. Hubbard. Physical Review B, 23:5974, 1981.

[38] P. Keblinski, D. Wolf, S. R. Phillpot, and H. Gleiter. Role of bonding andcoordination in the atomic structure and energy of diamond and silicongrain boundaries. J. Mater. Res., 13(8):2077–2099, 1998.

[39] W. Kohn and L. Sham. Self-Consistent Equations Including Exchangeand Correlation Effects. Physical Review, 140(4A):A1133–A1138, Nov.1965. doi: 10.1103/PhysRev.140.A1133.

[40] G. Kresse. Ab-initio Molekular Dynamik für flüssige Metalle. PhD thesis,Technische Universität Wien, 1993.

[41] G. Kresse and J. Furthmüller. Efficient iterative schemes for ab initiototal-energy calculations using a plane-wave basis set. Phys. Rev. B, 54(16):11169–11186, Oct .

[42] G. Kresse and J. Furthmuller. Efficiency of ab-initio total energy cal-culations for metals and semiconductors using a plane-wave basis set.Computational Materials Science, 6(1):15–50, 1996.

[43] G. Kresse and J. Hafner. Ab initio molecular dynamics for open-shelltransition metals. Phys. Rev. B, 48(17):13115–13118, 1993.

[44] P. Laplace. A Philosophical Essay on Probabilities. Dover, New York,1951.

Page 70: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

58 BIBLIOGRAPHY

[45] B. Leimkuhler and R. Skeel. Symplectic Numerical Integrators in Con-strained Hamiltonian-Systems. Journal of Computational Physics, 112(1):117–125, 1994.

[46] R. M. Martin. Electronic Structure. Basic Theory and Practical Methods.Cambridge Univ Pr, Apr. 2004. ISBN 9780521782852.

[47] G. Martyna and M. Tuckerman. Symplectic Reversible Integrators - Pre-dictor Corrector Methods. J. Chem. Phys., 102(20):8071–8077, 1995.

[48] D. Marx and J. Hutter. Ab Initio Molecular Dynamics. Basic The-ory and Advanced Methods. Cambridge Univ Pr, Apr. 2009. ISBN9780521898638.

[49] F. D. Murnaghan. The compressibility of media under extreme pressures.Proceedings of the National Academy of Science, 30:244–247, 1944.

[50] A. Niklasson, P. Steneteg, A. Odell, N. Bock, M. Challacombe, C. J.Tymczak, E. Holmström, G. Zheng, and V. Weber. Extended LagrangianBorn-Oppenheimer molecular dynamics with dissipation. Journal ofChemical Physics, 130(21), 2009.

[51] A. M. N. Niklasson. Extended born-oppenheimer molecular dynamics.Phys. Rev. Lett., 100(12):123004, Jan 2008. doi: 10.1103/PhysRevLett.100.123004.

[52] S. Nosé. Constant temperature molecular dynamics methods. Progressof Theoretical Physics Supplement, 103:1–46, 1991.

[53] A. Odell, A. Delin, B. Johansson, N. Bock, M. Challacombe, and A. M. N.Niklasson. 131:244106, 2009. J. Chem. Phys.

[54] D. Okunbor. Energy conserving, Liouville, and symplectic integrators.Journal of Computational Physics, 120(2):375–378, 1995.

[55] J. Perdew, K. Burke, and M. Ernzerhof. Generalized Gradient Approxi-mation Made Simple. Phys. Rev. Lett., 77(18):3865–3868, Oct. 1996.

[56] H. O. Pierson. Handbook of Refractory Carbides and Nitrides: Properties,Characteristics, Processing, and Applications. Materials science and pro-cess technology series. Noyes Publications, 1996. ISBN 9780815513926.

[57] P. Pulay. Chem. Phys. Let., 73(2):393–398, 1980.

[58] A. E. Reiter, V. H. Derflinger, B. Hanselmann, T. Bachmann, and B. Sar-tory. Investigation of the properties of Al1−xCrxN coatings prepared bycathodic arc evaporation. Surface and Coatings Technology, 200:2114,2005.

Page 71: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

BIBLIOGRAPHY 59

[59] F. Rivadulla, M. Banobre-Lopez, C. Quintela, A. Pineiro, V. Pardo,D. Baldomir, M. Lopez-Quintela, J. Rivas, C. Ramos, H. Salva, J.-S.Zhou, and J. Goodenough. Reduction of the bulk modulus at high pres-sure in crn. Nat Mater, 8(12):947–951, 2009. 10.1038/nmat2549.

[60] C. Rostgaard. The Projector Augmented-wave Method. Oct. 2009. URLhttp://arxiv.org/abs/0910.1921.

[61] A. V. Ruban and I. A. Abrikosov. Configurational thermodynamics ofalloys from first principles: effective cluster interactions. Repports onProgress in Physics, 71:046501, 2008.

[62] R. Ruth. A canonical integration technique. IEEE Trans Nucl Sci, 1983.

[63] H. Sawada and H. Ichinose. Structure of 112 ?3 boundary in silicon anddiamond. Scr. Mater., 44(8-9):2327–2330, 2001.

[64] P. Steneteg and L. E. Rosengren. Design and implementation of a gen-eral molecular dynamics package. "Design and Implementation of aGeneral Molecular Dynamics Package" Master’s Thesis: LITH-IFM-EX–06/1584–SE, 2006.

[65] P. Steneteg, I. A. Abrikosov, V. Weber, and A. M. N. Niklasson. Wavefunction extended Lagrangian Born-Oppenheimer molecular dynamics.Phys Rev B, 82(7):075110, Aug. 2010.

[66] W. SWOPE, H. ANDERSEN, P. BERENS, and K. WILSON. AComputer-Simulation Method for the Calculation of Equilibrium-Constants for the Formation of Physical Clusters of Molecules - Applica-tion to Small Water Clusters. J. Chem. Phys., 76(1):637–649, 1982.

[67] J. Tersoff. New empirical model for the structural properties of silicon.Phys. Rev. Lett., 56(6):632, Feb. 1986.

[68] J. Tersoff. New empirical approach for the structure and energy of cova-lent systems. Phys Rev B, 37(12):6991, Apr. 1988.

[69] J. Tersoff. Empirical Interatomic Potential for Carbon, with Applicationsto Amorphous Carbon. Phys. Rev. Lett., 61(25):2879, Dec. 1988.

[70] L. Verlet. Computer "Experiments" on Classical Fluids. I. Thermody-namical Properties of Lennard-Jones Molecules. Physical Review, 159(1):98–103, July 1967. doi: 10.1103/PhysRev.159.98.

[71] J. Vetter. Vacuum arc coatings for tools: potentials and application.Surface and Coatings Technology, 76-77:719–724, 1995.

[72] S. von Alfthan, P. D. Haynes, K. Kaski, and A. P. Sutton. Are thestructures of twist grain boundaries in silicon ordered at 0 k? Phys. Rev.Lett., 96(5):055505–4, 2006.

Page 72: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

60 BIBLIOGRAPHY

[73] Z. Q. Wang, S. A. Dregia, and D. Stroud. Energy-minimization studiesof twist grain boundaries in diamond. Phys. Rev. B, 49(12):8206–8211,1994.

[74] T. Watanabe, B. Ni, S. R. Phillpot, P. K. Schelling, and P. Keblinski.Thermal conductance across grain boundaries in diamond from moleculardynamics simulation. J. Appl. Phys., 102(6):063503, 2007.

[75] D. West and S. K. Estreicher. First-Principles Calculations of VibrationalLifetimes and Decay Channels: Hydrogen-Related Modes in Si. Phys.Rev. Lett., 96:115504, Mar. 2006.

[76] D. Wood and A. Zunger. A new method for diagonalising large matrices.Journal of Physics A: Mathematical and General, 18:1343, Jun 1985. doi:10.1088/0305-4470/18/9/018.

[77] P. Zapol, M. Sternberg, L. A. Curtiss, T. Frauenheim, and D. M.Gruen. Tight-binding molecular-dynamics simulation of impurities inultrananocrystalline diamond grain boundaries. Phys. Rev. B, 65(4):045403–1, 2002.

[78] G. Zheng, A. M. N. Niklasson, and M. Karplus. Lagrangian formula-tion with dissipation of Born-Oppenheimer molecular dynamics using thedensity-functional tight-binding method. J Chem Phys, 135(4):044122–,July 2011. doi: 10.1063/1.3605303.

[79] A. Zunger, S.-H. Wei, L. G. Ferreira, and J. E. Bernard. Special quasir-andom structures. Phys. Rev. Lett., 65(3):353–356, Jul 1990.

Page 73: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

List of Figures

1.1 Moore’s law . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Neolith computer cluster . . . . . . . . . . . . . . . . . . . . . . . . 2

2.1 The basic MD loop . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2 The self-consistency loop . . . . . . . . . . . . . . . . . . . . . . . 172.3 Schematic view of the PAW method . . . . . . . . . . . . . . . . . 202.4 Atomic probability density of Mo as a function of temperature. . . 21

3.1 The initial configuration of the grain boundary . . . . . . . . . . . 253.2 Temperature evolution during simulated annealing . . . . . . . . . 263.3 Energy as a function of quench point . . . . . . . . . . . . . . . . . 273.4 Top and side view of the lowest energy GB structure for ΔN=0 . . 283.5 Top and side view of the lowest energy GB structure for ΔN=1 . . 293.6 View of the distribution of sp2 and sp3 bonds in the GB for ΔN=0 293.7 View of the distribution of sp2 and sp3 bonds in the GB for ΔN=1 30

4.1 Total energy fluctuations of 2x2x2 primitive unit cells of B1 TiNas a function of time . . . . . . . . . . . . . . . . . . . . . . . . . . 32

4.2 Stability and dissipation for XL-BOMD . . . . . . . . . . . . . . . 374.3 Total energy drift for TiN in conventional BOMD and XL-BOOMD 384.4 Temperature drift for TiN in conventional BOMD and XL-BOMD 39

5.1 Schematic figure describing the spin flipping process in DLM-MD . 435.2 Potential energy of cubic paramagnetic CrN as a function of sim-

ulation time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455.3 Potential energy shift for paramagnetic CrN as a function of the

spin flip time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455.4 Histogram of the Cr - Cr nearest neighbor distances in CrN . . . . 465.5 CrN equation of state . . . . . . . . . . . . . . . . . . . . . . . . . 485.6 Spin flip time dependence of the equation of state for cubic AFM

CrN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

61

Page 74: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

62 LIST OF FIGURES

6.1 Temperature dependence of the lattice constant for B1 TiN, cal-culated using AIMD. . . . . . . . . . . . . . . . . . . . . . . . . . . 53

6.2 The stress-strain relationship for B1 TiN at 300K . . . . . . . . . . 536.3 Temperature dependence of B1 TiN single-crystal elastic con-

stants. Circles are static calculations at T = 0, squares are AIMDcalculations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Page 75: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

List of Tables

3.1 The minimal grain boundary energy, EGB , (J/m2) found for alldifferent numbers of removed atoms ΔN . ΔV is the GB volumeincrease per unit area as a fraction of the lattice constant. . . . . . 28

4.1 Optimized coefficients for the Verlet integration scheme with theexternal dissipative force term in equation 4.18. . . . . . . . . . . 37

63

Page 76: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical
Page 77: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

List of publications

Here I give a brief overview over all the included articles, together with adescription of my contribution to each of them.

Paper I

Title Missing-atom structure of diamond Σ5 (001) twist grain boundary

Authors Peter Steneteg, Valeriu Chirita, Natalia Dubrovinskaia, LeonidDubrovinsky, and Igor A. Abrikosov

Publication Physical Review B 84, 144112 (2011)

Abstract We carried out combined experimental and theoretical study ofgrain boundaries in polycrystalline diamond, aimed at achieving theconditions in which grain boundaries are equilibrated. Raman spectra ofcompacted at high-pressure and high temperature diamonds powders al-low us to identify signals from sp2 bonded atoms, in addition to a strongpeak at 1332 cm−1, corresponding to sp3 -bonded carbon. To verify ourinterpretation of the experiment, Σ5 (001) twist grain boundaries ofpolycrystalline diamond were studied by means of molecular dynamicssimulations using the technique proposed by von Alfthan et al.[Phys.Rev. Lett. 96, 055505 (2006)]. We find that grain boundary (GB) con-figurations, from which one atom is removed, have significantly lowerenergy compared to those obtained in conventional techniques. Thesecalculated GBs are highly ordered, a few monolayers thick, in agree-ment with experimental observations, and are primarily sp2 bonded.This study underlines the importance of varying the number of atomswithin GB in molecular dynamics simulations to correctly predict theGB ground-state structure.

My contribution I did all the theoretical work. Implemented the methodof removing atoms from the grain boundary in a MD code developedby me, ran all the simulations, and analyzed the results. All sectionsexcept for the experimental part were also written by me.

65

Page 78: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

66 LIST OF TABLES

Paper II

Title Extended Lagrangian Born-Oppenheimer molecular dynamics with dis-sipation

Authors Anders M. N. Niklasson, Peter Steneteg, Anders Odell, NicolasBock, Matt Challacombe, C. J. Tymczak, Erik Holmström, GuishanZheng, and Valery Weber

Publication Journal of Chemical Physics 130, 214109 (2009)

Abstract Stability and dissipation in the propagation of the elec-tronic degrees of freedom in time-reversible extended LagrangianBorn–Oppenheimer molecular dynamics [Niklasson et al., Phys. Rev.Lett. 97, 123001 (2006); Phys. Rev. Lett. 100, 123004 (2008)] areanalyzed. Because of the time-reversible propagation the dynamics ofthe extended electronic degrees of freedom is lossless with no dissipationof numerical errors. For long simulation times under “noisy” conditions,numerical errors may therefore accumulate to large fluctuations. Wesolve this problem by including a dissipative external electronic forcethat removes noise while keeping the energy stable. The approach corre-sponds to a Langevin-like dynamics for the electronic degrees of freedomwith internal numerical error fluctuations and external, approximatelyenergy conserving, dissipative forces. By tuning the dissipation to bal-ance the numerical fluctuations the external perturbation can be keptto a minimum.

My contribution I worked on testing different functional forms for the dis-sipation, and calculated the optimal parameters.

Paper III

Title Wavefunction extended Lagrangian Born-Oppenheimer molecular dy-namics

Authors Peter Steneteg, Igor A. Abrikosov, Valery Weber, and Anders M.N. Niklasson

Publication Physical Review B 82, 075110 (2010)

Abstract Extended Lagrangian Born-Oppenheimer molecular dynamics[Niklasson, Phys. Rev. Lett. 100 123004 (2008)] has been general-ized to the propagation of the electronic wavefunctions. The techniqueallows highly efficient first principles molecular dynamics simulationsusing plane wave pseudopotential electronic structure methods that arestable and energy conserving also under incomplete and approximateself-consistency convergence. An implementation of the method withinthe plane-wave basis set is presented and the accuracy and efficiency isdemonstrated both for semi-conductor and metallic materials.

Page 79: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

LIST OF TABLES 67

My contribution I developed the parts related specifically to the propaga-tion of the wavefunctions. I did all the implementation of the methodin VASP, ran all the simulations evaluating and testing the method. Iwrote most of the manuscript.

Paper VI

Title Extended Lagrangian free energy molecular dynamics

Authors Anders M. N. Niklasson, Peter Steneteg, and Nicolas Bock

Publication Journal of Chemical Physics 135, 164111 (2011)

Abstract Extended free energy Lagrangians are proposed for first princi-ples molecular dynamics simulations at finite electronic temperaturesfor plane-wave pseudopotential and local orbital density matrix-basedcalculations. Thanks to the extended Lagrangian description, the elec-tronic degrees of freedom can be integrated by stable geometric schemesthat conserve the free energy. For the local orbital representations boththe nuclear and electronic forces have simple and numerically efficientexpressions that are well suited for reduced complexity calculations. Arapidly converging recursive Fermi operator expansion method that doesnot require the calculation of eigenvalues and eigenfunctions for the con-struction of the fractionally occupied density matrix is discussed. Anefficient expression for the Pulay force that is valid also for density matri-ces with fractional occupation occurring at finite electronic temperaturesis also demonstrated.

My contribution I did all the plane-wave based calculations.

Paper V

Title Equation of state of paramagnetic CrN from ab initio molecular dy-namics

Authors Peter Steneteg, Björn Alling, and Igor A. Abrikosov

Publication Physical Review B 85, 144404 (2012)

Abstract Equation of state for chromium nitride has been debated in theliterature in connection with a proposed collapse of its bulk modulusfollowing the pressure induced transition from the paramagnetic cubicphase to the antiferromagnetic orthorhombic phase [F. Rivadulla et al.,Nat Mater 8, 974 (2009); B. Alling et al., Nat Mater 9, 283 (2010)].Experimentally the measurements are complicated due to the low tran-sition pressure, while theoretically the simulation of magnetic disorderrepresent a major challenge. Here a first-principles method is suggestedfor the calculation of thermodynamic properties of magnetic materials

Page 80: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

68 LIST OF TABLES

in their high temperature paramagnetic phase. It is based on ab-initiomolecular dynamics and simultaneous redistributions of the disorderedbut finite local magnetic moments. We apply this disordered local mo-ments molecular dynamics method to the case of CrN and simulate itsequation of state. In particular the debated bulk modulus is calculatedin the paramagnetic cubic phase and is shown to be very similar to thatof the antiferromagnetic orthorhombic CrN phase for all considered tem-peratures.

My contribution I implemented the method and did all the calculationsand analysis. Except for section I, II.A and II.B I wrote most of themanuscript.

Paper VI

Title Temperature dependence of TiN elastic constants from ab initio molec-ular dynamics simulations

Authors P. Steneteg, O. Hellman, O. Yu. Vekilova, N. Shulumba, F. Tas-nádi, and I. A. Abrikosov

Publication In manscript

Abstract Elastic properties of cubic TiN are studied theoretically in a widetemperature interval, corresponding to operational conditions of cuttingtool coatings. Our first-principles simulations are based on ab initiomolecular dynamics (AIMD). Computational efficiency of the methodis greatly enhanced by a careful preparation of the initial state of thesimulation cell that minimizes or completely removes a need for equili-bration and therefore allows for parallel AIMD calculations. Principalelastic constants C11, C12 and C44 are calculated. In all cases strong de-pendence on the temperature is predicted, with C11 decreasing by morethan 23% at 1500K as compared to its value obtained in at T = 0 K.Furthermore, we analyze the effect of temperature on the elastic prop-erties of polycrystalline TiN in terms of the bulk and shear moduli, theYoung’s modulus and Poisson ratio. Moreover, we construct sound ve-locity anisotropy maps and investigate temperature dependence of elas-tic anisotropy of TiN. We observe that the material becomes substan-tially more isotropic at high temperatures. Our results unambiguouslydemonstrate importance of taking into account finite temperature effectsin theoretical calculations of elastic properties of materials intended forhigh-temperature applications.

My contribution I ran all the simulations and did most the post processing.I also wrote the sections regarding the calculation of elastic constantsand the computational details of the simulations.

Page 81: Development of molecular dynamics methodology …liu.diva-portal.org/smash/get/diva2:536065/FULLTEXT01.pdfAbstract This thesis is focused on molecular dynamics simulations, both classical

LIST OF TABLES 69

Paper VII

Title Effects of configurational disorder on adatom mobilities on Ti1−xAlxNsurfaces

Authors B. Alling, P. Steneteg, C. Tholander, F. Tasnádi, I. Petrov, J. E.Greene, and L. Hultman

Publication In manuscript

Abstract We use metastable NaCl-structure Ti0.5Al0.5N alloys to probe ef-fects of configurational disorder on adatom surface diffusion dynamicswhich control phase stability and nanostructural evolution during filmgrowth. First-principles calculations were employed to obtain energy po-tential maps of Ti and Al adsorption on an ordered TiN(001) referencesurface and a disordered Ti0.5Al0.5N(001) solid-solution surface. Theenergetics of adatom migration on these surfaces are determined andcompared to isolate effects of configurational disorder. The results showthat alloy surface disorder dramatically reduces Ti adatom mobilities.Al adatoms, in sharp contrast, experience only small disorder-induceddifferences in migration dynamics.

My contribution I did most of the post processing, all extraction of barriersand paths, and all the diffusion simulations.