Statistical Mechanics and Multi-Scale Simulation Methods ChBE

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
PRAGMA – 9 V.S.S.Sastry School of Physics University of Hyderabad 22 nd October, 2005.
Simulazione di Biomolecole: metodi e applicazioni giorgio colombo
Statistical mechanics
Molecular dynamics in different ensembles
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.
Transfer FAS UAS SAINT-PETERSBURG STATE UNIVERSITY COMPUTATIONAL PHYSICS Introduction Physical basis Molecular dynamics Temperature and thermostat Numerical.
Lecture 13: Conformational Sampling: MC and MD Dr. Ronald M. Levy Contributions from Mike Andrec and Daniel Weinstock Statistical Thermodynamics.
© copyright 2013-William A. Goddard III, all rights reservedCh120a-Goddard-L06 Ch121a Atomic Level Simulations of Materials and Molecules William A. Goddard.
LINCS: A Linear Constraint Solver for Molecular Simulations Berk Hess, Hemk Bekker, Herman J.C.Berendsen, Johannes G.E.M.Fraaije Journal of Computational.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Lagrangian and Hamiltonian Dynamics
1 MECH 221 FLUID MECHANICS (Fall 06/07) Tutorial 6 FLUID KINETMATICS.
Symmetry. Phase Continuity Phase density is conserved by Liouville’s theorem.  Distribution function D  Points as ensemble members Consider as a fluid.
UNC Chapel Hill S. Redon - M. C. Lin Rigid body dynamics II Solving the dynamics problems.
Mechanics.
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.
Chapter 16 Integration of Ordinary Differential Equations.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
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
1 Physical Chemistry III Molecular Simulations Piti Treesukol Chemistry Department Faculty of Liberal Arts and Science Kasetsart University :
Room 2032 China Canada Winnipeg Manitoba.
Erin Catto Blizzard Entertainment Numerical Integration.
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.
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Smoothed Particle Hydrodynamics (SPH) Fluid dynamics The fluid is represented by a particle system Some particle properties are determined by taking an.
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.
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
1 CE 530 Molecular Simulation Lecture 11 Molecular Dynamics Simulation David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 14 Some materials adapted from Prof. Keith E. Gubbins:
Dissipative Particle Dynamics. Molecular Dynamics, why slow? MD solves Newton’s equations of motion for atoms/molecules: Why MD is slow?
Molecular Dynamics Simulations. Objective : To understand the properties of materials Question : How to accomplish the goal? Answer : Positions and momentums.
Final review Help sessions scheduled for Dec. 8 and 9, 6:30 pm in MPHY 213 Your hand-written notes allowed No numbers, unless you want a problem with numbers.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
Ch. 8: Hamilton Equations of Motion Sect. 8.1: Legendre Transformations Lagrange Eqtns of motion: n degrees of freedom (d/dt)[(∂L/∂q i )] - (∂L/∂q i )
Advanced Molecular Dynamics Velocity scaling Andersen Thermostat Hamiltonian & Lagrangian Appendix A Nose-Hoover thermostat.
9/24/2014PHY 711 Fall Lecture 131 PHY 711 Classical Mechanics and Mathematical Methods 10-10:50 AM MWF Olin 103 Plan for Lecture 13: Finish reading.
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++
ChE 452 Lecture 25 Non-linear Collisions 1. Background: Collision Theory Key equation Method Use molecular dynamics to simulate the collisions Integrate.
1 CE 530 Molecular Simulation Lecture 12 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Molecular dynamics (1) Principles and algorithms.
Interacting Molecules in a Dense Fluid
Schrödinger’s Equation in a Central Potential Field
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 17 Some materials adapted from Prof. Keith E. Gubbins:
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
Canonical Equations of Motion -- Hamiltonian Dynamics
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
1 Lecture 24: Controlling the Uncontrollable Building the Unbuildable How do we deal with this uncontrollable system? Can we extend the method of Zs to.
Monday, Jan. 31, 2005PHYS 3446, Spring 2005 Jae Yu 1 PHYS 3446 – Lecture #4 Monday, Jan. 31, 2005 Dr. Jae Yu 1.Lab Frame and Center of Mass Frame 2.Relativistic.
A Review of Some Newtonian Mechanics Gernot Laicher REFUGES Summer Bridge Course 2014.
Chapter 6: Basic Methods & Results of Statistical Mechanics
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.
1 LES of Turbulent Flows: Lecture 7 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Classical Mechanics Lagrangian Mechanics.
Overview of Molecular Dynamics Simulation Theory
A rotating hairy BH in AdS_3
Fundamentals of Molecular Dynamics Simulations
Advanced Molecular Dynamics
Physics 319 Classical Mechanics
Physics 451/551 Theoretical Mechanics
Presentation transcript:

Statistical Mechanics and Multi-Scale Simulation Methods ChBE 591-009 Prof. C. Heath Turner Lecture 15 Some materials adapted from Prof. Keith E. Gubbins: http://gubbins.ncsu.edu Some materials adapted from Prof. David Kofke: http://www.cbe.buffalo.edu/kofke.htm

Review and Preview MD of hard disks Monte Carlo MD of soft matter intuitive collision detection and impulsive dynamics Monte Carlo convenient sampling of ensembles no dynamics biasing possible to improve performance MD of soft matter equations of motion integration schemes evaluation of dynamical properties extensions to other ensembles focus on atomic systems for now (deal with molecules later)

Classical Equations of Motion Several formulations are in use (see other slides on website) Newtonian Lagrangian Hamiltonian Advantages of non-Newtonian formulations more general, no need for “fictitious” forces better suited for multiparticle systems better handling of constraints can be formulated from more basic postulates Assume conservative forces Gradient of a scalar potential energy

Newtonian Formulation Cartesian spatial coordinates ri = (xi,yi,zi) are primary variables for N atoms, system of N 2nd-order differential equations Sample application: 2D motion in central force field Polar coordinates are more natural and convenient r constant angular momentum fictitious (centrifugal) force

Phase Space (again) Return to the complete picture of phase space full specification of microstate of the system is given by the values of all positions and all momenta of all atoms G = (pN,rN) view positions and momenta as completely independent coordinates connection between them comes only through equation of motion Motion through phase space helpful to think of dynamics as “simple” movement through the high-dimensional phase space facilitate connection to quantum mechanics basis for theoretical treatments of dynamics understanding of integrators G

Integration Algorithms Equations of motion in cartesian coordinates Desirable features of an integrator minimal need to compute forces (a very expensive calculation) good stability for large time steps good accuracy conserves energy and momentum time-reversible area-preserving (symplectic) 2-dimensional space (for example) pairwise additive forces F More on these later

Verlet Algorithm 1. Equations Very simple, very good, very popular algorithm Consider expansion of coordinate forward and backward in time Add these together Rearrange update without ever consulting velocities!

Verlet Algorithm 2. Flow diagram One MD Cycle Configuration r(t) Previous configuration r(t-dt) Entire Simulation Initialization One force evaluation per time step Compute forces F(t) on all atoms using r(t) Reset block sums New configuration Advance all positions according to r(t+dt) = 2r(t)-r(t-dt)+F(t)/m dt2 1 move per cycle Add to block sum cycles per block Compute block average Add to block sum blocks per simulation Compute final results No End of block? Yes Block averages

Verlet Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute new position from present and previous positions, and present force Schematic from Allen & Tildesley, Computer Simulation of Liquids

Forces 1. Formalism x12 1 Force is the gradient of the potential y12 Force on 1, due to 2

Forces 2. LJ Model x12 1 Force is the gradient of the potential y12 e.g., Lennard-Jones model

Verlet Algorithm. 4. Loose Ends Initialization how to get position at “previous time step” when starting out? simple approximation Obtaining the velocities not evaluated during normal course of algorithm needed to compute some properties, e.g. temperature diffusion constant finite difference

Verlet Algorithm 5. Performance Issues Time reversible forward time step replace dt with -dt same algorithm, with same positions and forces, moves system backward in time Numerical imprecision of adding large/small numbers O(dt1) O(dt1) O(dt0) O(dt0) O(dt2)

Initial Velocities (from Lecture 3) Random direction randomize each component independently randomize direction by choosing point on spherical surface Magnitude consistent with desired temperature. Choices: Maxwell-Boltzmann: Uniform over (-1/2,+1/2), then scale so that Constant at Same for y, z components Be sure to shift so center-of-mass momentum is zero

Leapfrog Algorithm Eliminates addition of small numbers O(dt2) to differences in large ones O(dt0) Algorithm Mathematically equivalent to Verlet algorithm r(t) as evaluated from previous time step

Leapfrog Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute velocity at next half-step Schematic from Allen & Tildesley, Computer Simulation of Liquids

Leapfrog Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute next position Schematic from Allen & Tildesley, Computer Simulation of Liquids

Leapfrog Algorithm. 3. Loose Ends Initialization how to get velocity at “previous time step” when starting out? simple approximation Obtaining the velocities interpolate

Velocity Verlet Algorithm Roundoff advantage of leapfrog, but better treatment of velocities Algorithm Implemented in stages evaluate current force compute r at new time add current-force term to velocity (gives v at half-time step) compute new force add new-force term to velocity Also mathematically equivalent to Verlet algorithm (in giving values of r)

Velocity Verlet Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute new position Schematic from Allen & Tildesley, Computer Simulation of Liquids

Velocity Verlet Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute velocity at half step Schematic from Allen & Tildesley, Computer Simulation of Liquids

Velocity Verlet Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute force at new position Schematic from Allen & Tildesley, Computer Simulation of Liquids

Velocity Verlet Algorithm 2. Flow Diagram t-dt t t+dt r v F Compute velocity at full step Schematic from Allen & Tildesley, Computer Simulation of Liquids

Other Algorithms Predictor-Corrector Beeman Velocity-corrected Verlet not time reversible easier to apply in some instances constraints rigid rotations Beeman better treatment of velocities Velocity-corrected Verlet

Summary Several formulations of mechanics Integration algorithms Hamiltonian preferred independence of choice of coordinates emphasis on phase space Integration algorithms Calculation of forces Simple Verlet algorithsm Verlet Leapfrog Velocity Verlet Next up: Calculation of dynamical properties