1 CE 530 Molecular Simulation Lecture 18 Free-energy calculations David A. Kofke Department of Chemical Engineering SUNY Buffalo

Slides:



Advertisements
Similar presentations
Monte Carlo Methods and Statistical Physics
Advertisements

For a closed system consists of n moles, eq. (1.14) becomes: (2.1) This equation may be applied to a single-phase fluid in a closed system wherein no.
1 CE 530 Molecular Simulation Lecture 8 Markov Processes David A. Kofke Department of Chemical Engineering SUNY Buffalo
Statistical Models of Solvation Eva Zurek Chemistry Final Presentation.
The Calculation of Enthalpy and Entropy Differences??? (Housekeeping Details for the Calculation of Free Energy Differences) first edition: p
1 Lecture 3 Entropy in statistical mechanics. Thermodynamic contacts: i.mechanical contact, ii.heat contact, iii.diffusion contact. Equilibrium. Chemical.
Lecture 3 The Debye theory. Gases and polar molecules in non-polar solvent. The reaction field of a non-polarizable point dipole The internal and the direction.
Statistical Mechanics
Evaluating Hypotheses
Monte Carlo Simulation of Ising Model and Phase Transition Studies
1 CE 530 Molecular Simulation Lecture 16 Dielectrics and Reaction Field Method David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 CE 530 Molecular Simulation Lecture 2 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 CE 530 Molecular Simulation Lecture 3 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
Simulation of Random Walk How do we investigate this numerically? Choose the step length to be a=1 Use a computer to generate random numbers r i uniformly.
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:
Ch 23 pages Lecture 15 – Molecular interactions.
Introduction to (Statistical) Thermodynamics
1 Physical Chemistry III Molecular Simulations Piti Treesukol Chemistry Department Faculty of Liberal Arts and Science Kasetsart University :
Free energies and phase transitions. Condition for phase coexistence in a one-component system:
1 CE 530 Molecular Simulation Lecture 17 Beyond Atoms: Simulating Molecules David A. Kofke Department of Chemical Engineering SUNY Buffalo
Lecture 19: Free Energies in Modern Computational Statistical Thermodynamics: WHAM and Related Methods Dr. Ronald M. Levy Statistical.
1 CE 530 Molecular Simulation Lecture 15 Long-range forces and Ewald sum David A. Kofke Department of Chemical Engineering SUNY Buffalo
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points.
1 CE 530 Molecular Simulation Lecture 6 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Lesson 8: Basic Monte Carlo integration We begin the 2 nd phase of our course: Study of general mathematics of MC We begin the 2 nd phase of our course:
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.
Ensembles II: 1.The Gibbs Ensemble (Chap. 8) Bianca M. Mladek University of Vienna, Austria
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 14 Some materials adapted from Prof. Keith E. Gubbins:
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-
1 CE 530 Molecular Simulation Lecture 22 Chain-Molecule Sampling Techniques David A. Kofke Department of Chemical Engineering SUNY Buffalo
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
1 M.Sc. Project of Hanif Bayat Movahed The Phase Transitions of Semiflexible Hard Sphere Chain Liquids Supervisor: Prof. Don Sullivan.
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 25 Some materials adapted from Prof. Keith E. Gubbins:
Partial Molar Quantities and the Chemical Potential Lecture 6.
 We just discussed statistical mechanical principles which allow us to calculate the properties of a complex macroscopic system from its microscopic characteristics.
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Mean, Variance, Moments and.
Molecular Modelling - Lecture 2 Techniques for Conformational Sampling Uses CHARMM force field Written in C++
Path Integral Quantum Monte Carlo Consider a harmonic oscillator potential a classical particle moves back and forth periodically in such a potential x(t)=
Monte Carlo method: Basic ideas. deterministic vs. stochastic In deterministic models, the output of the model is fully determined by the parameter values.
Interacting Molecules in a Dense Fluid
An Introduction to Monte Carlo Methods in Statistical Physics Kristen A. Fichthorn The Pennsylvania State University University Park, PA
Monte Carlo in different ensembles Chapter 5
The Boltzmann Distribution allows Calculation of Molecular Speeds Mathematically the Boltzmann Distribution says that the probability of being in a particular.
Lecture 9: Theory of Non-Covalent Binding Equilibria Dr. Ronald M. Levy Statistical Thermodynamics.
Generalized van der Waals Partition Function
Monatomic Crystals.
Physics with Calculus by David V. Anderson & Peter Tarsi assisted by students Carolyn McCrosson & Andrew Trott Lecturette 149: The Maxwellian Speed Distribution.
Second virial coefficient
Kinetic Theory of Gases
Theory of dilute electrolyte solutions and ionized gases
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 19 Some materials adapted from Prof. Keith E. Gubbins:
1 CE 530 Molecular Simulation Lecture 21 Histogram Reweighting Methods David A. Kofke Department of Chemical Engineering SUNY Buffalo
Statistical Mechanics and Multi-Scale Simulation Methods ChBE
Basic Monte Carlo (chapter 3) Algorithm Detailed Balance Other points non-Boltzmann sampling.
Lecture 14: Advanced Conformational Sampling Dr. Ronald M. Levy Statistical Thermodynamics.
Physical Behavior of Matter Review. Matter is classified as a substance or a mixture of substances.
Computational Physics (Lecture 11) PHY4061. Variation quantum Monte Carlo the approximate solution of the Hamiltonian Time Independent many-body Schrodinger’s.
CHEE 323J.S. Parent1 Reaction Kinetics and Thermodynamics We define a catalyst as a substance that increases the rate of approach to equilibrium of a reaction.
So that k k E 5 = - E 2 = = x J = x J Therefore = E 5 - E 2 = x J Now so 631.
On the understanding of self-assembly of anisotropic colloidal particles using computer simulation methods Nikoletta Pakalidou1✣ and Carlos Avendaño1 1.
Monte Carlo methods 10/20/11.
On the understanding of self-assembly of anisotropic colloidal particles using computer simulation methods Nikoletta Pakalidou1✣ and Carlos Avendaño1 1.
8/7/2018 Statistical Thermodynamics
Remedial Kinetics and Mechanism
CE 530 Molecular Simulation
Presentation transcript:

1 CE 530 Molecular Simulation Lecture 18 Free-energy calculations David A. Kofke Department of Chemical Engineering SUNY Buffalo

2 Free-Energy Calculations  Uses of free energy Phase equilibria Reaction equilibria Solvation Stability Kinetics  Calculation methods Free-energy perturbation Thermodynamic integration Parameter-hopping Histogram interpolation

3 Ensemble Averages  Simple ensemble averages are of the form  To evaluate: sample points in phase space with probability  (  ) at each point, evaluate M(  ) simple average of all values gives  Previous example mean square distance from origin in region R sample only points in R, average r 2  Principle applies to both MD and MC 

4 Ensemble Volumes  Entropy and free energy relate to the size of the ensemble e.g., S = k ln  (E,V,N)  No effective way to measure the size of the ensemble no phase-space function that gives size of R while sampling only R imagine being place repeatedly at random points on an island what could you measure at each point to determine the size of the island?  Volume of ensemble is numerically unwieldy e.g. for 100 hard spheres  = 0.1,  = 5   = 0.5,  = 3  10 7  = 0.9,  = 5   Shape of important region is very complex cannot apply methods that exploit some simple geometric picture  = number of states of given E,V,N 

5 Reference Systems  All free-energy methods are based on calculation of free- energy differences  Example volume of R can be measured as a fraction of the total volume sample the reference system keep an average of the fraction of time occupying target system what we get is the difference  Usefulness of free-energy difference it may be the quantity of interest anyway if reference is simple, its absolute free energy can be evaluated analytically e.g., ideal gas, harmonic crystal 

6  Chemical potential is an entropy difference  For hard spheres, the energy is zero or infinity any change in N that does not cause overlap will be change at constant U  To get entropy difference simulate a system of N+1 spheres, one non-interacting “ghost” occasionally see if the ghost sphere overlaps another record the fraction of the time it does not overlap  Here is an applet demonstrating this calculation Here is N+1 N Hard Sphere Chemical Potential

7 Free-Energy Perturbation  Widom method is an example of a free-energy perturbation (FEP) technique  FEP gives free-energy difference between two systems labeled 0, 1  Working equation  0 1 Free-energy difference is a ratio of partition functions

8 Free-Energy Perturbation  Widom method is an example of a free-energy perturbation (FEP) technique  FEP gives free-energy difference between two systems labeled 0, 1  Working equation  0 1 Add and subtract reference-system energy

9 Free-Energy Perturbation  Widom method is an example of a free-energy perturbation (FEP) technique  FEP gives free-energy difference between two systems labeled 0, 1  Working equation  0 1 Identify reference- system probability distribution

10 Free-Energy Perturbation  Widom method is an example of a free-energy perturbation (FEP) technique  FEP gives free-energy difference between two systems labeled 0, 1  Working equation  Sample the region important to 0 system, measure properties of 1 system  0 1 Write as reference- system ensemble average

11 Chemical potential  For chemical potential, U 1 - U 0 is the energy of turning on the ghost particle call this u t, the “test-particle” energy test-particle position may be selected at random in simulation volume for hard spheres, e -  u t is 0 for overlap, 1 otherwise then (as before) average is the fraction of configurations with no overlap  This is known as Widom’s insertion method

12 Widom’s Method. API

13 Widom’s Method. Java Code public class MeterWidomInsertion extends Meter /** * Performs insertion average used in chemical-potential calculation */ public double currentValue() { double sum = 0.0; //zero sum for insertion average phase.addMolecule(molecule,speciesAgent); //place molecule in phase for(int i=nInsert; i>0; i--) { //perform nInsert insertions molecule.translateTo(phase.randomPosition()); //select random position double u = phase.potentialEnergy.currentValue(molecule); //compute energy if(u < Double.MAX_VALUE) //add to test-particle average sum += Math.exp(-u/(phase.integrator().temperature())); } phase.deleteMolecule(molecule); //remove molecule from phase if(!residual) sum *= speciesAgent.moleculeCount/phase.volume(); //multiply by Ni/V return sum/(double)nInsert; //return average } //Method to identify species for chemical-potential calculation by this meter //Normally called only once in a simulation public void setSpecies(Species s) { species = s; molecule = species.getMolecule(); if(phase != null) speciesAgent = species.getAgent(phase); }

14 Deletion Method  The FEP formula may be used also with the roles of the reference and target system reversed sample the 1 system, evaluate properties of 0 system  Consider application to hard spheres e -  u t is infinity for overlap, 0 otherwise but overlaps are never sampled true average is product of 0   technically, formula is correct in practice simulation average is always zero method is flawed in application many times the flaw with deletion is not as obvious as this  0 1 Original: 0  1Modified: 1  0

15 Other Types of Perturbation  Many types of free-energy differences can be computed  Thermodynamic state temperature, density, mixture composition  Hamiltonian for a single molecule or for entire system e.g., evaluate free energy difference for hard spheres with and without electrostatic dipole moment  Configuration distance/orientation between two solutes e.g, protein and ligand  Order parameter identifying phases order parameter is a quantity that can be used to identify the thermodynamic phase a system is in e.g, crystal structure, orientational order, magnetization

16 General Numerical Problems  Sampling problems limit range of FEP calculations  Target system configurations must be encountered when sampling reference system  Two types of problem arise first situation is more common although deletion FEP provides an avoidable example of the latter  0 1 target-system space very small  0 1 target system outside of reference

17 Staging Methods  Multistage FEP can be used to remedy the sampling problem define a potential U w intermediate between 0 and 1 systems evaluate total free-energy difference as  Each stage may be sampled in either direction yielding four staging schemes choose to avoid deletion calculation  0 1 W Use staged insertionUse umbrella sampling  0 1 W  0 1 Use Bennett’s method W

18 Example of Staging Method  Hard-sphere chemical potential  Use small-diameter sphere as intermediate In first stage, measure fraction of time random insertion of small sphere finds no overlap In second stage, small sphere moves around with others. Measure fraction of time no overlap is found when it is grown to full-size sphere 

19 Multiple Stages  0 1 W1W1 W2W2 W3W3  0 1 W1W1 W2W2 W3W3  0 1 W1W1 W3W3 W2W2 Multistage insertionMultistage umbrella samplingMultistage Bennett’s method

20 Non-Boltzmann Sampling  The FEP methods are an instance of a more general technique that aims to improve sampling  Unlike biasing methods, improvement entails a change in the limiting distribution  Apply a formula to recover the correct average  W 0 0

21 Thermodynamic Integration 1.  Thermodynamics gives formulas for variation of free energy with state  These can be integrated to obtain a free-energy difference derivatives can be measured as normal ensemble averages this is usually how free energies are “measured” experimentally

22 Thermodynamic Integration 2.  TI can be extended to follow uncommon (or unphysical) integration paths much like FEP, can be applied for any type of free-energy change  Formalism let be a parameter describing the path the potential energy is a function of ensemble formula for the derivative then

23 Thermodynamic Integration Example  The soft-sphere pair potential is given by  Softness and range varies with n large n limit leads to hard spheres small n leads to Coulombic behavior  Thermodynamic integration can be used to measure free energy as a function of softness s = 1/n Integrand is Exhibits simplifying behavior because  n is the only potential parameter

24 Parameter Hopping. Theory  View free-energy parameter as another dimension in phase space  Partition function  Monte Carlo trials include changes in  Probability that system has  0 or = 1 

25 Parameter Hopping. Implementation  Monte Carlo simulation in which -change trials are attempted  Accept trials as usual, with probability min[1,e -  U ]  Record fractions f 0, f 1 of configurations spent in  0 and = 1  Free energy is given by ratio  In practice, system may spend almost no time in one of the values Can apply weighting function w( ) to encourage it to sample both Accept trials with probability min[1,(w n /w o ) e -  U ] Free energy is Good choice for w has f 1 = f 0  Multivalue extension is particularly effective takes on a continuum of values

26 Summary  Free energy calculations are needed to model the most interesting physical behaviors All useful methods are based on computing free-energy difference  Four general approaches Free-energy perturbation Thermodynamic integration Parameter hopping Distribution-function methods  FEP is asymmetric Deletion method is awful  Four approaches to basic multistaging Umbrella sampling, Bennett’s method, staged insertion/deletion  Non-Boltzmann methods improve sampling