SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
Bios 203



             BIOS 203:

            Free Energy
             Methods

           Tom Markland

                          1
Motivation
   Lots of interesting properties require
   knowledge of free energies:
   •   Phase diagrams/coexistence.
   •   Drug binding affinities.
   •   Rates of reactions.
   •   Equilibrium constants.
   •   Solvation properties.
   •   Acid-base equilibria.
   •   Isotope effects.




                                            2
Statistical Mechanics
 Recap
 Partition function in classical mechanics,




                                                      Momentum part      Position part
 Position and momentum integrals are separable,




                                                                           Today we will
  Yielding the configuration integral,                                     primarily deal with
                                                                           this.
 Observables obtained performing trajectories which sample points in the ensemble and averaging
 the observables over them (assuming ergodic hypothesis),



                                              If observable depends
Expectation value of observable O             only on position.
                                                                                                 3
Simulations
Basic simulation scheme

                          Get energy/forces
  Initial Structure         Pair/Empirical
    From known                 Ab initio
 crystal structure or
    starting from
      lattice and
    equilibrating.

                           Evolve system:         Repeat until
                             Monte Carlo          average of
                          Molecular Dynamics      observables are
                                                  converged.




                          Calculate observables
                             energy, pressure,
                               structure etc.


                                                              4
Free energy from statistical mechanics
 How to obtain free energy?




    For simplicity everything will be presented in terms of Helmholtz energy A (i.e. working in
    the NVT ensemble) but extension to Gibbs (NPT) is straightforward.


    • Not good news: to get an absolute free energy of a system we need to know the
      entire partition function i.e. to count all the states for a given N,V,T!

     In practice calculating the partition function is impossible for a system of
      more than a few degree of freedom (with the exception of special cases).


  • However, calculating differences in free energies is possible.




                                                                                                  5
Free Energy Perturbation




  • The above expression is not in a nice form to extract from a simulation.




                    Rearrange                                     Inserting 1



  Now take ratio,
                                                               Of the form:




                                                           Free energy perturbation (FEP)
                                                           (Zwanzig 1954)


                                                                                            6
Free Energy Perturbation



What does this translate to?

• Do a simulation of system 0.

• During the simulation accumulate the average:


• At the end take the natural logarithm of the observable
  and multiply by –kBT and you obtain the free energy
  difference between system 1 and 2.
 Example:

 I want to develop a new drug that binds into an active site more strongly
 than my current drug.
 Can I do this by replacing a Hydrogen by a Methyl Group?
  Potential V0 is force field with H and V1 is that with Me. Hence can use
 FEP to calculate the difference in free energy of binding.

                                                                              7
Free Energy Perturbation
 Unfortunately FEP is not perfect
    • Suppose the two potentials (V0 and V1) are very different.
    • Consider in 1D two systems with different potentials:
                                                                       Remember in FEP we do a
     V(x)                                                              simulation in potential V0
 Potential                                                             and accumulate the average
                     V0                                                of
                                                                 V1



                                                                                      x
      P(x)
Probability




                                                                                          x

 In this region                                In this region
 is small but potential V0 samples it a lot.   is big but potential V0 samples it very little.

                                                                                                 8
Free Energy Perturbation
     V(x)          V0                                           V1
 Potential


      P(x)                                                                        x

Probability


So what happens when we do a simulation?                                              x
Do a simulation in potential V1 and accumulate the average of
 Massive jumps in expectation value correspond to the rare events of entering a region where
 potential V2-V1 is small giving rise to a massive contribution to




                                                                     Simulation time/ MC steps
 FEP fails when the difference potential              shows a
 large standard deviation compared to      .

                                                                                                 9
Free Energy Perturbation
  How to avoid this problem?
                                                                                0
   • Good news: free energies are state functions.
               i.e. they only depend on the current state of
               the system and not how the system acquired                           1
               that state.
   • This allows us to take any path between the two states
     we are interested in whether or not the intermediates
     represent anything “real”.
  Hence we can break the journey from transforming from potential V0 to V2 by splitting it
  into M sections:
                   V0                                              V1       Here M=5
                                   V0.2         V0.4   V0.6   V0.8
  We can then calculate the free energy change for each section and add them together to generate
  the total free energy change on going from 1 to 2:




Analysis: Proc. Roy. Soc. A 468, 2-17 (2012).                                                   10
Free energy from statistical mechanics
 General expression for making M steps between start and end-point




 How does one pick intermediate potentials (V0.2, V0.4 etc.)?

    • In principles could pick anything.
    • However, if intermediates are widely spaced or take a long path between the two end
      potentials then evaluation will be inefficient.
    • Hence a wise choice might be a linear interpolation between V0 and V1.

                                                                           When λ=1 all potential
                                                  V0.5                     1 and when λ=0 all
       V(x)            V0                                          V1      potential 0. In between
   Potential                                                               a mixture of them.

                                                                                       x

               Inserting a middle state which has overlap with both V0 and V1 allows
               for much more efficient estimates of the free energy difference.

                                                                                                 11
Thermodynamic Integration
 Another approach is to use thermodynamic integration
  As before we want to calculate the free energy change between two potentials V0 and V1.

 Define a potential:

           Where f(λ) and g(λ) switch between the potentials V0 and V1 and satisfy:
           • f(0)=1, f(1)=0, g(0)=0 and g(1)=1

 Note: Although f(λ) = (1- λ) and g(λ) = λ are a valid choice one can pick other forms that
 satisfy the above constraint.

  • The free energy is now a function of the phase point (N,V,T) and the parameter λ



 • Taking derivative of A w.r.t. λ yields:




                                                                                              12
Thermodynamic Integration

 What is             ?




 Combining gives              β cancels kBT




 Recognize this is of form:
                                              Relates change
                                              in potential
                                              with change in
                                              free energy.

                                                               13
Thermodynamic Integration
                                           Integrate




                                                                   Thermodynamic integration:
                                                                        Kirkwood (1935)
  If we choose:




  Implementation
  • Perform a series of simulations at different values of λ to get the gradients:
  • Perform the integral of the gradients by midpoint rule or other numerical
    integration schemes.
  More advanced techniques (beyond this course): Adiabatic free energy dynamics
  • Allow λ to evolve continuously in the simulation by including it as an additional coordinate
    which is dynamically, As long as this coordinate moves much slower than the system relaxes
    (adiabatic separation) one can obtain the free energy from one simulation.
Adiabatic free energy dynamics: J. Chem. Phys., 116, 4389 (2002)                                   14
Free energy along collective variables
 •     In many cases in chemistry one is interested in the probability of finding a particle at some particular
       point along a single coordinate of the system called a collective variable, R(r).
 •     The collective variable can be defined as a general function of any of the positions in the system r.
 •     For example in transition state theory a key input is knowing the probability of reaching the top of the
       barrier along the “reaction coordinate”.
                                                 Energy
 •     Although we will refer to R(r) as a
       collective variable (CV) it can also be
       called an order parameter or reaction
       coordinate.
                                                                                                 Collective variable

     Example: to calculate a transition
     stat theory prediction of the rate of
     hydrogen diffusion through ice one
     can compute the free energy
     associated with moving the H
     between the 6 O’s defining ice’s
     hexagonal lattice.




                                                                                                                  15
Free energy along collective variables

 Probability of obtaining a given configuration:




 Consider a system where one coordinate R (which can be a complex function of all coordinates
 in the system i.e. R(r)) is constrained to hold a particular value R* but all other coordinates are
 distributed according to Boltzmann,




  It follows the probability distribution along the coordinate is given by,




                                                                                                   16
Free energy along collective variables
                                                                                 Constrained
                                                                                 partition function.

Recall,                              and hence


                                                                                 Potential of
                                                                                 mean force

 In practice we are (like before) more interested in differences in free energy in going from one
 position along the coordinate R to another e.g. R0 to R1.




  Really useful equation: allows one to convert a histogram of probabilities along a particular
  coordinate to the free energy change associated with moving along that coordinate.

Figure: Ann. Rep. in Comput. Chem. 6, 280–296 (2010)                                                17
Free energy along collective variables
    Example 1:
    Radial distribution gives probability of being found a given distance away from a
    particle at the center.
                                                             Can convert probability
         Using:                                              to a free energy change
                                                             as a function of particle
                                                             separation.
                                          g(R)
                                          A(R)
                                          V(R)
                                                     Note: The free energy as a function of
                                                     particle separation, A(R) is not the
Energy




                                                     same as pair potential, V(R) unless
                                                     only two particles are present.




                            R

                                                                                              18
Free energy along collective variables
 Example 2:

 Can also extend to more constrained dimensions e.g. the Ramachandran plot of
 alanine dipeptide shows the free energy as a function of two torsions angles of the
 molecule.



  Red regions are
  low free energy,
  blue is high free
  energy.




 In both this and the previous case the problem is sufficiently simple that one can run
 for long enough to see point in all regions of interest  suppose there is a high barrier?

                                                                                        19
Free energy along order parameters
  Methods of obtaining free energy when high barriers are present
                                                                                        Umbrella
  Umbrella sampling                                         Energy
                                                                                        potential
  • Add an additional force to the potential to keep
    the system close to a particular value of the CV,
    R* e.g. a harmonic force.


                                                                               R*         R = Collective
  • The biased simulation can then be converted                                           variable
    into an unbiased probability by using techniques
    such as WHAM1 or umbrella integration2.              1.) Kumar et. al. J. Comp. Chem. 13, 1011 (1992)
                                                         2.) Kästner and Thiel, J. Chem. Phys. 123, 144104
   Hard constraints                                      (2005)

  • One can also use hard constraints to perform molecular dynamics
    with the collective variable held at one position.              Caveat: Can also get an
                                                                               additional term due to the
  • The free energy is then obtained by integrating the average force in       Jacobian of the change into
    the direction of the collective variable.                                  generalized coordinates
  • This gives rise to the name “Potential of mean force” for              .   (depends on form of R).


Umbrella sampling: Torrie and Valleau, J. Comput. Phys. 2 187-199 (1977)                              20
Metadynamics
  A more recent approach to obtaining the free energy along an order parameter is
  metadynamics.

  Basic idea
  • Each time a position along the order parameter is visited place down a Gaussian to “fill up”
     the potential.
  • The Gaussians placed bias against revisiting the same region over and over.
  • At the end of the simulation the probability density can be obtained simply by looking at
     the density of the Gaussians placed at each position along the collective variable.
                       Place Gaussians on places
                       previously visited                        Note: to obtain the free energy
  Energy                                                         accurately the rate at which the
                                                                 Gaussians are dropped must be
                                                                 slow compared to the rate at which
                                                                 the other coordinates move.

                                           Collective variable
     Video by Giovanni Bussi showing metadynamics in action:
     https://www.youtube.com/watch?feature=player_embedded&v=IzEBpQ0c8TA

Metadynamics: Laio and Parrinello PNAS 99 (20): 12562–12566 (2002)                                21
Phase coexistence
 • Suppose we know a coexistence point of two phases.
                                                                                       TIP4P/05


                                                                                                                     Model



                                                                                                                         Experiment
 • Can we trace the rest of the phase diagram from one
   coexistence point?
          Yes, by Gibbs-Duhem integration                                              TIP3P
 • Integrate the Clapeyron equation numerically:
                                                                                                                         Model




   Run NPT simulations of each phase at the
                                                                 Freezes to Ice II.
   current point and calculate difference in                     Hexagonal ice                                       Experiment
   enthalpy and volume. Use that to obtain                       only stable at
   new coexistence point and repeat.                             negative pressure!


Gibbs-Duhem: Kofke Mol. Phys. 78, 6 1331 (1993) Phase Diagrams: C. Vega et. al., Faraday Discuss., 141, 251-276 (2009)            22
Summary




                 Thanks for listening.

 Books:

   D. Frenkel and B. Smit , Understanding molecular simulation: from algorithms to
   applications

   M. E. Tuckerman, Statistical mechanics: theory and molecular simulation

   M.P. Allen and D.J. Tildesley, Computer simulation of liquids


                                                                                     23

Contenu connexe

Tendances

Energy minimization methods - Molecular Modeling
Energy minimization methods - Molecular ModelingEnergy minimization methods - Molecular Modeling
Energy minimization methods - Molecular ModelingChandni Pathak
 
energy minimization
energy minimizationenergy minimization
energy minimizationpradeep kore
 
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARM
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARMDENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARM
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARMShikha Popali
 
Molecular Dynamic: Basics
Molecular Dynamic: BasicsMolecular Dynamic: Basics
Molecular Dynamic: BasicsAjay Murali
 
Merck molecular force field ppt
Merck molecular force field pptMerck molecular force field ppt
Merck molecular force field pptseema sangwan
 
Structure based in silico virtual screening
Structure based in silico virtual screeningStructure based in silico virtual screening
Structure based in silico virtual screeningJoon Jyoti Sahariah
 
Lecture 9 molecular descriptors
Lecture 9  molecular descriptorsLecture 9  molecular descriptors
Lecture 9 molecular descriptorsRAJAN ROLTA
 
HOMOLOGY MODELING IN EASIER WAY
HOMOLOGY MODELING IN EASIER WAYHOMOLOGY MODELING IN EASIER WAY
HOMOLOGY MODELING IN EASIER WAYShikha Popali
 
Molecular dynamics and Simulations
Molecular dynamics and SimulationsMolecular dynamics and Simulations
Molecular dynamics and SimulationsAbhilash Kannan
 
Molecular Mechanics in Molecular Modeling
Molecular Mechanics in Molecular ModelingMolecular Mechanics in Molecular Modeling
Molecular Mechanics in Molecular ModelingAkshay Kank
 
Molecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptxMolecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptxHassanShah396906
 
The Basic of Molecular Dynamics Simulation
The Basic of Molecular Dynamics SimulationThe Basic of Molecular Dynamics Simulation
The Basic of Molecular Dynamics SimulationSyed Lokman
 
Presentation on insilico drug design and virtual screening
Presentation on insilico drug design and virtual screeningPresentation on insilico drug design and virtual screening
Presentation on insilico drug design and virtual screeningJoon Jyoti Sahariah
 
De novo drug design
De novo drug designDe novo drug design
De novo drug designmojdeh y
 

Tendances (20)

Energy minimization methods - Molecular Modeling
Energy minimization methods - Molecular ModelingEnergy minimization methods - Molecular Modeling
Energy minimization methods - Molecular Modeling
 
Energy minimization
Energy minimizationEnergy minimization
Energy minimization
 
energy minimization
energy minimizationenergy minimization
energy minimization
 
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARM
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARMDENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARM
DENOVO DRUG DESIGN AS PER PCI SYLLABUS M.PHARM
 
Molecular Dynamic: Basics
Molecular Dynamic: BasicsMolecular Dynamic: Basics
Molecular Dynamic: Basics
 
Pharmacophore mapping joon
Pharmacophore mapping joonPharmacophore mapping joon
Pharmacophore mapping joon
 
Merck molecular force field ppt
Merck molecular force field pptMerck molecular force field ppt
Merck molecular force field ppt
 
Structure based in silico virtual screening
Structure based in silico virtual screeningStructure based in silico virtual screening
Structure based in silico virtual screening
 
04 molecular dynamics
04 molecular dynamics04 molecular dynamics
04 molecular dynamics
 
Lecture 9 molecular descriptors
Lecture 9  molecular descriptorsLecture 9  molecular descriptors
Lecture 9 molecular descriptors
 
HOMOLOGY MODELING IN EASIER WAY
HOMOLOGY MODELING IN EASIER WAYHOMOLOGY MODELING IN EASIER WAY
HOMOLOGY MODELING IN EASIER WAY
 
Virtual sreening
Virtual sreeningVirtual sreening
Virtual sreening
 
Molecular dynamics and Simulations
Molecular dynamics and SimulationsMolecular dynamics and Simulations
Molecular dynamics and Simulations
 
Molecular Mechanics in Molecular Modeling
Molecular Mechanics in Molecular ModelingMolecular Mechanics in Molecular Modeling
Molecular Mechanics in Molecular Modeling
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
 
Molecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptxMolecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptx
 
The Basic of Molecular Dynamics Simulation
The Basic of Molecular Dynamics SimulationThe Basic of Molecular Dynamics Simulation
The Basic of Molecular Dynamics Simulation
 
Presentation on insilico drug design and virtual screening
Presentation on insilico drug design and virtual screeningPresentation on insilico drug design and virtual screening
Presentation on insilico drug design and virtual screening
 
docking
docking docking
docking
 
De novo drug design
De novo drug designDe novo drug design
De novo drug design
 

En vedette (20)

Lecture6
Lecture6Lecture6
Lecture6
 
Pat mat t4 p2
Pat mat t4 p2Pat mat t4 p2
Pat mat t4 p2
 
The SUNY Buffalo Law School
The SUNY Buffalo Law SchoolThe SUNY Buffalo Law School
The SUNY Buffalo Law School
 
Presentation PLENO blok 3A Modul 1
Presentation PLENO blok 3A Modul 1Presentation PLENO blok 3A Modul 1
Presentation PLENO blok 3A Modul 1
 
Irc hsmm applications for emcomm
Irc hsmm applications for emcommIrc hsmm applications for emcomm
Irc hsmm applications for emcomm
 
Emergency cloud server
Emergency cloud serverEmergency cloud server
Emergency cloud server
 
manejo de archivos
manejo de archivosmanejo de archivos
manejo de archivos
 
Il cantiere - Il sottoscala che vorresti
Il cantiere - Il sottoscala che vorrestiIl cantiere - Il sottoscala che vorresti
Il cantiere - Il sottoscala che vorresti
 
Edp 379 2.3 Taylor Baldridge
Edp 379 2.3 Taylor BaldridgeEdp 379 2.3 Taylor Baldridge
Edp 379 2.3 Taylor Baldridge
 
Modulterancang.lat.bpiawai
Modulterancang.lat.bpiawaiModulterancang.lat.bpiawai
Modulterancang.lat.bpiawai
 
Nyc department of education continues improvements
Nyc department of education continues improvementsNyc department of education continues improvements
Nyc department of education continues improvements
 
Anand Bharthi Foundation
Anand Bharthi FoundationAnand Bharthi Foundation
Anand Bharthi Foundation
 
Manejo de archivos
Manejo de archivosManejo de archivos
Manejo de archivos
 
Pots calls with grandstream networks ht701
Pots calls with grandstream networks ht701Pots calls with grandstream networks ht701
Pots calls with grandstream networks ht701
 
Relacion densidad humedad
Relacion densidad humedadRelacion densidad humedad
Relacion densidad humedad
 
Professional development november 2
Professional development november 2Professional development november 2
Professional development november 2
 
Agendapersonal
AgendapersonalAgendapersonal
Agendapersonal
 
Bc0042 os-mqp
Bc0042 os-mqpBc0042 os-mqp
Bc0042 os-mqp
 
Should
ShouldShould
Should
 
Champion Writers: "Be a Champion" Essay Contest
Champion Writers: "Be a Champion" Essay ContestChampion Writers: "Be a Champion" Essay Contest
Champion Writers: "Be a Champion" Essay Contest
 

Similaire à BIOS 203 Lecture 8: Free Energy Methods

Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...
Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...
Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...Sebastian De Haro
 
Potentials and fields
Potentials and fieldsPotentials and fields
Potentials and fieldsAvie Tavianna
 
defect_supercell_finite_size_schemes_10-09-18
defect_supercell_finite_size_schemes_10-09-18defect_supercell_finite_size_schemes_10-09-18
defect_supercell_finite_size_schemes_10-09-18Suzanne Wallace
 
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamics
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamicsOne dimensional flow,Bifurcation and Metamaterial in nonlinear dynamics
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamicsPremashis Kumar
 
ACTC 2011 poster
ACTC 2011 posterACTC 2011 poster
ACTC 2011 posterJiahao Chen
 
Control of a redundant motor system
Control of a redundant motor systemControl of a redundant motor system
Control of a redundant motor systemyaevents
 
9.3 - Electric Potential
9.3 - Electric Potential9.3 - Electric Potential
9.3 - Electric Potentialsimonandisa
 
Molecular modelling for M.Pharm according to PCI syllabus
Molecular modelling for M.Pharm according to PCI syllabusMolecular modelling for M.Pharm according to PCI syllabus
Molecular modelling for M.Pharm according to PCI syllabusShikha Popali
 
Bayesian inversion of deterministic dynamic causal models
Bayesian inversion of deterministic dynamic causal modelsBayesian inversion of deterministic dynamic causal models
Bayesian inversion of deterministic dynamic causal modelskhbrodersen
 
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correctionTime Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correctionJames Salveo Olarve
 
Hopf Bifurcations and nonlinear dynamics
Hopf Bifurcations and nonlinear dynamicsHopf Bifurcations and nonlinear dynamics
Hopf Bifurcations and nonlinear dynamicselliptic1
 
REDES NEURONALES APRENDIZAJE Supervised Vs No Supervised
REDES NEURONALES APRENDIZAJE Supervised Vs No SupervisedREDES NEURONALES APRENDIZAJE Supervised Vs No Supervised
REDES NEURONALES APRENDIZAJE Supervised Vs No SupervisedESCOM
 
REDES NEURONALES APRENDIZAJE Supervised Vs Unsupervised
REDES NEURONALES APRENDIZAJE Supervised Vs UnsupervisedREDES NEURONALES APRENDIZAJE Supervised Vs Unsupervised
REDES NEURONALES APRENDIZAJE Supervised Vs UnsupervisedESCOM
 
ELECTROMAGNETIC FIELDS
ELECTROMAGNETIC FIELDSELECTROMAGNETIC FIELDS
ELECTROMAGNETIC FIELDSDr.SHANTHI K.G
 
Hoffmann band structures JC talk
Hoffmann band structures JC talkHoffmann band structures JC talk
Hoffmann band structures JC talkSuzanne Wallace
 
Pseudopotential of vanderbilt
Pseudopotential of vanderbiltPseudopotential of vanderbilt
Pseudopotential of vanderbiltdc1394
 
Current Research on Quantum Algorithms.ppt
Current Research on Quantum Algorithms.pptCurrent Research on Quantum Algorithms.ppt
Current Research on Quantum Algorithms.pptDefiantTones
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment HelpEdu Assignment Help
 

Similaire à BIOS 203 Lecture 8: Free Energy Methods (20)

Unit iii update
Unit iii updateUnit iii update
Unit iii update
 
Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...
Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...
Florence Duality Talk: Reduction and Emergence in Holographic Scenarios for G...
 
Potentials and fields
Potentials and fieldsPotentials and fields
Potentials and fields
 
defect_supercell_finite_size_schemes_10-09-18
defect_supercell_finite_size_schemes_10-09-18defect_supercell_finite_size_schemes_10-09-18
defect_supercell_finite_size_schemes_10-09-18
 
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamics
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamicsOne dimensional flow,Bifurcation and Metamaterial in nonlinear dynamics
One dimensional flow,Bifurcation and Metamaterial in nonlinear dynamics
 
ACTC 2011 poster
ACTC 2011 posterACTC 2011 poster
ACTC 2011 poster
 
Control of a redundant motor system
Control of a redundant motor systemControl of a redundant motor system
Control of a redundant motor system
 
9.3 - Electric Potential
9.3 - Electric Potential9.3 - Electric Potential
9.3 - Electric Potential
 
Molecular modelling for M.Pharm according to PCI syllabus
Molecular modelling for M.Pharm according to PCI syllabusMolecular modelling for M.Pharm according to PCI syllabus
Molecular modelling for M.Pharm according to PCI syllabus
 
Lecture9: 123.101
Lecture9: 123.101Lecture9: 123.101
Lecture9: 123.101
 
Bayesian inversion of deterministic dynamic causal models
Bayesian inversion of deterministic dynamic causal modelsBayesian inversion of deterministic dynamic causal models
Bayesian inversion of deterministic dynamic causal models
 
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correctionTime Independent Perturbation Theory, 1st order correction, 2nd order correction
Time Independent Perturbation Theory, 1st order correction, 2nd order correction
 
Hopf Bifurcations and nonlinear dynamics
Hopf Bifurcations and nonlinear dynamicsHopf Bifurcations and nonlinear dynamics
Hopf Bifurcations and nonlinear dynamics
 
REDES NEURONALES APRENDIZAJE Supervised Vs No Supervised
REDES NEURONALES APRENDIZAJE Supervised Vs No SupervisedREDES NEURONALES APRENDIZAJE Supervised Vs No Supervised
REDES NEURONALES APRENDIZAJE Supervised Vs No Supervised
 
REDES NEURONALES APRENDIZAJE Supervised Vs Unsupervised
REDES NEURONALES APRENDIZAJE Supervised Vs UnsupervisedREDES NEURONALES APRENDIZAJE Supervised Vs Unsupervised
REDES NEURONALES APRENDIZAJE Supervised Vs Unsupervised
 
ELECTROMAGNETIC FIELDS
ELECTROMAGNETIC FIELDSELECTROMAGNETIC FIELDS
ELECTROMAGNETIC FIELDS
 
Hoffmann band structures JC talk
Hoffmann band structures JC talkHoffmann band structures JC talk
Hoffmann band structures JC talk
 
Pseudopotential of vanderbilt
Pseudopotential of vanderbiltPseudopotential of vanderbilt
Pseudopotential of vanderbilt
 
Current Research on Quantum Algorithms.ppt
Current Research on Quantum Algorithms.pptCurrent Research on Quantum Algorithms.ppt
Current Research on Quantum Algorithms.ppt
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
 

Plus de bios203

BIOS 203 Lecture 5: Electronic excited states
BIOS 203 Lecture 5: Electronic excited statesBIOS 203 Lecture 5: Electronic excited states
BIOS 203 Lecture 5: Electronic excited statesbios203
 
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamics
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamicsBIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamics
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamicsbios203
 
BIOS 203 Lecture 3: Classical molecular dynamics
BIOS 203 Lecture 3: Classical molecular dynamicsBIOS 203 Lecture 3: Classical molecular dynamics
BIOS 203 Lecture 3: Classical molecular dynamicsbios203
 
BIOS 203 Lecture 4: Ab initio molecular dynamics
BIOS 203 Lecture 4: Ab initio molecular dynamicsBIOS 203 Lecture 4: Ab initio molecular dynamics
BIOS 203 Lecture 4: Ab initio molecular dynamicsbios203
 
BIOS203 Lecture 7: Rare event techniques
BIOS203 Lecture 7: Rare event techniquesBIOS203 Lecture 7: Rare event techniques
BIOS203 Lecture 7: Rare event techniquesbios203
 
BIOS 203: Lecture 2 - introduction to electronic structure theory
BIOS 203: Lecture 2 - introduction to electronic structure theoryBIOS 203: Lecture 2 - introduction to electronic structure theory
BIOS 203: Lecture 2 - introduction to electronic structure theorybios203
 
BIOS203 Lecture 1: Introduction to potentials and minimization
BIOS203 Lecture 1: Introduction to potentials and minimizationBIOS203 Lecture 1: Introduction to potentials and minimization
BIOS203 Lecture 1: Introduction to potentials and minimizationbios203
 

Plus de bios203 (7)

BIOS 203 Lecture 5: Electronic excited states
BIOS 203 Lecture 5: Electronic excited statesBIOS 203 Lecture 5: Electronic excited states
BIOS 203 Lecture 5: Electronic excited states
 
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamics
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamicsBIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamics
BIOS 203 Lecture 6: Some surprises in the biophysics of protein dynamics
 
BIOS 203 Lecture 3: Classical molecular dynamics
BIOS 203 Lecture 3: Classical molecular dynamicsBIOS 203 Lecture 3: Classical molecular dynamics
BIOS 203 Lecture 3: Classical molecular dynamics
 
BIOS 203 Lecture 4: Ab initio molecular dynamics
BIOS 203 Lecture 4: Ab initio molecular dynamicsBIOS 203 Lecture 4: Ab initio molecular dynamics
BIOS 203 Lecture 4: Ab initio molecular dynamics
 
BIOS203 Lecture 7: Rare event techniques
BIOS203 Lecture 7: Rare event techniquesBIOS203 Lecture 7: Rare event techniques
BIOS203 Lecture 7: Rare event techniques
 
BIOS 203: Lecture 2 - introduction to electronic structure theory
BIOS 203: Lecture 2 - introduction to electronic structure theoryBIOS 203: Lecture 2 - introduction to electronic structure theory
BIOS 203: Lecture 2 - introduction to electronic structure theory
 
BIOS203 Lecture 1: Introduction to potentials and minimization
BIOS203 Lecture 1: Introduction to potentials and minimizationBIOS203 Lecture 1: Introduction to potentials and minimization
BIOS203 Lecture 1: Introduction to potentials and minimization
 

BIOS 203 Lecture 8: Free Energy Methods

  • 1. Bios 203 BIOS 203: Free Energy Methods Tom Markland 1
  • 2. Motivation Lots of interesting properties require knowledge of free energies: • Phase diagrams/coexistence. • Drug binding affinities. • Rates of reactions. • Equilibrium constants. • Solvation properties. • Acid-base equilibria. • Isotope effects. 2
  • 3. Statistical Mechanics Recap Partition function in classical mechanics, Momentum part Position part Position and momentum integrals are separable, Today we will Yielding the configuration integral, primarily deal with this. Observables obtained performing trajectories which sample points in the ensemble and averaging the observables over them (assuming ergodic hypothesis), If observable depends Expectation value of observable O only on position. 3
  • 4. Simulations Basic simulation scheme Get energy/forces Initial Structure Pair/Empirical From known Ab initio crystal structure or starting from lattice and equilibrating. Evolve system: Repeat until Monte Carlo average of Molecular Dynamics observables are converged. Calculate observables energy, pressure, structure etc. 4
  • 5. Free energy from statistical mechanics How to obtain free energy? For simplicity everything will be presented in terms of Helmholtz energy A (i.e. working in the NVT ensemble) but extension to Gibbs (NPT) is straightforward. • Not good news: to get an absolute free energy of a system we need to know the entire partition function i.e. to count all the states for a given N,V,T!  In practice calculating the partition function is impossible for a system of more than a few degree of freedom (with the exception of special cases). • However, calculating differences in free energies is possible. 5
  • 6. Free Energy Perturbation • The above expression is not in a nice form to extract from a simulation. Rearrange Inserting 1 Now take ratio, Of the form: Free energy perturbation (FEP) (Zwanzig 1954) 6
  • 7. Free Energy Perturbation What does this translate to? • Do a simulation of system 0. • During the simulation accumulate the average: • At the end take the natural logarithm of the observable and multiply by –kBT and you obtain the free energy difference between system 1 and 2. Example: I want to develop a new drug that binds into an active site more strongly than my current drug. Can I do this by replacing a Hydrogen by a Methyl Group?  Potential V0 is force field with H and V1 is that with Me. Hence can use FEP to calculate the difference in free energy of binding. 7
  • 8. Free Energy Perturbation Unfortunately FEP is not perfect • Suppose the two potentials (V0 and V1) are very different. • Consider in 1D two systems with different potentials: Remember in FEP we do a V(x) simulation in potential V0 Potential and accumulate the average V0 of V1 x P(x) Probability x In this region In this region is small but potential V0 samples it a lot. is big but potential V0 samples it very little. 8
  • 9. Free Energy Perturbation V(x) V0 V1 Potential P(x) x Probability So what happens when we do a simulation? x Do a simulation in potential V1 and accumulate the average of Massive jumps in expectation value correspond to the rare events of entering a region where potential V2-V1 is small giving rise to a massive contribution to Simulation time/ MC steps FEP fails when the difference potential shows a large standard deviation compared to . 9
  • 10. Free Energy Perturbation How to avoid this problem? 0 • Good news: free energies are state functions. i.e. they only depend on the current state of the system and not how the system acquired 1 that state. • This allows us to take any path between the two states we are interested in whether or not the intermediates represent anything “real”. Hence we can break the journey from transforming from potential V0 to V2 by splitting it into M sections: V0 V1 Here M=5 V0.2 V0.4 V0.6 V0.8 We can then calculate the free energy change for each section and add them together to generate the total free energy change on going from 1 to 2: Analysis: Proc. Roy. Soc. A 468, 2-17 (2012). 10
  • 11. Free energy from statistical mechanics General expression for making M steps between start and end-point How does one pick intermediate potentials (V0.2, V0.4 etc.)? • In principles could pick anything. • However, if intermediates are widely spaced or take a long path between the two end potentials then evaluation will be inefficient. • Hence a wise choice might be a linear interpolation between V0 and V1. When λ=1 all potential V0.5 1 and when λ=0 all V(x) V0 V1 potential 0. In between Potential a mixture of them. x Inserting a middle state which has overlap with both V0 and V1 allows for much more efficient estimates of the free energy difference. 11
  • 12. Thermodynamic Integration Another approach is to use thermodynamic integration As before we want to calculate the free energy change between two potentials V0 and V1. Define a potential: Where f(λ) and g(λ) switch between the potentials V0 and V1 and satisfy: • f(0)=1, f(1)=0, g(0)=0 and g(1)=1 Note: Although f(λ) = (1- λ) and g(λ) = λ are a valid choice one can pick other forms that satisfy the above constraint. • The free energy is now a function of the phase point (N,V,T) and the parameter λ • Taking derivative of A w.r.t. λ yields: 12
  • 13. Thermodynamic Integration What is ? Combining gives β cancels kBT Recognize this is of form: Relates change in potential with change in free energy. 13
  • 14. Thermodynamic Integration Integrate Thermodynamic integration: Kirkwood (1935) If we choose: Implementation • Perform a series of simulations at different values of λ to get the gradients: • Perform the integral of the gradients by midpoint rule or other numerical integration schemes. More advanced techniques (beyond this course): Adiabatic free energy dynamics • Allow λ to evolve continuously in the simulation by including it as an additional coordinate which is dynamically, As long as this coordinate moves much slower than the system relaxes (adiabatic separation) one can obtain the free energy from one simulation. Adiabatic free energy dynamics: J. Chem. Phys., 116, 4389 (2002) 14
  • 15. Free energy along collective variables • In many cases in chemistry one is interested in the probability of finding a particle at some particular point along a single coordinate of the system called a collective variable, R(r). • The collective variable can be defined as a general function of any of the positions in the system r. • For example in transition state theory a key input is knowing the probability of reaching the top of the barrier along the “reaction coordinate”. Energy • Although we will refer to R(r) as a collective variable (CV) it can also be called an order parameter or reaction coordinate. Collective variable Example: to calculate a transition stat theory prediction of the rate of hydrogen diffusion through ice one can compute the free energy associated with moving the H between the 6 O’s defining ice’s hexagonal lattice. 15
  • 16. Free energy along collective variables Probability of obtaining a given configuration: Consider a system where one coordinate R (which can be a complex function of all coordinates in the system i.e. R(r)) is constrained to hold a particular value R* but all other coordinates are distributed according to Boltzmann, It follows the probability distribution along the coordinate is given by, 16
  • 17. Free energy along collective variables Constrained partition function. Recall, and hence Potential of mean force In practice we are (like before) more interested in differences in free energy in going from one position along the coordinate R to another e.g. R0 to R1. Really useful equation: allows one to convert a histogram of probabilities along a particular coordinate to the free energy change associated with moving along that coordinate. Figure: Ann. Rep. in Comput. Chem. 6, 280–296 (2010) 17
  • 18. Free energy along collective variables Example 1: Radial distribution gives probability of being found a given distance away from a particle at the center. Can convert probability Using: to a free energy change as a function of particle separation. g(R) A(R) V(R) Note: The free energy as a function of particle separation, A(R) is not the Energy same as pair potential, V(R) unless only two particles are present. R 18
  • 19. Free energy along collective variables Example 2: Can also extend to more constrained dimensions e.g. the Ramachandran plot of alanine dipeptide shows the free energy as a function of two torsions angles of the molecule. Red regions are low free energy, blue is high free energy. In both this and the previous case the problem is sufficiently simple that one can run for long enough to see point in all regions of interest  suppose there is a high barrier? 19
  • 20. Free energy along order parameters Methods of obtaining free energy when high barriers are present Umbrella Umbrella sampling Energy potential • Add an additional force to the potential to keep the system close to a particular value of the CV, R* e.g. a harmonic force. R* R = Collective • The biased simulation can then be converted variable into an unbiased probability by using techniques such as WHAM1 or umbrella integration2. 1.) Kumar et. al. J. Comp. Chem. 13, 1011 (1992) 2.) Kästner and Thiel, J. Chem. Phys. 123, 144104 Hard constraints (2005) • One can also use hard constraints to perform molecular dynamics with the collective variable held at one position. Caveat: Can also get an additional term due to the • The free energy is then obtained by integrating the average force in Jacobian of the change into the direction of the collective variable. generalized coordinates • This gives rise to the name “Potential of mean force” for . (depends on form of R). Umbrella sampling: Torrie and Valleau, J. Comput. Phys. 2 187-199 (1977) 20
  • 21. Metadynamics A more recent approach to obtaining the free energy along an order parameter is metadynamics. Basic idea • Each time a position along the order parameter is visited place down a Gaussian to “fill up” the potential. • The Gaussians placed bias against revisiting the same region over and over. • At the end of the simulation the probability density can be obtained simply by looking at the density of the Gaussians placed at each position along the collective variable. Place Gaussians on places previously visited Note: to obtain the free energy Energy accurately the rate at which the Gaussians are dropped must be slow compared to the rate at which the other coordinates move. Collective variable Video by Giovanni Bussi showing metadynamics in action: https://www.youtube.com/watch?feature=player_embedded&v=IzEBpQ0c8TA Metadynamics: Laio and Parrinello PNAS 99 (20): 12562–12566 (2002) 21
  • 22. Phase coexistence • Suppose we know a coexistence point of two phases. TIP4P/05 Model Experiment • Can we trace the rest of the phase diagram from one coexistence point?  Yes, by Gibbs-Duhem integration TIP3P • Integrate the Clapeyron equation numerically: Model Run NPT simulations of each phase at the Freezes to Ice II. current point and calculate difference in Hexagonal ice Experiment enthalpy and volume. Use that to obtain only stable at new coexistence point and repeat. negative pressure! Gibbs-Duhem: Kofke Mol. Phys. 78, 6 1331 (1993) Phase Diagrams: C. Vega et. al., Faraday Discuss., 141, 251-276 (2009) 22
  • 23. Summary Thanks for listening. Books: D. Frenkel and B. Smit , Understanding molecular simulation: from algorithms to applications M. E. Tuckerman, Statistical mechanics: theory and molecular simulation M.P. Allen and D.J. Tildesley, Computer simulation of liquids 23