Thermodynamic integration: Difference between revisions
No edit summary |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
A detailed description of thermodynamic integration is given in reference {{cite|dorner:PRL:2018}}. | There are three implementations of thermodynamic integration (TI). The settings for these calculations are described in [[thermodynamic integration calculations]]. A detailed description of thermodynamic integration is given in reference {{cite|dorner:PRL:2018}}. An important historic paper is Kirkwood 1936 {{Cite|kirkwood:jcp:1935}}. | ||
The free energy of a fully interacting system can be written as the sum of the free energy a non-interacting reference system and the difference in the free energy of the fully interacting system and the non-interacting system | == Basic theory == | ||
The free energy of a fully interacting system can be written as the sum of the free energy a non-interacting reference system and the difference in the free energy of the fully interacting system and the non-interacting system {{Cite|dorner:PRL:2018}} | |||
::<math> F_{1} = F_{0} + \Delta F_{0\rightarrow 1} </math>. | ::<math> F_{1} = F_{0} + \Delta F_{0\rightarrow 1} </math>. | ||
| Line 12: | Line 13: | ||
::<math> H_{\lambda}= \lambda H_{1} + (1-\lambda) H_{0} </math>. | ::<math> H_{\lambda}= \lambda H_{1} + (1-\lambda) H_{0} </math>. | ||
There are many options that can be taken for the non-interacting and interacting systems. In Dorner et al., TI was first performed from a harmonic system (the ideal gas) to the full ''ab initio'' Hamiltonian (e.g., PBE) to include the anharmonic contributions {{Cite|dorner:PRL:2018}}; a second TI was then performed to increase the ''k''-mesh density and change the density functional (e.g., SCAN, HSE06). We will now describe the theory when going from a harmonic to anharmonic system, as this requires some special details. | |||
== Thermodynamic integration with harmonic reference == | == Thermodynamic integration with harmonic reference == | ||
| Line 40: | Line 43: | ||
</math> | </math> | ||
Thus, a conventional TI calculation consists of | Thus, a conventional TI calculation consists of the following steps: | ||
# determine <math>\mathbf{x}_0</math> and <math>V_{0,\mathbf{x}}(\mathbf{x}_0)</math> in structural relaxation | # determine <math>\mathbf{x}_0</math> and <math>V_{0,\mathbf{x}}(\mathbf{x}_0)</math> in structural relaxation | ||
# compute <math>\omega_i</math> in vibrational analysis | # compute <math>\omega_i</math> in vibrational analysis | ||
| Line 47: | Line 50: | ||
# integrate <math>\langle V_1 -V_{0,\mathbf{x}} \rangle</math> over the <math>\lambda </math> grid and compute <math>\Delta A_{0,\mathbf{x}\rightarrow 1}</math> | # integrate <math>\langle V_1 -V_{0,\mathbf{x}} \rangle</math> over the <math>\lambda </math> grid and compute <math>\Delta A_{0,\mathbf{x}\rightarrow 1}</math> | ||
Unfortunately, there are several problems linked with such a straightforward approach. First, the systems with rotational and/or translational degrees of freedom cannot be treated in a straightforward manner because <math>V_{0,\mathbf{x}}(\mathbf{x})</math> is not invariant under rotations and translations. Conventional TI is thus unsuitable for simulations of gas phase molecules or adsorbate-substrate systems. and this problem also imposes restrictions on the choice of thermostat used in NVT simulation (Langevin thermostat, for instance, does not conserve position of the center of mass and is therefore unsuitable for | Unfortunately, there are several problems linked with such a straightforward approach. First, the systems with rotational and/or translational degrees of freedom cannot be treated in a straightforward manner because <math>V_{0,\mathbf{x}}(\mathbf{x})</math> is not invariant under rotations and translations. Conventional TI is thus unsuitable for simulations of gas-phase molecules or adsorbate-substrate systems. and this problem also imposes restrictions on the choice of thermostat used in NVT simulation (Langevin thermostat, for instance, does not conserve the position of the center of mass and is therefore unsuitable for use in conventional TI). Furthermore, if the Hesse matrix of the harmonic system has one or more eigenvalues that nearly vanish, the simulations with <math>\lambda \rightarrow </math> 0 are likely to generate unphysical configurations, causing serious convergence issues. | ||
First, the method was formulated in terms of rotationally and translationally invariant internal coordinates <math>\mathbf{q}=\mathbf{q}(\mathbf{x})</math>, whereby the free energy of interacting system is repartitioned as follows: | == Thermodynamic integration using a Hessian reference == | ||
These problems of TI using a harmonic reference have been addressed in a series of works by Amsler et al {{Cite|bucko:studt:jctc:2021}}{{Cite|bucko:studt:jctc:2023}}. First, the method was formulated in terms of rotationally and translationally invariant internal coordinates <math>\mathbf{q}=\mathbf{q}(\mathbf{x})</math>, whereby the free energy of the interacting system is repartitioned as follows: | |||
:<math> | :<math> | ||
A_1 = A_{0,\mathbf{x}} + \Delta A_{0,\mathbf{x} \rightarrow 0,\mathbf{q}} + \Delta A_{0,\mathbf{q} \rightarrow 1} | A_1 = A_{0,\mathbf{x}} + \Delta A_{0,\mathbf{x} \rightarrow 0,\mathbf{q}} + \Delta A_{0,\mathbf{q} \rightarrow 1} | ||
Latest revision as of 15:14, 20 March 2026
There are three implementations of thermodynamic integration (TI). The settings for these calculations are described in thermodynamic integration calculations. A detailed description of thermodynamic integration is given in reference [1]. An important historic paper is Kirkwood 1936 [2].
Basic theory
The free energy of a fully interacting system can be written as the sum of the free energy a non-interacting reference system and the difference in the free energy of the fully interacting system and the non-interacting system [1]
- [math]\displaystyle{ F_{1} = F_{0} + \Delta F_{0\rightarrow 1} }[/math].
Using thermodynamic integration the free energy difference between the two systems is written as
[math]\displaystyle{ \Delta F_{0\rightarrow 1} = \int\limits_{0}^{1} d\lambda \langle U_{1}(\lambda) - U_{0}(\lambda) \rangle_{\lambda} }[/math].
Here [math]\displaystyle{ U_{1}(\lambda) }[/math] and [math]\displaystyle{ U_{0}(\lambda) }[/math] describe the potential energies of a fully-interacting and a non-interacting reference system, respectively. The coupling strength of the systems is controlled via the coupling parameter [math]\displaystyle{ \lambda }[/math]. It is neccessary that the connection of the two systems via the coupling constant is reversible. The notation [math]\displaystyle{ \langle \ldots \rangle_{\lambda} }[/math] denotes an ensemble average of a system driven by the following classical Hamiltonian
- [math]\displaystyle{ H_{\lambda}= \lambda H_{1} + (1-\lambda) H_{0} }[/math].
There are many options that can be taken for the non-interacting and interacting systems. In Dorner et al., TI was first performed from a harmonic system (the ideal gas) to the full ab initio Hamiltonian (e.g., PBE) to include the anharmonic contributions [1]; a second TI was then performed to increase the k-mesh density and change the density functional (e.g., SCAN, HSE06). We will now describe the theory when going from a harmonic to anharmonic system, as this requires some special details.
Thermodynamic integration with harmonic reference
The Helmholtz free energy ([math]\displaystyle{ A }[/math]) of a fully interacting system (1) can be expressed in terms of that of system harmonic in Cartesian coordinates (0,[math]\displaystyle{ \mathbf{x} }[/math]) as follows
- [math]\displaystyle{ A_{1} = A_{0,\mathbf{x}} + \Delta A_{0,\mathbf{x}\rightarrow 1} }[/math]
where [math]\displaystyle{ \Delta A_{0,\mathbf{x}\rightarrow 1} }[/math] is anharmonic free energy. The latter term can be determined by means of thermodynamic integration (TI) [2]
- [math]\displaystyle{ \Delta A_{0,\mathbf{x}\rightarrow 1} = \int_0^1 d\lambda \langle V_1 -V_{0,\mathbf{x}} \rangle_\lambda }[/math]
with [math]\displaystyle{ V_i }[/math] being the potential energy of system [math]\displaystyle{ i }[/math], [math]\displaystyle{ \lambda }[/math] is a coupling constant and [math]\displaystyle{ \langle\cdots\rangle_\lambda }[/math] is the NVT ensemble average of the system driven by the Hamiltonian
- [math]\displaystyle{ \mathcal{H}_\lambda = \lambda \mathcal{H}_1 + (1-\lambda)\mathcal{H}_{0,\mathbf{x}} }[/math]
Free energy of harmonic reference system within the quasi-classical theory writes
- [math]\displaystyle{ A_{0,\mathbf{x}} = A_\mathrm{el}(\mathbf{x}_0) - k_\mathrm{B} T \sum_{i = 1}^{N_\mathrm{vib}} \ln \frac{k_\mathrm{B} T}{\hbar \omega_i} }[/math]
with the electronic free energy [math]\displaystyle{ A_\mathrm{el}(\mathbf{x}_0) }[/math] for the configuration corresponding to the potential energy minimum with the atomic position vector [math]\displaystyle{ \mathbf{x}_0 }[/math], the number of vibrational degrees of freedom [math]\displaystyle{ N_\mathrm{vib} }[/math], and the angular frequency [math]\displaystyle{ \omega_i }[/math] of vibrational mode [math]\displaystyle{ i }[/math] obtained using the Hesse matrix [math]\displaystyle{ \underline{\mathbf{H}}^\mathbf{x} }[/math]. Finally, the harmonic potential energy is expressed as
- [math]\displaystyle{ V_{0,\mathbf{x}}(\mathbf{x}) = V_{0,\mathbf{x}}(\mathbf{x}_0) + \frac{1}{2} (\mathbf{x} - \mathbf{x}_0)^T \underline{\mathbf{H}}^\mathbf{x} (\mathbf{x} - \mathbf{x}_0) }[/math]
Thus, a conventional TI calculation consists of the following steps:
- determine [math]\displaystyle{ \mathbf{x}_0 }[/math] and [math]\displaystyle{ V_{0,\mathbf{x}}(\mathbf{x}_0) }[/math] in structural relaxation
- compute [math]\displaystyle{ \omega_i }[/math] in vibrational analysis
- use the data obtained in the point 2 to determine [math]\displaystyle{ \underline{\mathbf{H}}^\mathbf{x} }[/math] that defines the harmonic forcefield
- perform NVT MD simulations for several values of [math]\displaystyle{ \lambda \in \langle0,1\rangle }[/math] and determine [math]\displaystyle{ \langle V_1 -V_{0,\mathbf{x}} \rangle }[/math]
- integrate [math]\displaystyle{ \langle V_1 -V_{0,\mathbf{x}} \rangle }[/math] over the [math]\displaystyle{ \lambda }[/math] grid and compute [math]\displaystyle{ \Delta A_{0,\mathbf{x}\rightarrow 1} }[/math]
Unfortunately, there are several problems linked with such a straightforward approach. First, the systems with rotational and/or translational degrees of freedom cannot be treated in a straightforward manner because [math]\displaystyle{ V_{0,\mathbf{x}}(\mathbf{x}) }[/math] is not invariant under rotations and translations. Conventional TI is thus unsuitable for simulations of gas-phase molecules or adsorbate-substrate systems. and this problem also imposes restrictions on the choice of thermostat used in NVT simulation (Langevin thermostat, for instance, does not conserve the position of the center of mass and is therefore unsuitable for use in conventional TI). Furthermore, if the Hesse matrix of the harmonic system has one or more eigenvalues that nearly vanish, the simulations with [math]\displaystyle{ \lambda \rightarrow }[/math] 0 are likely to generate unphysical configurations, causing serious convergence issues.
Thermodynamic integration using a Hessian reference
These problems of TI using a harmonic reference have been addressed in a series of works by Amsler et al [3][4]. First, the method was formulated in terms of rotationally and translationally invariant internal coordinates [math]\displaystyle{ \mathbf{q}=\mathbf{q}(\mathbf{x}) }[/math], whereby the free energy of the interacting system is repartitioned as follows:
- [math]\displaystyle{ A_1 = A_{0,\mathbf{x}} + \Delta A_{0,\mathbf{x} \rightarrow 0,\mathbf{q}} + \Delta A_{0,\mathbf{q} \rightarrow 1} }[/math]
where [math]\displaystyle{ \Delta A_{0,\mathbf{x} \rightarrow 0,\mathbf{q}} }[/math] is the free energy change due to transformation from the system harmonic in [math]\displaystyle{ \mathbf{x} }[/math] into the system harmonic in [math]\displaystyle{ \mathbf{q} }[/math] and [math]\displaystyle{ \Delta A_{0,\mathbf{q} \rightarrow 1} }[/math] is that for the transformation of the latter into a fully interacting system. The force field for the system harmonic in [math]\displaystyle{ \mathbf{q} }[/math] is defined as:
- [math]\displaystyle{ V_{0,\mathbf{q}}(\mathbf{q}) = V_{0,\mathbf{q}}(\mathbf{q}_0) + \frac{1}{2} (\mathbf{q} - \mathbf{q}_0)^T \mathbf{\underline{H}^q} (\mathbf{q} - \mathbf{q}_0) }[/math]
where [math]\displaystyle{ \mathbf{q}_0=\mathbf{q}(\mathbf{x}_0) }[/math] and the Hesse matrix [math]\displaystyle{ \mathbf{\underline{H}}^\mathbf{q} }[/math] defined for a potential energy minimum is related to [math]\displaystyle{ \mathbf{\underline{H}}^\mathbf{x} }[/math] via [math]\displaystyle{ \mathbf{\underline{H}}^\mathbf{x} = \mathbf{\underline{B}}^T \mathbf{\underline{H}}^\mathbf{q} \mathbf{\underline{B}} }[/math] with [math]\displaystyle{ \mathbf{\underline{B}}_{i,j} = \frac{\partial q_i}{\partial x_j} }[/math] being the Wilson matrix. Note that the calculation of the term [math]\displaystyle{ \Delta A_{0,\mathbf{x} \rightarrow 0,\mathbf{q}} }[/math] is inexpensive as it corresponds to a force field to force field transformation. Furthermore, this term vanishes in the case of phase volume conserving coordinates, such as interatomic distances.
References
- ↑ a b c F. Dorner, Z. Sukurma, C. Dellago, and G. Kresse, Phys. Rev. Lett. 121, 195701 (2018).
- ↑ a b J. Kirkwood, Statistical Mechanics of Fluid Mixtures, J. Chem. Phys. 3, 300–313 (1935).
- ↑ J. Amsler, P. N. Plessow, F. Studt, T. Bucko, Anharmonic Correction to Adsorption Free Energy from DFT-Based MD Using Thermodynamic Integration, J. Chem. Theory Comput. 17, 1155-1169 (2021).
- ↑ J. Amsler, P. N. Plessow, F. Studt, T. Bucko, Anharmonic Correction to Free Energy Barriers from DFT-Based Molecular Dynamics Using Constrained Thermodynamic Integration, J. Chem. Theory Comput. 19, 2455-2468 (2023).