BIOS 203: Free Energy Methods Tom Markland
BIOS 203: Free Energy Methods Tom Markland
BIOS 203: Free Energy Methods Tom Markland
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,
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.
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!
5
Free Energy Perturbation
Rearrange Inserting 1
6
Free Energy Perturbation
• Do a simulation of system 0.
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
8
Free Energy Perturbation
V(x) V0 V1
Potential
P(x) x
Probability
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:
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 λ
12
Thermodynamic Integration
What is ?
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
15
Free energy along collective variables
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,
16
Free energy along collective variables
Constrained
partition function.
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.
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.
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)
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
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
Gibbs-Duhem: Kofke Mol. Phys. 78, 6 1331 (1993) Phase Diagrams: C. Vega et. al., Faraday Discuss., 141, 251-276 (2009) 22
Summary
Books:
23