The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 18: First Look at Molecular Dynamics CASTEP Developers’ Group.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Simulazione di Biomolecole: metodi e applicazioni giorgio colombo
The Kinetic Theory of Gases
Statistical mechanics
Biological fluid mechanics at the micro‐ and nanoscale Lecture 7: Atomistic Modelling Classical Molecular Dynamics Simulations of Driven Systems Anne Tanguy.
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
Molecular dynamics modeling of thermal and mechanical properties Alejandro Strachan School of Materials Engineering Purdue University
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.
Survey of Molecular Dynamics Simulations: Week 2 By Will Welch For Jan Kubelka CHEM 4560/5560 Fall, 2014 University of Wyoming.
Computational simulation of Molecular dynamics Talk given at the theory group, School of Physics, USM 31 Oct pm.
Molecular Dynamics. Basic Idea Solve Newton’s equations of motion Choose a force field (specified by a potential V) appropriate for the given system under.
Survey of Molecular Dynamics Simulations By Will Welch For Jan Kubelka CHEM 4560/5560 Fall, 2014 University of Wyoming.
Relaxation and Molecular Dynamics
The Nuts and Bolts of First-Principles Simulation
The Nuts and Bolts of First-Principles Simulation Lecture 16: DFT for Metallic Systems CASTEP Developers’ Group with support from the ESF  k Network Durham,
Symmetry. Phase Continuity Phase density is conserved by Liouville’s theorem.  Distribution function D  Points as ensemble members Consider as a fluid.
Statistical Mechanics
The Nuts and Bolts of First-Principles Simulation
Joo Chul Yoon with Prof. Scott T. Dunham Electrical Engineering University of Washington Molecular Dynamics Simulations.
Statistical Mechanics of Proteins
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Advanced methods of molecular dynamics Monte Carlo methods
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
Introduction to (Statistical) Thermodynamics
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : DFT Plane Wave Pseudopotential versus Other Approaches CASTEP Developers’
Free energies and phase transitions. Condition for phase coexistence in a one-component system:
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
Molecular Dynamics Simulation Solid-Liquid Phase Diagram of Argon ZCE 111 Computational Physics Semester Project by Gan Sik Hong (105513) Hwang Hsien Shiung.
Molecular Dynamics A brief overview. 2 Notes - Websites "A Molecular Dynamics Primer", F. Ercolessi
Basics of molecular dynamics. Equations of motion for MD simulations The classical MD simulations boil down to numerically integrating Newton’s equations.
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
P T A typical experiment in a real (not virtual) space 1.Some material is put in a container at fixed T & P. 2.The material is in a thermal fluctuation,
For a new configuration of the same volume V and number of molecules N, displace a randomly selected atom to a point chosen with uniform probability inside.
Molecular Dynamics Simulation
Chapter 6: Molecular Dynamics
The Ideal Monatomic Gas. Canonical ensemble: N, V, T 2.
8. Selected Applications. Applications of Monte Carlo Method Structural and thermodynamic properties of matter [gas, liquid, solid, polymers, (bio)-macro-
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
Study of Pentacene clustering MAE 715 Project Report By: Krishna Iyengar.
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
Comparative Study of NAMD and GROMACS
Molecular Modelling - Lecture 2 Techniques for Conformational Sampling Uses CHARMM force field Written in C++
HEAT TRANSFER FINITE ELEMENT FORMULATION
1 CE 530 Molecular Simulation Lecture 12 David A. Kofke Department of Chemical Engineering SUNY Buffalo
The generalization of Bayes for continuous densities is that we have some density f(y|  ) where y and  are vectors of data and parameters with  being.
Molecular dynamics (2) Langevin dynamics NVT and NPT ensembles
1/18/2016Atomic Scale Simulation1 Definition of Simulation What is a simulation? –It has an internal state “S” In classical mechanics, the state = positions.
Molecular dynamics (4) Treatment of long-range interactions Computing properties from simulation results.
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 17 Some materials adapted from Prof. Keith E. Gubbins:
ECE-7000: Nonlinear Dynamical Systems 2. Linear tools and general considerations 2.1 Stationarity and sampling - In principle, the more a scientific measurement.
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Testing Testing. Basic procedure to “validate” calculations CASTEP.
Advanced methods of molecular dynamics 1.Monte Carlo methods 2.Free energy calculations 3.Ab initio molecular dynamics 4.Quantum molecular dynamics 5.Trajectory.
Rotation and vibration spectra. Rotational States Molecular spectroscopy: We can learn about molecules by studying how molecules absorb, emit, and scatter.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 15: Structural Calculations and Pressure CASTEP Developers’ Group.
6/11/2016Atomic Scale Simulation1 Definition of Simulation What is a simulation? –It has an internal state “S” In classical mechanics, the state = positions.
The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December : Linear response theory CASTEP Developers’ Group with support from.
Computational Physics (Lecture 11) PHY4061. Variation quantum Monte Carlo the approximate solution of the Hamiltonian Time Independent many-body Schrodinger’s.
Diffusion over potential barriers with colored noise
Dynamical correlations & transport coefficients
Overview of Molecular Dynamics Simulation Theory
Fundamentals of Molecular Dynamics Simulations
Maintaining Adiabaticity in Car-Parrinello Molecular Dynamics
The Nuts and Bolts of First-Principles Simulation
Molecular Dynamics.
Dynamical correlations & transport coefficients
Dynamical correlations & transport coefficients
Advanced Molecular Dynamics
Car Parrinello Molecular Dynamics
Presentation transcript:

The Nuts and Bolts of First-Principles Simulation Durham, 6th-13th December 2001 Lecture 18: First Look at Molecular Dynamics CASTEP Developers’ Group with support from the ESF  k Network

Nuts and Bolts 2001 Lecture 18: First look at MD 2 Overview of Lecture  Why bother?  What can you it tell you?  How does it work?  Practical tips  Future directions  Conclusions

Nuts and Bolts 2001 Lecture 18: First look at MD 3 Why Bother?  Atoms move!  Time dependant phenomena Ionic vibrations (phonons, IR spectra, etc) Diffusion, transport, etc.  Temperature dependant phenomena Equilibrium thermodynamic properties Catalysis and reactions Free energies Temperature driven phase transitions, melting, etc

Nuts and Bolts 2001 Lecture 18: First look at MD 4 Radiation damage in zircon T=600 KT=300 K

Nuts and Bolts 2001 Lecture 18: First look at MD 5 Na + diffusion in quartz

Nuts and Bolts 2001 Lecture 18: First look at MD 6 What Can It Tell You?  Ensemble Averages Temperature, pressure, density, configuration energy, enthalpy, structural correlations, time correlations, elastic properties, etc.  Correlation Functions Time dependent, e.g. velocity auto-correlation function C vv (t) Spatially dependent, e.g. radial distribution function g(r)  Fluctuations Energy fluctuations  C v, enthalpy fluctuations  C p, etc.  Distribution Functions E.g. velocity distribution function, energy distribution function, etc.

Nuts and Bolts 2001 Lecture 18: First look at MD 7 Velocity Auto-Correlation Function Gas Liquid Solid t C vv 1 0

Nuts and Bolts 2001 Lecture 18: First look at MD 8 Radial Distribution Function g(r) r/a Gas Liquid Solid

Nuts and Bolts 2001 Lecture 18: First look at MD 9 How Does It Work?  Classical dynamics of ions using ab initio forces derived from the electronic structure Integrate classical equation of motion Discretise time  time step Different integration algorithms Trade-off time step long-term stability vs. short-time accuracy  Ergodic Hypothesis MD trajectory samples phase space time average = ensemble average

Nuts and Bolts 2001 Lecture 18: First look at MD 10 Integration Algorithms (I)  Euler Simplest method but unstable to error propagation  Runge-Kutta Excellent stability but too many force evaluations and not symplectic (time reversible)  Predictor-Corrector Old CASTEP – not symplectic  unsuitable for MD  Verlet Position Verlet – not explicit velocities so using thermostats is not straightforward Velocity Verlet – current and new CASTEP

Nuts and Bolts 2001 Lecture 18: First look at MD 11 Integration Algorithms (II)  Multiple time / lengths scale algorithms Recent theoretical development Excellent results in special cases but hard to apply in general purpose code  Car-Parrinello Combines electron and ion MD Time step dominated by electrons not ions Cannot handle metals Iterative ab initio methods such as CASTEP require more effort to minimize the electrons but compensate by taking larger time steps based upon ions – even better with constraints …

Nuts and Bolts 2001 Lecture 18: First look at MD 12 Time Step  Should reflect physics not algorithm e.g. smallest phonon period/10 Effects the conservation properties of system and long-time stability Typically ~ femto-sec for ab initio calculations Limitation on time scale of observations – total run-length ~pico-sec routine, nano-sec exceptional  Use of constraints to increase time step Freeze motions that are not of interest

Nuts and Bolts 2001 Lecture 18: First look at MD 13 Types of MD  Micro-canonical= constant NVE Simplest MD - purely Newtonian dynamics  Canonical= constant NVT Closer to experiment but need to add a thermostat  Isobaric-Isothermal= constant NPT Closest to experimental conditions but need to add a barostat as well  Grand Canonical= constant  VT Cannot do with ab initio MD but has been used with MC

Nuts and Bolts 2001 Lecture 18: First look at MD 14 Micro-Canonical Ensemble  Suitable for investigating time dependent phenomena E.g. simple way to sample a single normal modes/ vibrational frequency of complex systems Set temperature=0 Tweak relevant bond Watch the system evolve

Nuts and Bolts 2001 Lecture 18: First look at MD 15

Nuts and Bolts 2001 Lecture 18: First look at MD 16 Canonical Ensemble  Ensemble of choice for investigating finite temperature phenomena E.g. diffusion Set appropriate temperature, let system evolve and monitor MSD E.g. vibrational spectra Set appropriate temperature, let system evolve and calculate Fourier transform of velocity auto- correlation function

Nuts and Bolts 2001 Lecture 18: First look at MD 17 Choice of Thermostat  Velocity rescaling Simple, but breaks the smooth evolution of the system and without theoretical foundation Not used in CASTEP  Nosé-Hoover Couples system to external heat bath using an auxiliary variable Deterministic evolution but not always ergodic  Langevin Based on fluctuation-dissipation theorem and coupling to an external heat bath Stochastic evolution but always ergodic

Nuts and Bolts 2001 Lecture 18: First look at MD 18 Nosé-Hoover Thermostat (I)  Extended Lagrangian and Hamiltonian  Modified equations of motion

Nuts and Bolts 2001 Lecture 18: First look at MD 19 Nosé-Hoover Thermostat (II)  Need to specify the thermostat ‘mass’ Q Choose Q so as to cause thermostat-system coupling frequency to resonate with characteristic frequency of system – tricky! New CASTEP – input coupling frequency instead and code then estimates appropriate Q

Nuts and Bolts 2001 Lecture 18: First look at MD 20

Nuts and Bolts 2001 Lecture 18: First look at MD 21 Langevin Thermostat (I)  Modified equation of motion  Fluctuation  Has proper statistical properties, e.g. thermal fluctuations of system obey

Nuts and Bolts 2001 Lecture 18: First look at MD 22 Langevin Thermostat (II)  Time-scale of thermal fluctuations depends on the Langevin damping time  L Need to choose s.t.  L is greater than the characteristic period  c of the system s.t. short- time dynamics is accurately reproduced  “Rule of 10s” Choose time step s.t.  c   t *10 Choose Langevin damping time s.t.  L   c *10 Choose run length s.t.  run   L *10

Nuts and Bolts 2001 Lecture 18: First look at MD 23

Nuts and Bolts 2001 Lecture 18: First look at MD 24 Influence of Electronic Minimizer  All-Bands Variational minimization  accurate forces Problems with metals  Density Mixing Non-variational minimization  need higher accuracy  to get same accuracy forces and need to correct forces  less accurate MD OK with metals  Ensemble DFT Variational minimization  accurate forces Great with metals

Nuts and Bolts 2001 Lecture 18: First look at MD 25 Wavefunction Extrapolation (I)  Advantages Generate better guess for  at new ionic configuration Less work for electronic minimizer  faster  Assumes can extrapolation  forwards in time in similar manner to ionic positions Can either do first or second order extrapolation Can either used fixed values for (  ) or those which minimize difference between MD and extrapolated coordinates

Nuts and Bolts 2001 Lecture 18: First look at MD 26 Wavefunction Extrapolation (II) t x  00 ++

Nuts and Bolts 2001 Lecture 18: First look at MD 27 Wavefunction Extrapolation (III)  All bands / Ensemble DFT Extrapolate  only  Density-Mixing Must extrapolate  and  independently else Residual = 0 and not ground state! Decompose  into atomic and non-atomic contributions Move the atomic charges onto the new ionic coordinate Extrapolate the non-atomic part only

Nuts and Bolts 2001 Lecture 18: First look at MD 28

Nuts and Bolts 2001 Lecture 18: First look at MD 29 Practical Tips (I)  Equilibration Sensitivity of system to initial conditions Depends on quantity of interest E.g. if after equilibrium average, then must allow system to evolve to equilibrium before start data collection Auto-correlation functions give useful information on the “memory” of the system to the quantity of interest.

Nuts and Bolts 2001 Lecture 18: First look at MD 30 equilibration production

Nuts and Bolts 2001 Lecture 18: First look at MD 31 Practical Tips (II)  Sampling It is very easy to over-sample the data and consequently under-estimate the variance Successive configurations are highly correlated - not independent data points Need to determine optimal sampling frequency of the quantity of interest ‘A’ and either save data at appropriate intervals or adjust error bars  need to analyse variance in blocks of size  b

Nuts and Bolts 2001 Lecture 18: First look at MD 32 Practical Tips (III)

Nuts and Bolts 2001 Lecture 18: First look at MD 33 Future Directions  Isothermal-Isobaric Ensemble Variable cell MD Allow cell size and shape to evolve under internal stress and external pressure Closest to experimental conditions Important for generic phase transitions

Nuts and Bolts 2001 Lecture 18: First look at MD 34 Conclusions  Two ensembles can be simulated in CASTEP using Velocity Verlet integration Large time step, excellent long term energy conservation and stability  Micro-Canonical (NVE)  Canonical (NVT) Nosé-Hoover thermostat – deterministic Langevin thermostat – stochastic  Can be used to study many phenomena - see later talks for example applications!