Difference between revisions of "Free Energy Fundamentals"

From AlchemistryWiki
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Fundamentals | cTopic=Theory}}
 
{{Fundamentals | cTopic=Theory}}
  
To understand the advantages and disadvantages of different free energy methods, it's important to review the underlying principles first. This page is dedicated to the most fundamental concepts of free energy calculations and is designed to give an in-depth view of the approaches, but starting from the basics. This page also contains some of the common nomenclature and symbols that are seen throughout the rest of the [[:Category:Free Energy Fundamentals|free energy fundamentals]] pages and in the literature as a whole.
+
To understand the advantages and disadvantages of different free energy methods, it is important to begin with a review of the underlying principles. This page is dedicated to the most fundamental concepts of free energy calculations and is designed to give an in-depth view of the approaches, starting from the basics. This page also contains some of the common nomenclature and symbols that are seen throughout the rest of the [[:Category:Free Energy Fundamentals|free energy fundamentals]] pages and in the literature as a whole.
  
 
This page is not meant to be an end-all repository of the background mathematics and principals required for free energy calculations, but it will serve as a good start point and hopefully a quick reference.
 
This page is not meant to be an end-all repository of the background mathematics and principals required for free energy calculations, but it will serve as a good start point and hopefully a quick reference.
 +
 +
=Why the name "Alchemical"?=
 +
One of the first questions, and often most confusing points, about a number of free energy calculations is why we refer to them as "alchemical" changes in a large number of computational methods. When people first hear the word "alchemy," they usually think of the medieval alchemists who were trying to turn lead into gold, or other such transformations. How computational free energy adopted the name takes a bit of understanding of simulation limitations and the properties of what we are calculating.
 +
 +
Considering that the natural evolution of some of the processes we try to model are well beyond reasonable simulation time scales, we must come up with very efficient ways to compute the free energy differences. Because free energy is a state variable (path independent), we can design simulations that provide a convenient pathway to computing free energy. Furthermore, since we are doing simulations, we are not limited by experimentally observable conditions so long as we are meticulous with our calculations.
 +
 +
With these observations in mind, it was found that we can simulate modifications to atoms which can change their properties to reflect non-physical or entirely different species. This is roughly the same definition of alchemy from old in that we are changing the properties of the atoms to be something else, although we do it in a mathematically sound and rigorous manner; hence, the term "alchemical" was coined as many free energy calculations are "like alchemy" in their pathways and methods.
 +
 +
There are of course many factors and checks that must be done to ensure accuracy and robustness of the calculations, many of which will be shown in the rest of the [[:Category:Free Energy Fundamentals|free energy fundamentals pages]].
  
 
=Assumptions for the Fundamentals=
 
=Assumptions for the Fundamentals=
The assumptions listed here are carried out through the rest of the fundamentals sections. Free energy calculations can usually be set up without these assumptions, but we'll make these assumtions to simplify the explanations.  
+
The assumptions listed here are carried out through the rest of the fundamentals sections. Free energy calculations can usually be set up without these assumptions, but we'll make these assumptions to simplify the explanations.  
  
 
* '''A standard molecular mechanics model will be assumed'''; this includes:
 
* '''A standard molecular mechanics model will be assumed'''; this includes:
Line 12: Line 21:
 
** Periodic dihedral terms
 
** Periodic dihedral terms
 
** Non-bonded terms made up of point charges and Lennard-Jones repulsion/dispersion terms
 
** Non-bonded terms made up of point charges and Lennard-Jones repulsion/dispersion terms
* constant temperature is maintained:  (discussed [[#Facts from the Core Equation | below]])
+
* constant temperature is maintained:  (discussed [[#Facts from the Free Energy Difference Definition | below]])
 
* '''Masses do not alchemically change.''' If one wishes to do this, substitute all potential energies, <math>U</math>, with the more general Hamiltonian, <math>\mathcal{H}</math>.
 
* '''Masses do not alchemically change.''' If one wishes to do this, substitute all potential energies, <math>U</math>, with the more general Hamiltonian, <math>\mathcal{H}</math>.
* '''QM/MM will ''not'' be considered''' for fundamentals because of the field has yet to be sufficiently developed.{{Cite|Woods2008|>Woods, C. J., Manby, F. R., and Mulholland, A. J. (2008) An efficient method for the calculation of quantum mechanics/molecular mechanics free energies. J. Chem. Phys. 128, 014109.|http://www.citeulike.org/group/14929/article/9052667}}
+
* '''QM/MM will ''not'' be considered''' for fundamental; there are number of other more complicated factors to consider that are beyond the scope of this discussion.{{Cite|Woods2008}}
  
=Core Free Energy Equation=
+
=Free Energy Difference Equation=
 
Most free energy calculations and methods started from a single core equation derived from statistical mechanics. The free energy difference between two states is directly related to the ratio of probabilities of those states through the partition functions. This free energy difference for an NVT ensemble is
 
Most free energy calculations and methods started from a single core equation derived from statistical mechanics. The free energy difference between two states is directly related to the ratio of probabilities of those states through the partition functions. This free energy difference for an NVT ensemble is
  
:<math>\displaystyle \Delta A_{ij} = -k_B T \ln \frac{Q_j}{Q_i} = -k_B T \ln \frac{\int_{V_j} e^{-\frac{U_j(\vec{q})}{k_B T}} d\vec{q}}{\int_{V_i} e^{-\frac{U_i(\vec{q})}{k_B T}}d\vec{q}}</math>
+
:<math>\displaystyle \Delta A_{ij} = -k_B T \ln \frac{Q_j}{Q_i} = -k_B T \ln \frac{\int_{\Gamma_j} e^{-\frac{U_j(\vec{q})}{k_B T}} d\vec{q}}{\int_{\Gamma_i} e^{-\frac{U_i(\vec{q})}{k_B T}}d\vec{q}}</math>
  
where <math>\Delta A_{ij}</math> is the Helmholtz free energy difference between state <math>j</math> and state <math>i</math>, <math>k_B</math> the Boltzmann constant, <math>Q</math> the canonical partition function, <math>T</math> is the temperature, <math>U_i</math> and <math>U_j</math> are the potential energies as a function of the coordinates and momenta <math>\vec{q}</math> for two states, and <math>V_i</math> and <math>V_j</math> are the ''phase space volumes'' of <math>\vec{q}</math> over which we sample.
+
where <math>\Delta A_{ij}</math> is the Helmholtz free energy difference between state <math>j</math> and state <math>i</math>, <math>k_B</math> the Boltzmann constant, <math>Q</math> the canonical partition function, <math>T</math> is the temperature, <math>U_i</math> and <math>U_j</math> are the potential energies as a function of the coordinates and momenta <math>\vec{q}</math> for two states, and <math>\Gamma_i</math> and <math>\Gamma_j</math> are the ''phase space volumes'' of <math>\vec{q}</math> over which we sample, or the total set of all allowed positions and momenta of the system.
  
 
From this equation, all free energy calculations are derived.
 
From this equation, all free energy calculations are derived.
  
==Facts from the Core Equation==
 
There are a number of key items we can learn from the core equation for free energy calculations. Each of these are critical in interpreting simulation results and should be committed to memory.
 
 
# '''Only free energy ''differences'' are ever calculated.''' There is never a calculation where absolute free energies are needed (and rarely can the be calculated at all) as all of the biological or thermodynamical quantities of interest are based on a free energy difference. As such, there must always be a minimum of two defined states.
 
#* Even ``absolute'' free energies of binding are still free energy differences between two states: the ligand restricted to the binding site, and the ligand free to explore all other configurations.
 
# '''Temperature does not change with state.''' If it did, you would get <math>\Delta A_{ij} = -k_B T_j \ln Q_j + k_B T_i \ln Q_i</math>, which is no longer a ratio calculation and not needed for biological systems of interest. Temperature dependence on free energy is more likely to be "what is <math> \Delta A_{ij} </math> change at two different temperatures?"
 
# '''There are two different phase space volumes.''' <math>V_I</math> and <math>V_j</math> are often the same, but they are not required to be. The methods presented in the fundamentals assume that the two phase spaces overlap. When the spaces do not overlap, these methods break down and it is difficult to identify this problem without in depth knowledge of your system.
 
#* The degree to which the phase spaces are shared is called the "phase space overlap" and there are [[Intermediate_States | ways to address is]], but there are many aspects of it that still need addressed.
 
#* Consider the example of a hard sphere solute with radius <math>\sigma</math> at state <math>i</math> and a Lennard Jones repulsion/dispersion potential, with the same <math>\sigma</math> at state <math>j</math>. Since <math>V_i</math> will not have molecules at a distance less than <math>\sigma</math>, but <math>V_j</math> will, the two phase spaces are not the same and these methods will either break down or return very error-prone results.
 
#* It should also be noted that "near zero probability" and "always zero probability" are two distinct things when considering phase space. So long as there is a chance for an observation to be made, no mater how small, it is considered part of the phase space.
 
 
=Nomenclature and Variables=
 
In an effort to keep things uniform, this section contains all the common constants and variables that are seen throughout the [[:Category:Free Energy Fundamentals|fundamentals sections.]] Although the Table itself is not in any particular order, the sorting buttons should help you find what you are looking for. The alternate listings of some variables are things one may encounter in literature, although this site will strive to be uniform in its naming process.
 
  
{|class="wikitable sortable" style="text-align: center"
+
==Facts from the Free Energy Difference Definition==
|-
+
There are a number of key notes we can learn from the definition of free energy differences. Each of these can be important in interpreting simulation results.
! scope="col" | Variable, Acronym, Term
 
! scope="col" | Definition
 
! scope="col" class="unsortable" |Notes
 
|-
 
| <math>k_B</math>
 
| [http://en.wikipedia.org/wiki/Boltzmann_constant Boltzmann's Constant]
 
|
 
|-
 
| <math>U</math>
 
| Potential Energy
 
| This is the total internal energy  calculated a classical simulation, the sum of the potential and kinetic energies.  
 
|
 
|-
 
| <math>T</math>
 
| Temperature
 
| This is often shown with <math>k_B</math> as well, and so common in fact that there is a common variable affiliated with it: <math>\beta</math>.
 
|-
 
| <math>\beta</math>
 
| Inverse Boltzmann Temperature <math>\beta=(k_BT)^{-1}</math>
 
| Because it is so common in most the equations, one will see <math>\beta^{-1}</math> more often than <math>k_BT</math>
 
|-
 
| <math>P</math>
 
| Pressure
 
|
 
|-
 
| <math>u</math>
 
| Reduced potential, expressed as <math>u=\beta(U+PV-\sum \mu N_i)</math>.  For many equations, it is simpler to work with the reduced potential.
 
| In the case of NVT ensembles, the PV and <math>\mu N_i</math> terms are zero. For NPT ensembles, the <math>\sum \mu N_i</math> is zero, and for <math>NV\mu</math> ensembles, the PV term is zero.
 
|-
 
  
| <math>V</math>
+
# '''Only free energy ''differences'' are ever calculated.''' There is never a calculation where absolute free energies are needed (and rarely can they be calculated at all) as all of the biological or thermodynamical quantities of interest are based on a free energy difference. As such, there must always be a minimum of two defined thermodynamic states.
| Volume (traditional)
+
#* Even ''absolute'' free energies of binding are still free energy differences between two states: the ligand restricted to the binding site, and the ligand free to explore all other configurations.
| '''CAUTION:''' Volume in this sense is the kind you think of with box size. Not to be confused with the ''Phase Space Volume.'' This particular volume is not often considered by itself and should only show up on this site within <math>PV</math> terms, or ''NVT''.
+
# '''Free energy differences between states at different temperatures are usually not what you want to be calculating''' for problems of interest.  If it did, you would get <math>\Delta A_{ij} = -k_B T_j \ln Q_j + k_B T_i \ln Q_i</math>, which is no longer a ratio calculation and not needed for biological systems of interest. Temperature dependence on free energy is more likely to be "what is <math> \Delta A_{ij} </math> change at two different temperatures?"
|-
+
# '''There are two different phase space volumes.''' <math>\Gamma_i</math> and <math>\Gamma_j</math> are often the same, but they are not required to be. The methods presented here almost always assumes that the two phase spaces overlap. However, when the spaces do not overlap, these methods break down and it is difficult to identify this problem without in depth knowledge of your system. Consider the example of a hard sphere solute with radius <math>\sigma</math> at state <math>i</math> and a Lennard Jones repulsion/dispersion potential, with the same <math>\sigma</math> at state <math>j</math>. Since <math>\Gamma _i</math> will not have molecules at a distance less than <math>\sigma</math>, but <math>\Gamma_j</math> will, the two phase spaces are not the same and these methods will either break down or return very error-prone results.
| <math>\Gamma</math>
+
#* The degree to which the phase spaces are shared is called the "phase space overlap". Efficient free energy calculations require significant phase space overlap. There are  [[Intermediate_States | a number of strategies to address]] lack of overlap between target spaces, but determining the best way for any given situation is still a research question.
| Phase Space Volume: Total set of coordinates and momenta where the system has a nonzero probability of being found
+
#* It should also be noted that "near zero probability" and "always zero probability" are two distinct things when considering phase space. So long as there is a chance for an observation to be made, no matter how small, it is considered part of the phase space.
| '''CAUTION:''' This is not volume in standard physical sense, meaning the volume of the box, but the volume space times the momentum space.
 
|-
 
| <math>q</math> or <math>\vec{q}</math>
 
| Collective variable for coordinates and momentum.
 
| Can also be seen as <math>\mathbf{x}</math>, <math>\mathbf{\vec{x}}</math>, and a number of other terms in literature.
 
|-
 
| <math>\epsilon</math> and <math>\sigma</math>
 
| Lennard-Jones parameters for the well depth and the radius of the point particle respectively.
 
|
 
|-
 
| <math>Q</math>
 
| Partition Function for the canonical or NVT ensemble, but sometimes also signifies an arbitrary partition function of any ensemble. <br/><math>Q=\int_{\Gamma}\exp^{-\beta U (\vec{q})}\,\mathrm{d}\vec{q}</math>
 
| In the examples here, this will represent the canonical partition function although most of the theory shown here works for an arbitrary partition function as well, though sometimes with slight modifications, where <math>Q=\int_{\Gamma}\exp^{-u(\vec{q})}\,\mathrm{d}\vec{q}</math>
 
|-
 
| <math>\tau</math>
 
| [[Simulation_Information_Gathering#Correlation|Autocorrelation time]]
 
|
 
|-
 
| ''NVT''
 
| System held at constant '''N'''umber of particles, '''V'''olume, and '''T'''emperature. Free energy calculations performed in this ensemble yield Helmholtz free energies.
 
|
 
|-
 
| ''NPT''
 
| System held at constant '''N'''umber of particles, '''P'''ressue, and '''T'''emperature. Free energy calculations performed in this ensemble yield Gibbs free energies.
 
|
 
|-
 
| ''TI''
 
| [[Thermodynamic Integration]]
 
|
 
|-
 
| ''EXP''
 
| [[Exponential Averaging]]
 
| Also called "free energy perturbation" and the "Zwanzig relationship."
 
|-
 
| ''BAR''
 
| [[Bennett Acceptance Ratio]]
 
|
 
|-
 
| ''MBAR''
 
| [[Multistate Bennett Acceptance Ratio]]
 
|
 
|-
 
| Boltzmann Weight
 
| The probability of a microstate <math>\vec{q}</math>, defined <math>\exp^{-u(\vec{q})}/Q</math>, where <math>u(\vec{q})</math> is the reduced potential. It can also refer to simply <math>\exp^{-u(\vec{q})}</math>, although this is not a full weight because it is not normalized by the partition function. 
 
|-
 
| State (variable <math>K</math>)
 
| A unique set of conditions and parameters that completely describe a thermodynamic system.
 
| For all examples here, the upper case variable <math>K</math> will denote all states (or the count thereof), and the lower case variable <math>k</math> will refer to a specific state.
 
|-
 
| <math>\lambda</math>
 
| Alchemical variable, thermodynamic path coordinate
 
| The most common symbol for denoting/tracking the progress along some alchemical pathway. Since most free energy calculations involve an [[Intermediate States | alchemical thermodynamic path]], [[Main Page| this site]] was named accordingly.
 
|-
 
| Annihilating/Annihilated
 
| The act of removing ALL of an atoms interactions with the system, this includes the molecule's interactions with itself.
 
| Intermolecular force = OFF, Intramolecular forces = OFF. Also known as disappeared or destroyed. Not to be confused with "decoupling."
 
|-
 
| Decoupling
 
| The act of removing an atom or molecules interactions with its surroundings ONLY; the interactions between the molecule itself remain active
 
| Intermolecular force = OFF, Intramolecular forces = ON. Not to be confused with "annihilation."
 
|}
 
  
 
=References=
 
=References=
<References />
+
<References>
 +
{{Cite|Woods2008|Woods, C. J., Manby, F. R., and Mulholland, A. J. (2008) An efficient method for the calculation of quantum mechanics/molecular mechanics free energies. J. Chem. Phys. 128, 014109.|http://www.citeulike.org/group/14929/article/9052667}}
 +
</references>
  
 
[[Category:Free Energy Fundamentals]]
 
[[Category:Free Energy Fundamentals]]

Latest revision as of 20:36, 10 July 2013



To understand the advantages and disadvantages of different free energy methods, it is important to begin with a review of the underlying principles. This page is dedicated to the most fundamental concepts of free energy calculations and is designed to give an in-depth view of the approaches, starting from the basics. This page also contains some of the common nomenclature and symbols that are seen throughout the rest of the free energy fundamentals pages and in the literature as a whole.

This page is not meant to be an end-all repository of the background mathematics and principals required for free energy calculations, but it will serve as a good start point and hopefully a quick reference.

Why the name "Alchemical"?

One of the first questions, and often most confusing points, about a number of free energy calculations is why we refer to them as "alchemical" changes in a large number of computational methods. When people first hear the word "alchemy," they usually think of the medieval alchemists who were trying to turn lead into gold, or other such transformations. How computational free energy adopted the name takes a bit of understanding of simulation limitations and the properties of what we are calculating.

Considering that the natural evolution of some of the processes we try to model are well beyond reasonable simulation time scales, we must come up with very efficient ways to compute the free energy differences. Because free energy is a state variable (path independent), we can design simulations that provide a convenient pathway to computing free energy. Furthermore, since we are doing simulations, we are not limited by experimentally observable conditions so long as we are meticulous with our calculations.

With these observations in mind, it was found that we can simulate modifications to atoms which can change their properties to reflect non-physical or entirely different species. This is roughly the same definition of alchemy from old in that we are changing the properties of the atoms to be something else, although we do it in a mathematically sound and rigorous manner; hence, the term "alchemical" was coined as many free energy calculations are "like alchemy" in their pathways and methods.

There are of course many factors and checks that must be done to ensure accuracy and robustness of the calculations, many of which will be shown in the rest of the free energy fundamentals pages.

Assumptions for the Fundamentals

The assumptions listed here are carried out through the rest of the fundamentals sections. Free energy calculations can usually be set up without these assumptions, but we'll make these assumptions to simplify the explanations.

  • A standard molecular mechanics model will be assumed; this includes:
    • Harmonic bond angle terms
    • Periodic dihedral terms
    • Non-bonded terms made up of point charges and Lennard-Jones repulsion/dispersion terms
  • constant temperature is maintained: (discussed below)
  • Masses do not alchemically change. If one wishes to do this, substitute all potential energies, [math]\displaystyle{ U }[/math], with the more general Hamiltonian, [math]\displaystyle{ \mathcal{H} }[/math].
  • QM/MM will not be considered for fundamental; there are number of other more complicated factors to consider that are beyond the scope of this discussion.[1]

Free Energy Difference Equation

Most free energy calculations and methods started from a single core equation derived from statistical mechanics. The free energy difference between two states is directly related to the ratio of probabilities of those states through the partition functions. This free energy difference for an NVT ensemble is

[math]\displaystyle{ \displaystyle \Delta A_{ij} = -k_B T \ln \frac{Q_j}{Q_i} = -k_B T \ln \frac{\int_{\Gamma_j} e^{-\frac{U_j(\vec{q})}{k_B T}} d\vec{q}}{\int_{\Gamma_i} e^{-\frac{U_i(\vec{q})}{k_B T}}d\vec{q}} }[/math]

where [math]\displaystyle{ \Delta A_{ij} }[/math] is the Helmholtz free energy difference between state [math]\displaystyle{ j }[/math] and state [math]\displaystyle{ i }[/math], [math]\displaystyle{ k_B }[/math] the Boltzmann constant, [math]\displaystyle{ Q }[/math] the canonical partition function, [math]\displaystyle{ T }[/math] is the temperature, [math]\displaystyle{ U_i }[/math] and [math]\displaystyle{ U_j }[/math] are the potential energies as a function of the coordinates and momenta [math]\displaystyle{ \vec{q} }[/math] for two states, and [math]\displaystyle{ \Gamma_i }[/math] and [math]\displaystyle{ \Gamma_j }[/math] are the phase space volumes of [math]\displaystyle{ \vec{q} }[/math] over which we sample, or the total set of all allowed positions and momenta of the system.

From this equation, all free energy calculations are derived.


Facts from the Free Energy Difference Definition

There are a number of key notes we can learn from the definition of free energy differences. Each of these can be important in interpreting simulation results.

  1. Only free energy differences are ever calculated. There is never a calculation where absolute free energies are needed (and rarely can they be calculated at all) as all of the biological or thermodynamical quantities of interest are based on a free energy difference. As such, there must always be a minimum of two defined thermodynamic states.
    • Even absolute free energies of binding are still free energy differences between two states: the ligand restricted to the binding site, and the ligand free to explore all other configurations.
  2. Free energy differences between states at different temperatures are usually not what you want to be calculating for problems of interest. If it did, you would get [math]\displaystyle{ \Delta A_{ij} = -k_B T_j \ln Q_j + k_B T_i \ln Q_i }[/math], which is no longer a ratio calculation and not needed for biological systems of interest. Temperature dependence on free energy is more likely to be "what is [math]\displaystyle{ \Delta A_{ij} }[/math] change at two different temperatures?"
  3. There are two different phase space volumes. [math]\displaystyle{ \Gamma_i }[/math] and [math]\displaystyle{ \Gamma_j }[/math] are often the same, but they are not required to be. The methods presented here almost always assumes that the two phase spaces overlap. However, when the spaces do not overlap, these methods break down and it is difficult to identify this problem without in depth knowledge of your system. Consider the example of a hard sphere solute with radius [math]\displaystyle{ \sigma }[/math] at state [math]\displaystyle{ i }[/math] and a Lennard Jones repulsion/dispersion potential, with the same [math]\displaystyle{ \sigma }[/math] at state [math]\displaystyle{ j }[/math]. Since [math]\displaystyle{ \Gamma _i }[/math] will not have molecules at a distance less than [math]\displaystyle{ \sigma }[/math], but [math]\displaystyle{ \Gamma_j }[/math] will, the two phase spaces are not the same and these methods will either break down or return very error-prone results.
    • The degree to which the phase spaces are shared is called the "phase space overlap". Efficient free energy calculations require significant phase space overlap. There are a number of strategies to address lack of overlap between target spaces, but determining the best way for any given situation is still a research question.
    • It should also be noted that "near zero probability" and "always zero probability" are two distinct things when considering phase space. So long as there is a chance for an observation to be made, no matter how small, it is considered part of the phase space.

References

  1. Woods, C. J., Manby, F. R., and Mulholland, A. J. (2008) An efficient method for the calculation of quantum mechanics/molecular mechanics free energies. J. Chem. Phys. 128, 014109. - Find at Cite-U-Like