Kinetic Monte Carlo

From HandWiki

The kinetic Monte Carlo (KMC) method is a Monte Carlo method computer simulation intended to simulate the time evolution of some processes occurring in nature. Typically these are processes that occur with known transition rates among states. It is important to understand that these rates are inputs to the KMC algorithm, the method itself cannot predict them.

The KMC method is essentially the same as the dynamic Monte Carlo method and the Gillespie algorithm.

Algorithms

One possible classification of KMC algorithms is as rejection-KMC (rKMC) and rejection-free-KMC (rfKMC).

Rejection-free KMC

Transfer rates between one initial and four final states
At each step, the system can jump into several ending states, the transfer rates between the initial state and all the possible ending states are supposed to be known.
Choice of the final state : a random var is chosen between 0 and Γtot; the probability that the system jumps into state i is proportional to Γi.

A rfKMC algorithm, often only called KMC, for simulating the time evolution of a system, where some processes can occur with known rates r, can be written for instance as follows:

  1. Set the time [math]\displaystyle{ t = 0 }[/math].
  2. Choose an initial state k.
  3. Form the list of all [math]\displaystyle{ N_k }[/math] possible transition rates in the system [math]\displaystyle{ r_{ki} }[/math], from state k into a generic state i. States that do not communicate with k will have [math]\displaystyle{ r_{ki}=0 }[/math].
  4. Calculate the cumulative function [math]\displaystyle{ R_{ki}=\sum_{j=1}^i r_{kj} }[/math] for [math]\displaystyle{ i=1,\ldots,N_k }[/math]. The total rate is [math]\displaystyle{ Q_k = R_{k,N_k} }[/math].
  5. Get a uniform random number [math]\displaystyle{ u \in (0, 1] }[/math].
  6. Find the event to carry out i by finding the i for which [math]\displaystyle{ R_{k,i-1} \lt u Q_k \le R_{ki} }[/math] (this can be achieved efficiently using binary search).
  7. Carry out event i (update the current state [math]\displaystyle{ k \rightarrow i }[/math]).
  8. Get a new uniform random number [math]\displaystyle{ u^\prime \in (0, 1] }[/math].
  9. Update the time with [math]\displaystyle{ t = t + \Delta t }[/math], where [math]\displaystyle{ \Delta t = Q_k^{-1} \ln(1/u^\prime) }[/math].
  10. Return to step 3.

(Note: because the average value of [math]\displaystyle{ \ln(1/u^\prime) }[/math] is equal to unity, the same average time scale can be obtained by instead using [math]\displaystyle{ \Delta t = Q_k^{-1} }[/math] in step 9. In this case, however, the delay associated with transition i will not be drawn from the Poisson distribution described by the rate [math]\displaystyle{ Q_k }[/math], but will instead be the mean of that distribution.)

This algorithm is known in different sources variously as the residence-time algorithm or the n-fold way or the Bortz-Kalos-Lebowitz (BKL) algorithm. It is important to note that the timestep involved is a function of the probability that all events i, did not occur.

Rejection KMC

Rejection KMC has typically the advantage of an easier data handling, and faster computations for each attempted step, since the time consuming action of getting all [math]\displaystyle{ r_{ki} }[/math] is not needed. On the other hand, the time evolved at each step is smaller than for rfKMC. The relative weight of pros and cons varies with the case at hand, and with available resources.

An rKMC associated with the same transition rates as above can be written as follows:

  1. Set the time [math]\displaystyle{ t = 0 }[/math].
  2. Choose an initial state k.
  3. Get the number [math]\displaystyle{ N_k }[/math] of all possible transition rates, from state k into a generic state i.
  4. Find the candidate event to carry out i by uniformly sampling from the [math]\displaystyle{ N_k }[/math] transitions above.
  5. Accept the event with probability [math]\displaystyle{ f_{ki} = r_{ki} / r_0 }[/math], where [math]\displaystyle{ r_0 }[/math] is a suitable upper bound for [math]\displaystyle{ r_{ki} }[/math]. It is often easy to find [math]\displaystyle{ r_0 }[/math] without having to compute all [math]\displaystyle{ r_{ki} }[/math] (e.g., for Metropolis transition rate probabilities).
  6. If accepted, carry out event i (update the current state [math]\displaystyle{ k \rightarrow i }[/math]).
  7. Get a new uniform random number [math]\displaystyle{ u^\prime \in (0, 1] }[/math].
  8. Update the time with [math]\displaystyle{ t = t + \Delta t }[/math], where [math]\displaystyle{ \Delta t = (N_k r_0)^{-1} \ln(1/u^\prime) }[/math].
  9. Return to step 3.

(Note: [math]\displaystyle{ r_0 }[/math] can change from one MC step to another.) This algorithm is usually called a standard algorithm.

Theoretical[1] and numerical[2][3] comparisons between the algorithms were provided.

Time-dependent Algorithms

If the rates [math]\displaystyle{ r_{ki}(t) }[/math] are time dependent, step 9 in the rfKMC must be modified by:[4]

[math]\displaystyle{ \int_{0}^{\Delta t} Q_k(t') dt' = \ln(1/u^\prime) }[/math].

The reaction (step 6) has to be chosen after this by

[math]\displaystyle{ R_{k,i-1}(\Delta t) \lt u Q_k( \Delta t ) \leq R_{ki}(\Delta t) }[/math]

Another very similar algorithm is called the First Reaction Method (FRM). It consists of choosing the first-occurring reaction, meaning to choose the smallest time [math]\displaystyle{ \Delta t_i }[/math], and the corresponding reaction number i, from the formula

[math]\displaystyle{ \int_{0}^{\Delta t_i} r_{ki}(t') dt' = \ln(1/u_i) }[/math],

where the [math]\displaystyle{ u_i \in (0, 1] }[/math] are N random numbers.

Comments on the algorithm

The key property of the KMC algorithm (and of the FRM one) is that if the rates are correct, if the processes associated with the rates are of the Poisson process type, and if different processes are independent (i.e. not correlated) then the KMC algorithm gives the correct time scale for the evolution of the simulated system. There was some debate about the correctness of the time scale for rKMC algorithms, but this was also rigorously shown to be correct.[1]

If furthermore the transitions follow detailed balance, the KMC algorithm can be used to simulate thermodynamic equilibrium. However, KMC is widely used to simulate non-equilibrium processes,[5] in which case detailed balance need not be obeyed.

The rfKMC algorithm is efficient in the sense that every iteration is guaranteed to produce a transition. However, in the form presented above it requires [math]\displaystyle{ N }[/math] operations for each transition, which is not too efficient. In many cases this can be much improved on by binning the same kinds of transitions into bins, and/or forming a tree data structure of the events. A constant-time scaling algorithm of this type has recently been developed and tested.[6]

The major disadvantage with rfKMC is that all possible rates [math]\displaystyle{ r_{ki} }[/math] and reactions have to be known in advance. The method itself can do nothing about predicting them. The rates and reactions must be obtained from other methods, such as diffusion (or other) experiments, molecular dynamics or density-functional theory simulations.

Examples of use

KMC has been used in simulations of the following physical systems:

  1. Surface diffusion
  2. Surface growth[7]
  3. Vacancy diffusion in alloys (this was the original use[8])
  4. Coarsening of domain evolution
  5. Defect mobility and clustering in ion or neutron irradiated solids including, but not limited to, damage accumulation and amorphization/recrystallization models.
  6. Viscoelasticity of physically crosslinked networks[9]

To give an idea what the "objects" and "events" may be in practice, here is one concrete simple example, corresponding to example 2 above.

Consider a system where individual atoms are deposited on a surface one at a time (typical of physical vapor deposition), but also may migrate on the surface with some known jump rate [math]\displaystyle{ w }[/math]. In this case the "objects" of the KMC algorithm are simply the individual atoms.

If two atoms come right next to each other, they become immobile. Then the flux of incoming atoms determines a rate rdeposit, and the system can be simulated with KMC considering all deposited mobile atoms which have not (yet) met a counterpart and become immobile. This way there are the following events possible at each KMC step:

  • A new atom comes in with rate 'rdeposit
  • An already deposited atom jumps one step with rate w.

After an event has been selected and carried out with the KMC algorithm, one then needs to check whether the new or just jumped atom has become immediately adjacent to some other atom. If this has happened, the atom(s) which are now adjacent needs to be moved away from the list of mobile atoms, and correspondingly their jump events removed from the list of possible events.

Naturally in applying KMC to problems in physics and chemistry, one has to first consider whether the real system follows the assumptions underlying KMC well enough. Real processes do not necessarily have well-defined rates, the transition processes may be correlated, in case of atom or particle jumps the jumps may not occur in random directions, and so on. When simulating widely disparate time scales one also needs to consider whether new processes may be present at longer time scales. If any of these issues are valid, the time scale and system evolution predicted by KMC may be skewed or even completely wrong.

History

The first publication which described the basic features of the KMC method (namely using a cumulative function to select an event and a time scale calculation of the form 1/R) was by Young and Elcock in 1966.[8] The residence-time algorithm was also published at about the same time.[10]

Apparently independent of the work of Young and Elcock, Bortz, Kalos and Lebowitz[2] developed a KMC algorithm for simulating the Ising model, which they called the n-fold way. The basics of their algorithm is the same as that of Young,[8] but they do provide much greater detail on the method.

The following year Dan Gillespie published what is now known as the Gillespie algorithm to describe chemical reactions.[11] The algorithm is similar and the time advancement scheme essentially the same as in KMC.

There is as of the writing of this (June 2006) no definitive treatise of the theory of KMC, but Fichthorn and Weinberg have discussed the theory for thermodynamic equilibrium KMC simulations in detail.[12] A good introduction is given also by Art Voter,[13][1] and by A.P.J. Jansen,[14][2], and a recent review is (Chatterjee 2007)[15] or (Chotia 2008).[16] The justification of KMC as a coarse-graining of the Langevin dynamics using the quasi-stationary distribution approach has been developed by T. Lelièvre and collaborators.[17] [18]


In March 2006 the, probably, first commercial software using Kinetic Monte Carlo to simulate the diffusion and activation/deactivation of dopants in Silicon and Silicon like materials is released by Synopsys, reported by Martin-Bragado et al.[19]

Varieties of KMC

The KMC method can be subdivided by how the objects are moving or reactions occurring. At least the following subdivisions are used:

  • Lattice KMC (LKMC) signifies KMC carried out on an atomic lattice. Often this variety is also called atomistic KMC, (AKMC). A typical example is simulation of vacancy diffusion in alloys, where a vacancy is allowed to jump around the lattice with rates that depend on the local elemental composition.[20]
  • Object KMC (OKMC) means KMC carried out for defects or impurities, which are jumping either in random or lattice-specific directions. Only the positions of the jumping objects are included in the simulation, not those of the 'background' lattice atoms. The basic KMC step is one object jump.
  • Event KMC (EKMC) or First-passage KMC (FPKMC) signifies an OKMC variety where the following reaction between objects (e.g. clustering of two impurities or vacancy-interstitial annihilation) is chosen with the KMC algorithm, taking the object positions into account, and this event is then immediately carried out.[21][22]

References

  1. 1.0 1.1 Serebrinsky, Santiago A. (2011-03-31). "Physical time scale in kinetic Monte Carlo simulations of continuous-time Markov chains". Physical Review E (American Physical Society (APS)) 83 (3): 037701. doi:10.1103/physreve.83.037701. ISSN 1539-3755. PMID 21517635. Bibcode2011PhRvE..83c7701S. 
  2. 2.0 2.1 Bortz, A.B.; Kalos, M.H.; Lebowitz, J.L. (1975). "A new algorithm for Monte Carlo simulation of Ising spin systems". Journal of Computational Physics (Elsevier BV) 17 (1): 10–18. doi:10.1016/0021-9991(75)90060-1. ISSN 0021-9991. Bibcode1975JCoPh..17...10B. 
  3. Sadiq, Abdullah (1984). "A new algorithm for the Monte Carlo simulation of spin-exchange kinetics of Ising systems". Journal of Computational Physics (Elsevier BV) 55 (3): 387–396. doi:10.1016/0021-9991(84)90028-7. ISSN 0021-9991. Bibcode1984JCoPh..55..387S. 
  4. Prados, A.; Brey, J. J.; Sánchez-Rey, B. (1997). "A dynamical monte carlo algorithm for master equations with time-dependent transition rates". Journal of Statistical Physics (Springer Science and Business Media LLC) 89 (3–4): 709–734. doi:10.1007/bf02765541. ISSN 0022-4715. Bibcode1997JSP....89..709P. 
  5. Meng, B.; Weinberg, W. H. (1994). "Monte Carlo simulations of temperature programmed desorption spectra". The Journal of Chemical Physics (AIP Publishing) 100 (7): 5280–5289. doi:10.1063/1.467192. ISSN 0021-9606. Bibcode1994JChPh.100.5280M. 
  6. Slepoy, Alexander; Thompson, Aidan P.; Plimpton, Steven J. (2008-05-28). "A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networks". The Journal of Chemical Physics (AIP Publishing) 128 (20): 205101. doi:10.1063/1.2919546. ISSN 0021-9606. PMID 18513044. Bibcode2008JChPh.128t5101S. 
  7. Meng, B.; Weinberg, W.H. (1996). "Dynamical Monte Carlo studies of molecular beam epitaxial growth models: interfacial scaling and morphology". Surface Science (Elsevier BV) 364 (2): 151–163. doi:10.1016/0039-6028(96)00597-3. ISSN 0039-6028. Bibcode1996SurSc.364..151M. 
  8. 8.0 8.1 8.2 Young, W M; Elcock, E W (1966). "Monte Carlo studies of vacancy migration in binary ordered alloys: I". Proceedings of the Physical Society (IOP Publishing) 89 (3): 735–746. doi:10.1088/0370-1328/89/3/329. ISSN 0370-1328. Bibcode1966PPS....89..735Y. 
  9. Baeurle, Stephan A.; Usami, Takao; Gusev, Andrei A. (2006). "A new multiscale modeling approach for the prediction of mechanical properties of polymer-based nanomaterials". Polymer (Elsevier BV) 47 (26): 8604–8617. doi:10.1016/j.polymer.2006.10.017. ISSN 0032-3861. 
  10. D.R. Cox and H.D. Miller, The Theory of Stochastic Processes (Methuen, London), 1965, pp. 6–7.
  11. Gillespie, Daniel T (1976). "A general method for numerically simulating the stochastic time evolution of coupled chemical reactions". Journal of Computational Physics (Elsevier BV) 22 (4): 403–434. doi:10.1016/0021-9991(76)90041-3. ISSN 0021-9991. Bibcode1976JCoPh..22..403G. 
  12. Fichthorn, Kristen A.; Weinberg, W. H. (1991-07-15). "Theoretical foundations of dynamical Monte Carlo simulations". The Journal of Chemical Physics (AIP Publishing) 95 (2): 1090–1096. doi:10.1063/1.461138. ISSN 0021-9606. Bibcode1991JChPh..95.1090F. 
  13. A. F. Voter, Introduction to the Kinetic Monte Carlo Method, in Radiation Effects in Solids, edited by K. E. Sickafus and E. A. Kotomin (Springer, NATO Publishing Unit, Dordrecht, The Netherlands, 2005).
  14. A.P.J. Jansen, An Introduction To Monte Carlo Simulations of Surface Reactions, Condensed Matter, abstract cond-mat/0303028.
  15. Chatterjee, Abhijit; Vlachos, Dionisios G. (2007-02-28). "An overview of spatial microscopic and accelerated kinetic Monte Carlo methods". Journal of Computer-Aided Materials Design (Springer Science and Business Media LLC) 14 (2): 253–308. doi:10.1007/s10820-006-9042-9. ISSN 0928-1045. Bibcode2007JCMD...14..253C. 
  16. Chotia, Amodsen; Viteau, Matthieu; Vogt, Thibault; Comparat, Daniel; Pillet, Pierre (2008-04-30). "Kinetic Monte Carlo modeling of dipole blockade in Rydberg excitation experiment". New Journal of Physics (IOP Publishing) 10 (4): 045031. doi:10.1088/1367-2630/10/4/045031. ISSN 1367-2630. Bibcode2008NJPh...10d5031C. 
  17. Di Gesù, Giacomo; Lelièvre, Tony; Le Peutrec, Dorian; Nectoux, Boris (2016). "Jump Markov models and transition state theory: the Quasi-Stationary Distribution approach". Faraday Discussions 195: 469–495. doi:10.1039/C6FD00120C. ISSN 1364-5498. PMID 27740662. Bibcode2016FaDi..195..469D. 
  18. Lelièvre, Tony (2018). "Mathematical foundations of Accelerated Molecular Dynamics methods". in Andreoni, Wanda; Yip, Sidney. Handbook of Materials Modeling. Springer. pp. 773–803. doi:10.1007/978-3-319-44677-6_27. ISBN 978-3-319-44677-6. 
  19. Martin-Bragado, Ignacio; Tian, S.; Johnson, M.; Castrillo, P.; Pinacho, R.; Rubio, J.; Jaraiz, M. (2006). "Modeling charged defects, dopant diffusion and activation mechanisms for TCAD simulations using kinetic Monte Carlo". Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms (Elsevier BV) 253 (1–2): 63–67. doi:10.1016/j.nimb.2006.10.035. ISSN 0168-583X. Bibcode2006NIMPB.253...63M. 
  20. Mason, D.R.; Hudson, T.S.; Sutton, A.P. (January 2005). "Fast recall of state-history in kinetic Monte Carlo simulations utilizing the Zobrist key". Computer Physics Communications 165 (1): 37–48. doi:10.1016/j.cpc.2004.09.007. Bibcode2005CoPhC.165...37M. 
  21. Dalla Torre, J.; Bocquet, J.-L.; Doan, N. V.; Adam, E.; Barbu, A. (2005). "JERK, an event-based Kinetic Monte Carlo model to predict microstructure evolution of materials under irradiation". Philosophical Magazine (Informa UK Limited) 85 (4–7): 549–558. doi:10.1080/02678370412331320134. ISSN 1478-6435. Bibcode2005PMag...85..549D. 
  22. Opplestrup, Tomas; Bulatov, Vasily V.; Gilmer, George H.; Kalos, Malvin H.; Sadigh, Babak (2006-12-04). "First-Passage Monte Carlo Algorithm: Diffusion without All the Hops". Physical Review Letters (American Physical Society (APS)) 97 (23): 230602. doi:10.1103/physrevlett.97.230602. ISSN 0031-9007. PMID 17280187. Bibcode2006PhRvL..97w0602O. 

External links