Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Example Project and Numerical Integration Computational Neuroscience 03 Lecture 11.
Formal Computational Skills
Simulazione di Biomolecole: metodi e applicazioni giorgio colombo
Introduction to Computational Chemistry NSF Computational Nanotechnology and Molecular Engineering Pan-American Advanced Studies Institutes (PASI) Workshop.
Pressure and Kinetic Energy
Statistical mechanics
Molecular dynamics in different ensembles
Eric Prebys, FNAL.  We have focused largely on a kinematics based approach to beam dynamics.  Most people find it more intuitive, at least when first.
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
Molecular Dynamics at Constant Temperature and Pressure Section 6.7 in M.M.
Lecture 13: Conformational Sampling: MC and MD Dr. Ronald M. Levy Contributions from Mike Andrec and Daniel Weinstock Statistical Thermodynamics.
Saturday, 02 May 2015 Speeding up HMC with better integrators A D Kennedy and M A Clark School of Physics & SUPA, The University of Edinburgh Boston University.
A Digital Laboratory “In the real world, this could eventually mean that most chemical experiments are conducted inside the silicon of chips instead of.
LINCS: A Linear Constraint Solver for Molecular Simulations Berk Hess, Hemk Bekker, Herman J.C.Berendsen, Johannes G.E.M.Fraaije Journal of Computational.
Relaxation and Molecular Dynamics
Integration Techniques
Summer School 2007B. Rossetto1 5. Kinematics  Piecewise constant velocity t0t0 tntn titi t i+1 x(t) x(t i ) h t x i = v(t i ). h Distance runned during.
Molecular Dynamics Basics (4.1, 4.2, 4.3) Liouville formulation (4.3.3) Multiple timesteps (15.3)
Incorporating Solvent Effects Into Molecular Dynamics: Potentials of Mean Force (PMF) and Stochastic Dynamics Eva ZurekSection 6.8 of M.M.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
Course Outline 1.MATLAB tutorial 2.Motion of systems that can be idealized as particles Description of motion; Newton’s laws; Calculating forces required.
Lagrangian and Hamiltonian Dynamics
Molecular Dynamics Classical trajectories and exact solutions
1 CE 530 Molecular Simulation Lecture 2 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Joo Chul Yoon with Prof. Scott T. Dunham Electrical Engineering University of Washington Molecular Dynamics Simulations.
Relativistic Mechanics Relativistic Mass and Momentum.
Javier Junquera Exercises on basis set generation Increasing the angular flexibility: polarization orbitals.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Ch 23 pages Lecture 15 – Molecular interactions.
MSEG 803 Equilibria in Material Systems 6: Phase space and microstates Prof. Juejun (JJ) Hu
Molecular Dynamics Simulation Solid-Liquid Phase Diagram of Argon ZCE 111 Computational Physics Semester Project by Gan Sik Hong (105513) Hwang Hsien Shiung.
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Dr. Hatim Dirar Department of Physics, College of Science Imam Mohamad Ibn Saud Islamic University.
Basics of molecular dynamics. Equations of motion for MD simulations The classical MD simulations boil down to numerically integrating Newton’s equations.
Force Fields and Numerical Solutions Christian Hedegaard Jensen - within Molecular Dynamics.
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
L.I. Petrova “Specific features of differential equations of mathematical physics.” Investigation of the equations of mathematical physics with the help.
The Two-Body Problem. The two-body problem The two-body problem: two point objects in 3D interacting with each other (closed system) Interaction between.
Ch. 2: Describing Motion: Kinematics in One Dimension.
1 CE 530 Molecular Simulation Lecture 11 Molecular Dynamics Simulation David A. Kofke Department of Chemical Engineering SUNY Buffalo
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
In the Hamiltonian Formulation, the generalized coordinate q k & the generalized momentum p k are called Canonically Conjugate quantities. Hamilton’s.
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
Advanced methods of molecular dynamics 1.Monte Carlo methods 2.Free energy calculations 3.Ab initio molecular dynamics 4.Quantum molecular dynamics 5.Trajectory.
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
Molecular Modelling - Lecture 2 Techniques for Conformational Sampling Uses CHARMM force field Written in C++
Chapter 11 Angular Momentum. Angular momentum plays a key role in rotational dynamics. There is a principle of conservation of angular momentum.  In.
1 Honors Physics 1 Summary and Review - Fall 2013 Quantitative and experimental tools Mathematical tools Newton’s Laws and Applications –Linear motion.
ChE 452 Lecture 25 Non-linear Collisions 1. Background: Collision Theory Key equation Method Use molecular dynamics to simulate the collisions Integrate.
Molecular dynamics (1) Principles and algorithms.
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
Molecular dynamics (2) Langevin dynamics NVT and NPT ensembles
Lecture 3. Full statistical description of the system of N particles is given by the many particle distribution function: in the phase space of 6N dimensions.
The Hamiltonian method
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 17 Some materials adapted from Prof. Keith E. Gubbins:
Canonical Equations of Motion -- Hamiltonian Dynamics
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
Molecular dynamics (MD) simulations  A deterministic method based on the solution of Newton’s equation of motion F i = m i a i for the ith particle; the.
Introduction to Computer Simulation of Physical Systems (Lecture 4) Simulating Particle Motion (CONTINUED) PHYS 3061.
Computational Physics (Lecture 11) PHY4061. Variation quantum Monte Carlo the approximate solution of the Hamiltonian Time Independent many-body Schrodinger’s.
Integrators of higher order
Overview of Molecular Dynamics Simulation Theory
Special Theory of Relativity
Fundamentals of Molecular Dynamics Simulations
Introduction.
Advanced Molecular Dynamics
Liouville formulation (4.3.3)
Presentation transcript:

Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm

Equations of motion for atomic systems in cartesian coordinates Classical equation of motion for a system of molecules interacting via a potential This equation also aplies to the center of mass motion of a molecule, with the force begin the total external force acting on it

Hamilton or Lagrange equations of motion Hamilton’s equationsLagrange’s equation To compute the center of mass trajectories involves solving… A system of 3 N second order differential equations Or an equivalent set of 6 N first-order differential equations

Hamilton or Lagrange equations of motion Hamilton’s equationsLagrange’s equation To compute the center of mass trajectories involves solving… A system of 3 N second order differential equations Or an equivalent set of 6 N first-order differential equations

Conservation laws Assuming that and do not depend explicitly on time, so that Then, the total derivative of the Hamiltonian with respect to time From the Hamilton’s equation of motion The Hamiltonian is a constant of motion Independent of the existence of an external potential Essential condition: No explicitly time dependent or velocity dependent force acting

The equations are time reversible By changing the signs of all the velocities and momenta, we will cause the molecules to retrace their trajectories. If the equations of motion are solved correctly, the computer-generated trajectories will also have this property

Standard method to solve ordinary differential equations: the finite difference approach Given molecular positions, velocities, and other dynamic information at a time We attempt to obtain the position, velocities, etc. at a later time, to a sufficient degree of accuracy The choice of the time interval will depend on the method of solution, but will be significantly smaller than the typical time taken for a molecule to travel its own length The equations are solved on a step by step basis Notes: t0t0 t1t1 t2t2 tNtN tntn t n+1 t n-1 h=  t

General step of a stepwise Molecular Dynamics simulation Predict the positions, velocities, accelerations, etc. at a time, using the current values of these quantities Evaluate the forces, and hence the accelerations from the new positions Correct the predicted positions, velocities, accelerations, etc. using the new accelerations Calculate any variable of interest, such as the energy, virial, order parameters, ready for the accumulation of time averages, before returning to the first point for the next step

Desirable qualities for a successful simulation algorithm It should be fast and require little memory It should permit the use of long time step It should duplicate the classical trajectory as closely as possible It should satisfy the known conservation laws for energy and momentum, and be time reversible It should be simple in form and easy to program Since the most time consuming part is the evaluation of the force, the raw speed of the integration algorithm is not so important Far more important to employ a long time step. In this way, a given period of simulation time can be covered in a modest number of steps Involve the storage of only a few coordinates, velocitites,…

Desirable qualities for a successful simulation algorithm It should be fast and require little memory It should permit the use of long time step It should duplicate the classical trajectory as closely as possible It should satisfy the known conservation laws for energy and momentum, and be time reversible It should be simple in form and easy to program Since the most time consuming part is the evaluation of the force, the raw speed of the integration algorithm is not so important Far more important to employ a long time step. In this way, a given period of simulation time can be covered in a modest number of steps Involve the storage of only a few coordinates, velocitites,…

Energy conservation is degraded as time step is increased All simulations involve a trade-off between ECONOMY ACCURACY A good algorithm permits a large time step to be used while preserving acceptable energy conservation

Parameters that determine the size of Shape of the potential energy curves Typical particle velocities Shorter time steps are used at high-temperatures, for light molecules, and for rapidly varying potential functions

The Verlet algorithm method of integrating the equations of motion: description of the algorithm Direct solution of the second-order equations Method based on: - the positions - the accelerations - the positions from the previous step A Taylor expansion of the positions around t Adding the two equations

The Verlet algorithm method of integrating the equations of motion: some remarks The velocities are not needed to compute the trajectories, but they are useful for estimating the kinetic energy (and the total energy). They can be computed a posteriori using [ can only be computed once is known] Remark 1 Remark 2 Whereas the errors to compute the positions are of the order of The velocities are subject to errors of the order of

The Verlet algorithm method of integrating the equations of motion: some remarks The Verlet algorithm is properly centered: and play symmetrical roles. The Verlet algorithm is time reversible Remark 3 Remark 4 The advancement of positions takes place all in one go, rather than in two stages as in the predictor-corrector algorithm.

The Verlet algorithm method of integrating the equations of motion: overall scheme Known the positions at t, we compute the forces (and therefore the accelerations at t ) Then, we apply the Verlet algorithm equations to compute the new positions …and we repeat the process computing the forces (and therefore the accelerations at )

Molecular Dynamics Timestep must be small enough to accurately sample highest frequency motion Typical timestep is 1 fs (1 x s) Typical simulation length: Depends on the system of study!! (the more complex the PES the longer the simulation time) Is this timescale relevant to your process? Simulation has two parts –equilibration – when properties do not depend on time –production (record data) Results: –diffusion coefficients –Structural information (RDF’s,) –Free energies / phase transformations (very hard!) Is your result statistically significant?

How to run a Molecular Dynamic in Siesta: the Verlet algorithm (NVE-microcanonical ensemble)

Computing the instantaneous temperature, kinetic energy and total energy

How to run a Molecular Dynamic in Siesta: the Verlet algorithm (NVE-microcanonical ensemble) Maxwell-Boltzmann

SystemLabel.MDE Output of a Molecular Dynamic in Siesta: the Verlet algorithm (NVE-microcanonical ensemble) Conserved quantity Example for MgCoO 3 in the rhombohedral structure

Output of a Molecular Dynamic in Siesta: SystemLabel.MD Atomic coordinates and velocities (and lattice vectors and their time derivatives if the dynamics implies variable cell). (unformatted; post-process with iomd.F) SystemLabel.MDEshorter description of the run, with energy, temperature, etc. per time step SystemLabel.ANI (contains the coordinates of every Molecular Dynamics step in xyz format) These files are accumulative even for different runs. Remember to delete previous ones if you are not interested on them

Check conservation of energy $ gnuplot $ gnuplot> plot "md_verlet.MDE" using 1:3 with lines, "md_verlet.MDE" using 1:4 with lines $ gnuplot> set terminal postscript color $ gnuplot> set output “energy.ps” $ gnuplot> replot Length of time step: 3 fs Compare: Total energy with KS energy

Check conservation of energy $ gnuplot $ gnuplot> plot "md_verlet.MDE" using 1:3 with lines, "md_verlet.MDE" using 1:4 with lines $ gnuplot> set terminal postscript color $ gnuplot> set output “energy.ps” $ gnuplot> replot Length of time step: 1 fs Compare: Total energy with KS energy

Check conservation of energy $ gnuplot $ gnuplot> plot "md_verlet.MDE" using 1:3 with lines, "md_verlet.MDE" using 1:4 with lines $ gnuplot> set terminal postscript color $ gnuplot> set output “energy.ps” $ gnuplot> replot Length of time step: 0.5 fs Compare: Total energy with KS energy

Check conservation of energy $ gnuplot $ gnuplot> plot "md_verlet.MDE" using 1:3 with lines, "md_verlet.MDE" using 1:4 with lines $ gnuplot> set terminal postscript color $ gnuplot> set output “energy.ps” $ gnuplot> replot Length of time step: 0.1 fs Compare: Total energy with KS energy

Check conservation of energy

Visualisation and Analysis Molekel XCRYSDEN GDIS