2 Molecular and Stochastic Dynamics

Total Page:16

File Type:pdf, Size:1020Kb

2 Molecular and Stochastic Dynamics 2 Molecular and stochastic dynamics In this chapter we discuss the most commonly used ensembles in molecular simulations and the different equations of motion that can be used to generate each ensemble. For generating a canonical ensemble one can use stochastic dynamics with or without inertia. The temperature in a simulation can also be maintained by coupling to a heat bath. We compare the different methods for generating constant temperature trajectories using several test systems. 7 2 Molecular and stochastic dynamics 2.1 Equations of motion We will briefly introduce two ways to describe classical dynamics. For a more thorough treatment see Goldstein [7] or Landau and Lifshitz [8]. Lagrangian dynamics Classical dynamics can be described in the most general way with the Lagrangian ap- ´Øµ proach. The equations of motion are expressed using generalized coordinates Õ . These coordinates do not have to be coordinates in the usual sense, which span a high dimensional space, like Cartesian coordinates, they should be seen as ’just’ variables. Î Ä Given the kinetic energy à and the potential energy , the Lagrangian of the system is defined as: ´Õ ´Øµ մصص Ã Î Ä (2.1) մص where is the derivative of Õ with respect to time: ´Øµ dÕ ´Øµ Õ (2.2) dØ Õ Ø The kinetic and potential can both be a function of Õ , and explicitly. Lagrange’s equations of motion are: Ä d Ä ¼ ½Æ (2.3) Ø Õ Õ d The elegance of this formulation is that it is completely independent of the choice of co- ordinates Õ. This is convenient when the potential energy is known in some appropriate Ü coordinate system. For Cartesian coordinates Õ , with the kinetic energy given by: Ñ ¾ à ´Ü µ ´Ü µ (2.4) ¾ and a potential energy which only depends on the coordinates, Lagrange equations of motion reduce to Newton’s equations of motion: ¾ Ü d Ñ (2.5) ¾ dØ where the forces are defined as minus the gradient of the potential: Î ´Õµ (2.6) Ü The Lagrange formulation is most useful for solving the equations of motion, but for statistical mechanics the Hamiltonian formulation is more convenient. 8 2.1 Equations of motion Hamiltonian dynamics The main conceptual difference between the Lagrangian and the Hamiltonian formu- Õ lation is that in the latter the generalized velocities are replaced by the generalized Ô momenta : Ä Ô (2.7) Õ The generalized momenta are said to be conjugate to the generalized coordinates. The Hamiltonian À is a function of the generalized momenta and coordinates and it can depend on time explicitly: À ´Ô´Øµ մصص Ô Õ Ä´Õ´Øµ մصص (2.8) The equations of motion can be derived from this definition [7]: À Õ (2.9) Ô À Ô (2.10) Õ À Ä (2.11) Ø Ø Equations (2.9) and (2.10) are called the canonical equations of Hamilton. If the generalized coordinates can be expressed as a function of Cartesian coordi- nates, the kinetic energy will be a quadratic function of the generalized velocities, with coefficients which depend on the generalized coordinates, but not explicitly on time: ½ à ´Õµ Õ Õ (2.12) ¾ Ü Ü Ñ (2.13) Õ Õ When the potential is not a function of the generalized velocities, the momenta are given by: Ä Ã ´Õµ Õ Ô (2.14) Õ Õ Using (2.8) it can be shown that under these conditions the Hamiltonian is equal to the total energy: à · Î À (2.15) From (2.11) we can see that when the potential does not depend explicitly on time the total energy is conserved. Such systems are called conservative. 9 2 Molecular and stochastic dynamics 2.2 Molecular dynamics In molecular dynamics (MD) the classical equations of motion are solved in time for a set of atoms. The interactions between the atoms, which are in principle given by the Schr¨odinger equation, are approximated by mainly pairwise potentials. Some bonded interactions, like angles and dihedrals, involve more-body terms. The accuracy of a molecular dynamics simulation is mainly determined by the quality of the inter-atomic potentials, which together are called the forcefield. Simulations which include solvent are almost always performed in Cartesian co- ordinates. When no constraints are present, the system obeys Newton’s equations of motion. When one or more inter-atomic distances are constrained one can remove these coordinates and use generalized coordinates, as described for Hamilton’s equation of motion. For analytical derivations this can be useful. But when simulating the system on a computer it is often more convenient to simulate in Cartesian space and correct the distances between the constrained particles using a constraint algorithm like SHAKE [9] or LINCS [10]. A simulation of a single molecule with fixed bond lengths and bond angles might be performed more efficiently in so called internal coordinates, which are usually dihedral angles. 2.3 Ensembles used in MD Pure conservative Hamiltonian simulations of many-particle systems yield equilibrium Ô Õµ distributions in ´ space (called phase space) with constant energy. By proper mod- ification of the equations of motion, other ensembles can be generated. There are four ensembles which are commonly used in molecular simulations. These ensembles are in- dicated by the three thermodynamic quantities which are kept constant. The ensembles ÆÎ Ì are: the constant-ÆÎ or microcanonical ensemble, the constant- or canonical Î Ì ensemble, the constant-ÆÈ Ì or isothermal-isobaric ensemble and the constant- or grand canonical ensemble. Another possible ensemble is the constant-È Ì ensemble. When MD is performed using Newton’s equations of motion, the total energy is con- served, assuming we integrate accurately with a stable integration scheme. This results in a microcanonical ensemble. When we want to obtain a different ensemble, the equations of motion need to be modified. A way of doing this is the extended system approach. To obtain a canonical ensemble, the temperature can be added as a generalized coordinate to the Lagrangian. This approach is called the Nos´e-Hoover scheme, or coupling with the Nos´e-Hoover thermostat [11]. Although a canonical ensemble is obtained, the tem- perature will oscillate around the average, where the period of the oscillations depends on the effective “mass” associated with the temperature coordinate in the Lagrangian. This can result in unwanted kinetic effects. A method which leaves the fast kinetics unaffected is weak coupling to a bath, also called the Berendsen thermostat [12]. The 10 2.4 Monte Carlo weak coupling is achieved with a first other differential equation for the temperature. This causes any deviations from the reference temperature to decay exponentially. The main disadvantage of the Berendsen thermostat is that it is unknown if it generates an ensemble. Any temperature coupling method will affect the long-term velocity correla- tions in the system. For the Berendsen thermostat a large part of these correlations can be retrieved after performing the simulation [13]. Methods for keeping the pressure constant in an MD simulation are analogous to the temperature coupling method. The volume of the periodic unit-cell, or all three vectors of the unit-cell can be added as an extra generalized coordinate in the Lagrangian. This method is called Parrinello-Rahman pressure coupling [14]. In combination with the Nos´e-Hoover thermostat this generates an isothermal-isobaric ensemble. Just like the Nos´e-Hoover thermostat, Parrinello-Rahman coupling gives oscillations of the unit-cell vectors. Berendsen coupling can also be used for the pressure. Again, this has the advantage that the fast kinetics are unaffected and the disadvantage that it is unknown if an ensemble is generated. 2.4 Monte Carlo When one is not interested in the dynamics Monte Carlo simulations can be used to gen- erate a canonical ensemble. The most simple algorithm is Metropolis Monte Carlo [15]. Ò ¼ Ö Starting from a configuration Ö a trial move is generated by giving one or more par- Ò·½ ¼ Ö ticles a random displacement. The trial move is accepted, Ö , with probability: ½ Ò·½ Ò ½ ÜÔ Î Ö Î ´Ö µ ÑÒ (2.16) Ì Ò·½ Ò Ö If the trial move is not accepted then Ö . It is essential that the random displace- ment should not introduce a bias into the sampling. For some types of biases it is pos- sible apply a correction to the probability 2.16, an example is given in section 2.7. The efficiency of the algorithm depends on the choice of the random displacement. When the displacement is very small almost every move will be accepted, but it will take a large number of moves to cover the whole available phase space. When the displace- ment is very large the acceptance ratio is very small. One can also think of complicated non-Cartesian moves. For instance, (combined) dihedral moves, which are especially efficient for proteins. An advantage of Monte Carlo over MD is that only the energy needs to be calculated, not the forces. For small systems Monte Carlo is more efficient in sampling than MD. But for large systems, such as proteins in explicit solvent, Monte Carlo is less efficient, since there will be large, collective motions present. 11 2 Molecular and stochastic dynamics 2.5 Langevin dynamics Another method to obtain a canonical ensemble is Langevin dynamics (LD). In LD a frictional force, proportional to the velocity, is added to the conservative force. The friction removes kinetic energy from the system. A random force adds kinetic energy to the system. To generate a canonical ensemble, the friction and random force have to obey the fluctuation-dissipation theorem [6].
Recommended publications
  • Mathematical and Algorithmic Analysis of Modified Langevin Dynamics
    Zofia Trstanova Mathematical and Algorithmic Analysis of Modified Langevin Dynamics Summary In statistical physics, the macroscopic information of interest for the systems under consideration can be inferred from averages over microscopic configurations distributed according to probability measures µ characterizing the thermodynamic state of the system. Due to the high dimensionality of the system (which is proportional to the number of particles), these configurations are most often sampled using trajectories of stochastic differential equations or Markov chains ergodic for the probability measure µ, which describes a system at constant temperature. One popular stochastic process allowing to sample this measure is the Langevin dynamics. In practice, the Langevin dynamics cannot be analytically integrated, its solution is therefore approximated with a numerical scheme. The numerical analysis of such discretization schemes is by now well-understood when the kinetic energy is the standard quadratic kinetic energy. One important limitation of the estimators of the ergodic averages are their possibly large statistical errors. Under certain assumptions on potential and kinetic energy, it can be shown that a central limit theorem holds true. The asymptotic variance may be large due to the metastability of the Langevin process, which occurs as soon as the probability measure µ is multimodal. In this thesis, we consider the discretization of modified Langevin dynamics which improve the sampling of the Boltzmann–Gibbs distribution by introducing a more general kinetic energy function U instead of the standard quadratic one. We have in fact two situations in mind: (a) Adaptively Restrained (AR) Langevin dynamics, where the kinetic energy vanishes for small momenta, while it agrees with the standard kinetic energy for large momenta.
    [Show full text]
  • From Stochastic to Deterministic Langevin Equations
    Abstract In the first part of this thesis we review the concept of stochastic Langevin equations. We state a simple example and explain its physical meaning in terms of Brownian motion. We then calculate the mean square displacement and the velocity autocorrelation function by solving this equation. These quantities are related to the diffusion coefficient in terms of the Green-Kuba formula, and will be defined properly. In the second part of the thesis we introduce a deterministic Langevin equation which models Brownian motion in terms of deterministic chaos, as suggested in recent research literature. We solve this equation by deriving a recurrence relation. We review Takagi function techniques of dynamical systems theory and apply them to this model. We also apply the correlation function technique. Finally, we derive, for the first time, an exact formula for the diffusion coefficient as a function of a control parameter for this model. Acknowledgement I would like to thank my supervisor Dr Rainer Klages for his excellent guid- ance and support throughout my thesis work. Special thanks to Dr Wolfram Just for some useful hints. i Contents 1 Introduction 1 2 Stochastic Langevin Equation 3 2.1 What is Brownian motion? . 3 2.2 The Langevin equation . 4 2.3 Calculation of the mean square displacement . 5 2.4 Derivation of the velocity autocorrelation function . 8 3 Deterministic Langevin Equation 10 3.1 Langevin equation revisited . 10 3.2 Solving the deterministic Langevin equation . 11 3.3 Calculation of the Diffusion Coefficient . 14 3.3.1 Correlation function technique . 15 3.3.2 Takagi function technique .
    [Show full text]
  • Well-Posedness and Long Time Behavior of Singular Langevin Stochastic Differential Equations✩ Renming Songa, Longjie Xieb,∗
    Available online at www.sciencedirect.com ScienceDirect Stochastic Processes and their Applications 130 (2020) 1879–1896 www.elsevier.com/locate/spa Well-posedness and long time behavior of singular Langevin stochastic differential equationsI Renming Songa, Longjie Xieb,∗ a Department of Mathematics, University of Illinois, Urbana, IL 61801, USA b School of Mathematics and Statistics, Jiangsu Normal University, Xuzhou, Jiangsu 221000, PR China Received 10 April 2018; received in revised form 28 April 2019; accepted 4 June 2019 Available online 12 June 2019 Abstract In this paper, we study damped Langevin stochastic differential equations with singular velocity fields. We prove the strong well-posedness of such equations. Moreover, by combining the technique of Lyapunov functions with Krylov’s estimate, we also establish exponential ergodicity for the unique strong solution. ⃝c 2019 Elsevier B.V.All rights reserved. MSC: primary 60H10; secondary 37A25; 82C31 Keywords: Pathwise uniqueness; Langevin equation; Krylov’s estimate; Exponential ergodicity 1. Introduction and main results In this paper, we study the following Langevin stochastic differential equation (SDE): ( d dXt D Vt dt; X0 D x 2 R ; d (1.1) dVt D −γ Vt dt − r F(Xt )dt C G(Vt )dt C dWt ; V0 D v 2 R ; where Wt is a standard d-dimensional Brownian motion defined on some filtered probability space (Ω; F ; (Ft )t>0; P), and γ > 0 is a friction constant which ensures that our Hamiltonian I Research of R. Song is supported by the Simons Foundation (#429343, Renming Song). L. Xie is supported by the Alexander von Humboldt Stiftung Foundation, Germany, NNSF of China (No.
    [Show full text]
  • Mathematical and Algorithmic Analysis of Modified Langevin Dynamics. Mathe- Matical Physics [Math-Ph]
    Mathematical and algorithmic analysis of modified Langevin dynamics Zofia Trstanova To cite this version: Zofia Trstanova. Mathematical and algorithmic analysis of modified Langevin dynamics. Mathe- matical Physics [math-ph]. Université Grenoble Alpes, 2016. English. NNT : 2016GREAM054. tel-01682721 HAL Id: tel-01682721 https://tel.archives-ouvertes.fr/tel-01682721 Submitted on 12 Jan 2018 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. THÈSE Pour obtenir le grade de DOCTEUR DE L’UNIVERSITÉ DE GRENOBLE Spécialité : Mathématiques appliquées Arrêté ministérial : 7 août 2006 Présentée par Zofia Trstanova Thèse dirigée par Stephane Redon et codirigée par Gabriel Stoltz préparée au sein INRIA Grenoble Rhônes-Alpes et Laboratoire Jean Kuntzmann et de Ecole Doctorale Mathématiques, Sciences et Technologies de l’Information, Informatique Mathematical and Algorithmic Analysis of Modified Langevin Dynamics Thèse soutenue publiquement le 25 novembre 2016, devant le jury composé de : M. Jean-Louis Barrat Professeur à l’Université Joseph Fourier, Président M. Benedict Leimkuhler Professeur à l’Université d’Edimbourg, Rapporteur M. Grigorios A. Pavliotis Professeur à l’Imperial College London, Rapporteur M. Mathias Rousset Chargé de Recherche à l’Inria Rennes, Examinateur M. Stephane Redon Chargé de Recherche à l’Inria Rhônes-Alpes Grenoble, Directeur de thèse M.
    [Show full text]
  • CLASSICAL LANGEVIN DYNAMICS DERIVED from QUANTUM MECHANICS Håkon Hoel Anders Szepessy 1. Langevin Molecular Dynamics. Langevin
    DISCRETE AND CONTINUOUS doi:10.3934/dcdsb.2020135 DYNAMICAL SYSTEMS SERIES B Volume 25, Number 10, October 2020 pp. 4001{4038 CLASSICAL LANGEVIN DYNAMICS DERIVED FROM QUANTUM MECHANICS H˚akon Hoel Chair of Mathematics for Uncertainty Quantification RWTH Aachen University Germany Anders Szepessy∗ Institutionen f¨orMatematik Kungl. Tekniska H¨ogskolan 100 44 Stockholm, Sweden Abstract. The classical work by Zwanzig [J. Stat. Phys. 9 (1973) 215-220] derived Langevin dynamics from a Hamiltonian system of a heavy particle coupled to a heat bath. This work extends Zwanzig's model to a quantum system and formulates a more general coupling between a particle system and a heat bath. The main result proves, for a particular heat bath model, that ab initio Langevin molecular dynamics, with a certain rank one friction ma- trix determined by the coupling, approximates for any temperature canonical quantum observables, based on the system coordinates, more accurately than any Hamiltonian system in these coordinates, for large mass ratio between the system and the heat bath nuclei. 1. Langevin molecular dynamics. Langevin dynamics for (unit mass) particle N systems with position coordinates XL : [0; 1) ! R and momentum coordinates N PL : [0; 1) ! R , defined by dXL(t) = PL(t)dt (1) 1=2 dPL(t) = −∇λ XL(t) dt − κP¯ L(t)dt + (2¯κT ) dW (t) ; is used for instance to simulate molecular dynamics in the canonical ensemble of constant temperature T , volume and number of particles, where W denotes the standard Wiener process with N independent components. The purpose of this work is to precisely determine both the potential λ : RN ! R and the friction matrixκ ¯ 2 RN×N in this equation, from a quantum mechanical model of a molecular system including weak coupling to a heat bath.
    [Show full text]
  • A Multi-Scale Method for Dynamics Simulation in Continuum Solvent
    A Multi-Scale Method for Dynamics Simulation in Continuum Solvent Models I: Finite-Difference Algorithm for Navier-Stokes Equation Li Xiao,1,2 Qin Cai,1,2 Zhilin Li,5 Hongkai Zhao,3 and Ray Luo1,2,4 1. Departments of Biomedical Engineering, 2. Molecular Biology and Biochemistry, 3. Mathematics , and 4. Chemical Engineering and Materials Science, University of California, Irvine, CA 92697 5. Department of Mathematics, North Carolina State University, Raleigh, NC 27695 Abstract A multi-scale framework is proposed for more realistic molecular dynamics simulations in continuum solvent models by coupling a molecular mechanics treatment of solute with a fluid mechanics treatment of solvent. This article reports our initial efforts to formulate the physical concepts necessary for coupling the two mechanics and develop a 3D numerical algorithm to simulate the solvent fluid via the Navier-Stokes equation. The numerical algorithm was validated with multiple test cases. The validation shows that the algorithm is effective and stable, with observed accuracy consistent with our design. 1 Introduction To model a biomolecular system, there are different levels of approximation. The most accurate approach is the high level quantum description [1], which explicitly accounts for the electronic structures in the molecules. However the computational cost of this approach is high for large and complex biomolecular systems. The most efficient approach is the coarse-grained description [2], which averages atomic structures and properties. The intermediate approach is the atom-based description, which preserves the atomic details in molecular structures and models the effects of electronic structure through a few empirical energy terms [3].
    [Show full text]
  • Time Integrators for Molecular Dynamics
    Entropy 2014, 16, 138-162; doi:10.3390/e16010138 OPEN ACCESS entropy ISSN 1099-4300 www.mdpi.com/journal/entropy Article Time Integrators for Molecular Dynamics Nawaf Bou-Rabee Department of Mathematical Sciences, Rutgers University—Camden, 311 N 5th Street, Camden, NJ 08102, USA; E-Mail: [email protected]; Tel.: +1-856-225-6093; Fax: +1-856-225-6602 Received: 19 September 2013; in revised form: 20 November 2013 / Accepted: 4 December 2013 / Published: 27 December 2013 Abstract: This paper invites the reader to learn more about time integrators for Molecular Dynamics simulation through a simple MATLAB implementation. An overview of methods is provided from an algorithmic viewpoint that emphasizes long-time stability and finite-time dynamic accuracy. The given software simulates Langevin dynamics using an explicit, second-order (weakly) accurate integrator that exactly reproduces the Boltzmann-Gibbs density. This latter feature comes from adding a Metropolis acceptance-rejection step to the integrator. The paper discusses in detail the properties of the integrator. Since these properties do not rely on a specific form of a heat or pressure bath model, the given algorithm can be used to simulate other bath models including, e.g., the widely used v-rescale thermostat. Keywords: explicit integrators; Metropolis algorithm; ergodicity; weak accuracy MSC Classification: 82C80 (Primary); 82C31, 65C30, 65C05 (Secondary) 1. Introduction Molecular Dynamics (MD) simulation refers to the time integration of Hamilton’s equations often coupled to a heat or pressure bath [1–5]. From its early use in computing equilibrium dynamics of homogeneous molecular systems [6–13] and pico- to nano-scale protein dynamics [14–23], the method has evolved into a general purpose tool for simulating statistical properties of heterogeneous molecular systems [24].
    [Show full text]