Non-bonded interactions¶

Non-bonded interactions in GROMACS are pair-additive:

(1)$V(\mathbf{r}_1,\ldots \mathbf{r}_N) = \sum_{i<j}V_{ij}(\mathbf{r}_{ij});$
(2)$\mathbf{F}_i = -\sum_j \frac{dV_{ij}(r_{ij})}{dr_{ij}} \frac{\mathbf{r}_{ij}}{r_{ij}}$

Since the potential only depends on the scalar distance, interactions will be centro-symmetric, i.e. the vectorial partial force on particle $$i$$ from the pairwise interaction $$V_{ij}(r_{ij})$$ has the opposite direction of the partial force on particle $$j$$. For efficiency reasons, interactions are calculated by loops over interactions and updating both partial forces rather than summing one complete nonbonded force at a time. The non-bonded interactions contain a repulsion term, a dispersion term, and a Coulomb term. The repulsion and dispersion term are combined in either the Lennard-Jones (or 6-12 interaction), or the Buckingham (or exp-6 potential). In addition, (partially) charged atoms act through the Coulomb term.

The Lennard-Jones interaction¶

The Lennard-Jones potential $$V_{LJ}$$ between two atoms equals:

(3)$V_{LJ}({r_{ij}}) = \frac{C_{ij}^{(12)}}{{r_{ij}}^{12}} - \frac{C_{ij}^{(6)}}{{r_{ij}}^6}$

See also Fig. 16 The parameters $$C^{(12)}_{ij}$$ and $$C^{(6)}_{ij}$$ depend on pairs of atom types; consequently they are taken from a matrix of LJ-parameters. In the Verlet cut-off scheme, the potential is shifted by a constant such that it is zero at the cut-off distance. Fig. 16 The Lennard-Jones interaction.

The force derived from this potential is:

(4)$\mathbf{F}_i(\mathbf{r}_{ij}) = -\left( 12~\frac{C_{ij}^{(12)}}{{r_{ij}}^{13}} - 6~\frac{C_{ij}^{(6)}}{{r_{ij}}^7} \right) {\frac{{\mathbf{r}_{ij}}}{{r_{ij}}}}$

The LJ potential may also be written in the following form:

(5)$V_{LJ}(\mathbf{r}_{ij}) = 4\epsilon_{ij}\left(\left(\frac{\sigma_{ij}} {{r_{ij}}}\right)^{12} - \left(\frac{\sigma_{ij}}{{r_{ij}}}\right)^{6} \right)$

In constructing the parameter matrix for the non-bonded LJ-parameters, two types of combination rules can be used within GROMACS, only geometric averages (type 1 in the input section of the force-field file):

(6)$\begin{split}\begin{array}{rcl} C_{ij}^{(6)} &=& \left({C_{ii}^{(6)} \, C_{jj}^{(6)}}\right)^{1/2} \\ C_{ij}^{(12)} &=& \left({C_{ii}^{(12)} \, C_{jj}^{(12)}}\right)^{1/2} \end{array}\end{split}$

or, alternatively the Lorentz-Berthelot rules can be used. An arithmetic average is used to calculate $$\sigma_{ij}$$, while a geometric average is used to calculate $$\epsilon_{ij}$$ (type 2):

(7)$\begin{split}\begin{array}{rcl} \sigma_{ij} &=& \frac{1}{ 2}(\sigma_{ii} + \sigma_{jj}) \\ \epsilon_{ij} &=& \left({\epsilon_{ii} \, \epsilon_{jj}}\right)^{1/2} \end{array}\end{split}$

finally an geometric average for both parameters can be used (type 3):

(8)$\begin{split}\begin{array}{rcl} \sigma_{ij} &=& \left({\sigma_{ii} \, \sigma_{jj}}\right)^{1/2} \\ \epsilon_{ij} &=& \left({\epsilon_{ii} \, \epsilon_{jj}}\right)^{1/2} \end{array}\end{split}$

This last rule is used by the OPLS force field.

Buckingham potential¶

The Buckingham potential has a more flexible and realistic repulsion term than the Lennard-Jones interaction, but is also more expensive to compute. The potential form is:

(9)$V_{bh}({r_{ij}}) = A_{ij} \exp(-B_{ij} {r_{ij}}) - \frac{C_{ij}}{{r_{ij}}^6}$

(10)$\mathbf{F}_i({r_{ij}}) = \left[ A_{ij}B_{ij}\exp(-B_{ij} {r_{ij}}) - 6\frac{C_{ij}}{{r_{ij}}^7} \right] {\frac{{\mathbf{r}_{ij}}}{{r_{ij}}}}$

Coulomb interaction¶

The Coulomb interaction between two charge particles is given by:

(11)$V_c({r_{ij}}) = f \frac{q_i q_j}{{\varepsilon_r}{r_{ij}}}$

See also Fig. 18, where $$f = \frac{1}{4\pi \varepsilon_0} = {138.935\,458}$$ (see chapter Definitions and Units) Fig. 18 The Coulomb interaction (for particles with equal signed charge) with and without reaction field. In the latter case $${\varepsilon_r}$$ was 1, $${\varepsilon_{rf}}$$ was 78, and $$r_c$$ was 0.9 nm. The dot-dashed line is the same as the dashed line, except for a constant.

The force derived from this potential is:

(12)$\mathbf{F}_i(\mathbf{r}_{ij}) = -f \frac{q_i q_j}{{\varepsilon_r}{r_{ij}}^2}{\frac{{\mathbf{r}_{ij}}}{{r_{ij}}}}$

A plain Coulomb interaction should only be used without cut-off or when all pairs fall within the cut-off, since there is an abrupt, large change in the force at the cut-off. In case you do want to use a cut-off, the potential can be shifted by a constant to make the potential the integral of the force. With the group cut-off scheme, this shift is only applied to non-excluded pairs. With the Verlet cut-off scheme, the shift is also applied to excluded pairs and self interactions, which makes the potential equivalent to a reaction field with $${\varepsilon_{rf}}=1$$ (see below).

In GROMACS the relative dielectric constant $${\varepsilon_r}$$ may be set in the in the input for grompp.

Coulomb interaction with reaction field¶

The Coulomb interaction can be modified for homogeneous systems by assuming a constant dielectric environment beyond the cut-off $$r_c$$ with a dielectric constant of $${\varepsilon_{rf}}$$. The interaction then reads:

(13)$V_{crf} ~=~ f \frac{q_i q_j}{{\varepsilon_r}{r_{ij}}}\left[1+\frac{{\varepsilon_{rf}}-{\varepsilon_r}}{2{\varepsilon_{rf}}+{\varepsilon_r}} \,\frac{{r_{ij}}^3}{r_c^3}\right] - f\frac{q_i q_j}{{\varepsilon_r}r_c}\,\frac{3{\varepsilon_{rf}}}{2{\varepsilon_{rf}}+{\varepsilon_r}}$

in which the constant expression on the right makes the potential zero at the cut-off $$r_c$$. For charged cut-off spheres this corresponds to neutralization with a homogeneous background charge. We can rewrite (13) for simplicity as

(14)$V_{crf} ~=~ f \frac{q_i q_j}{{\varepsilon_r}}\left[\frac{1}{{r_{ij}}} + k_{rf}~ {r_{ij}}^2 -c_{rf}\right]$

with

(15)\begin{aligned} k_{rf} &=& \frac{1}{r_c^3}\,\frac{{\varepsilon_{rf}}-{\varepsilon_r}}{(2{\varepsilon_{rf}}+{\varepsilon_r})} \end{aligned}
(16)\begin{aligned} c_{rf} &=& \frac{1}{r_c}+k_{rf}\,r_c^2 ~=~ \frac{1}{r_c}\,\frac{3{\varepsilon_{rf}}}{(2{\varepsilon_{rf}}+{\varepsilon_r})} \end{aligned}

For large $${\varepsilon_{rf}}$$ the $$k_{rf}$$ goes to $$r_c^{-3}/2$$, while for $${\varepsilon_{rf}}$$ = $${\varepsilon_r}$$ the correction vanishes. In Fig. 18 the modified interaction is plotted, and it is clear that the derivative with respect to $${r_{ij}}$$ (= -force) goes to zero at the cut-off distance. The force derived from this potential reads:

(17)$\mathbf{F}_i(\mathbf{r}_{ij}) = -f \frac{q_i q_j}{{\varepsilon_r}}\left[\frac{1}{{r_{ij}}^2} - 2 k_{rf}{r_{ij}}\right]{\frac{{\mathbf{r}_{ij}}}{{r_{ij}}}}$

The reaction-field correction should also be applied to all excluded atoms pairs, including self pairs, in which case the normal Coulomb term in (13) and (17) is absent.

Modified non-bonded interactions¶

In GROMACS, the non-bonded potentials can be modified by a shift function, also called a force-switch function, since it switches the force to zero at the cut-off. The purpose of this is to replace the truncated forces by forces that are continuous and have continuous derivatives at the cut-off radius. With such forces the time integration produces smaller errors. But note that for Lennard-Jones interactions these errors are usually smaller than other errors, such as integration errors at the repulsive part of the potential. For Coulomb interactions we advise against using a shifted potential and for use of a reaction field or a proper long-range method such as PME.

There is no fundamental difference between a switch function (which multiplies the potential with a function) and a shift function (which adds a function to the force or potential) 72. The switch function is a special case of the shift function, which we apply to the force function $$F(r)$$, related to the electrostatic or van der Waals force acting on particle $$i$$ by particle $$j$$ as:

(18)$\mathbf{F}_i = c \, F(r_{ij}) \frac{\mathbf{r}_{ij}}{r_{ij}}$

For pure Coulomb or Lennard-Jones interactions $$F(r) = F_\alpha(r) = \alpha \, r^{-(\alpha+1)}$$. The switched force $$F_s(r)$$ can generally be written as:

(19)$\begin{split}\begin{array}{rcl} F_s(r)~=&~F_\alpha(r) & r < r_1 \\ F_s(r)~=&~F_\alpha(r)+S(r) & r_1 \le r < r_c \\ F_s(r)~=&~0 & r_c \le r \end{array}\end{split}$

When $$r_1=0$$ this is a traditional shift function, otherwise it acts as a switch function. The corresponding shifted potential function then reads:

(20)$V_s(r) = \int^{\infty}_r~F_s(x)\, dx$

The GROMACS force switch function $$S_F(r)$$ should be smooth at the boundaries, therefore the following boundary conditions are imposed on the switch function:

(21)$\begin{split}\begin{array}{rcl} S_F(r_1) &=&0 \\ S_F'(r_1) &=&0 \\ S_F(r_c) &=&-F_\alpha(r_c) \\ S_F'(r_c) &=&-F_\alpha'(r_c) \end{array}\end{split}$

A 3$$^{rd}$$ degree polynomial of the form

(22)$S_F(r) = A(r-r_1)^2 + B(r-r_1)^3$

fulfills these requirements. The constants A and B are given by the boundary condition at $$r_c$$:

(23)$\begin{split}\begin{array}{rcl} A &~=~& -\alpha \, \displaystyle \frac{(\alpha+4)r_c~-~(\alpha+1)r_1} {r_c^{\alpha+2}~(r_c-r_1)^2} \\ B &~=~& \alpha \, \displaystyle \frac{(\alpha+3)r_c~-~(\alpha+1)r_1}{r_c^{\alpha+2}~(r_c-r_1)^3} \end{array}\end{split}$

Thus the total force function is:

(24)$F_s(r) = \frac{\alpha}{r^{\alpha+1}} + A(r-r_1)^2 + B(r-r_1)^3$

(25)$V_s(r) = \frac{1}{r^\alpha} - \frac{A}{3} (r-r_1)^3 - \frac{B}{4} (r-r_1)^4 - C$

where

(26)$C = \frac{1}{r_c^\alpha} - \frac{A}{3} (r_c-r_1)^3 - \frac{B}{4} (r_c-r_1)^4$

The GROMACS potential-switch function $$S_V(r)$$ scales the potential between $$r_1$$ and $$r_c$$, and has similar boundary conditions, intended to produce smoothly-varying potential and forces:

(27)$\begin{split}\begin{array}{rcl} S_V(r_1) &=&1 \\ S_V'(r_1) &=&0 \\ S_V''(r_1) &=&0 \\ S_V(r_c) &=&0 \\ S_V'(r_c) &=&0 \\ S_V''(r_c) &=&0 \end{array}\end{split}$

The fifth-degree polynomial that has these properties is

(28)$S_V(r; r_1, r_c) = \frac{1 - 10(r-r_1)^3(r_c-r_1)^2 + 15(r-r_1)^4(r_c-r_1) - 6(r-r_1)}{(r_c-r_1)^5}$

This implementation is found in several other simulation packages,7375 but differs from that in CHARMM.76 Switching the potential leads to artificially large forces in the switching region, therefore it is not recommended to switch Coulomb interactions using this function,72 but switching Lennard-Jones interactions using this function produces acceptable results.

Modified short-range interactions with Ewald summation¶

When Ewald summation or particle-mesh Ewald is used to calculate the long-range interactions, the short-range Coulomb potential must also be modified. Here the potential is switched to (nearly) zero at the cut-off, instead of the force. In this case the short range potential is given by:

(29)$V(r) = f \frac{\mbox{erfc}(\beta r_{ij})}{r_{ij}} q_i q_j,$

where $$\beta$$ is a parameter that determines the relative weight between the direct space sum and the reciprocal space sum and erfc$$(x)$$ is the complementary error function. For further details on long-range electrostatics, see sec. Long Range Electrostatics.