Alžbeta
Kubincová
,
Sereina
Riniker
* and
Philippe H.
Hünenberger
*
Laboratory of Physical Chemistry, ETH Zurich, Vladimir-Prelog-Weg 2, 8093 Zurich, Switzerland. E-mail: sriniker@ethz.ch; phil@igc.phys.chem.ethz.ch
First published on 14th October 2020
In molecular dynamics (MD) simulations of condensed-phase systems, straight-cutoff truncation of the non-bonded interactions is well known to cause cutoff noise and serious artifacts in many simulated properties. These effects can be drastically reduced by applying the truncation based on distances between neutral charge groups (CG) rather than between individual atoms (AT). In addition, the mean effect of the omitted electrostatic interactions beyond the cutoff distance can be reintroduced using the reaction-field (RF) method, where the medium outside the cutoff sphere is approximated as a dielectric continuum of permittivity equal to that of the solvent. The RF scheme is generally applied with CG truncation. This is justified for low solvent permittivities, where the RF correction is small and an AT truncation would lead to severe issues, just as in the straight-cutoff case. However, it is less appropriate for solvents with high permittivities, where the RF correction acts as a physically motivated shifting function, and a CG truncation may in turn lead to artifacts and poorer energy conservation. In this study, we assess the impact of truncation artifacts considering the 57 organic liquids which were used in the calibration of the GROMOS-compatible 2016H66 force field. Combinations of shifting or switching schemes with RF-based electrostatic interactions as well as van der Waals (Lennard-Jones) interactions are then introduced to resolve the issues with AT truncation. These shifting and switching schemes have the following properties: (i) they bring the force but not the potential energy to zero at the cutoff; (ii) as a result, they lead to a modification of the interaction that is comparatively small; (iii) they permit to conduct rigorously conservative simulations; (iv) the energies can easily be corrected back to the unmodified form, either on the fly or in a post-processing step. The mathematical formalism of these schemes is presented in detail, and their validation is performed using the 57 organic liquids.
Restricting the discussion to pairwise-additive force fields and to simulations carried out under periodic boundary conditions, the non-bonded interactions are typically split into short- and long-range components by application of a cutoff distance Rc. A specific calculation scheme is then characterized by the following components:19,20,22–24 (A) the long-range approximation used for the electrostatic and LJ interactions beyond the cutoff; (B) the application modus of the cutoff splitting, i.e. the entities considered for the truncation; (C) the pairlisting procedure for the short-range interaction; (D) the short-range smoothing possibly applied to the interaction; (E) the force-field parameters used for both electrostatic and LJ interactions. These components are discussed in turn below.
For both electrostatic and LJ interactions, there are three main options for the long-range approximation (A), namely: (i) complete omission, leading to a straight-cutoff scheme; (ii) approximation as a continuous medium, leading to a mean-field scheme; (iii) approximation as a periodic medium, leading to a lattice-sum scheme.
For the cutoff distances typically used in simulations (ranging between 0.9 and 1.4 nm), and considering the large magnitude and long-range nature of the electrostatic interactions, abrupt truncation of these interactions in a straight-cutoff approach (Fig. 1a) leads to large errors in many simulated properties.20,25–28 For the LJ interactions, the straight-cutoff scheme is less problematic.29 It mainly causes a cutoff-dependent underestimation (relative to the long-cutoff limit) of the densities, vaporization enthalpies and surface-tension coefficients,21,30,31 due to the neglect of the predominantly dispersive (i.e. attractive) interactions beyond the cutoff. The straight-cutoff approach nevertheless remains the most common scheme for LJ interactions nowadays, as it is consistent with the calibration conditions of many popular force fields. This situation might, however, change in the near future.
In the mean-field approximation, an assumption of homogeneity and isotropy is made for the medium outside the cutoff sphere. The response of this medium is mapped to a constant term added to the system energy and virial, or to a short-range correction added to the pairwise potential energy, force and virial. For the electrostatic interactions, mean-field approaches include in particular the reaction-field (RF),28,32,33 “generalized” reaction-field,34–36 Wolf damping,37 zero multipole,38–42 screening function,43–46 and isotropic periodic sum47–53 methods. For the LJ interactions, available mean-field schemes include the tail-correction1 and LJ isotropic periodic sum47,48,53–55 approaches. Given a sufficiently large cutoff, physically motivated mean-field approximations are appropriate for bulk systems, but may become problematic when the medium outside the cutoff sphere is inhomogeneous and/or anisotropic, e.g. at the surface of a macromolecule or for systems in interfacial/slab geometries.21,56,57 Note that anisotropic mean-field variants have also been proposed for these situations, considering both electrostatic interactions50,57 and LJ interactions.58–67 See also ref. 68 for an alternative route relying on emulating large cutoff distances in mean-field calculations using a lattice-sum scheme.
In the lattice-sum approximation, an assumption of exact periodicity is made for the system simulated under periodic boundary conditions, which is considered to be an infinite pseudo-crystal. By convoluting point charges with a charge-shaping function, the calculation is split into a real- and a reciprocal-space component.69 The range of the former component is made shorter than the cutoff, so that it can be calculated exactly70 (or nearly exactly in the case of a Gaussian charge-shaping function) by pairwise summation. The latter component is long-ranged but periodic and smooth in real-space, so that it converges rapidly in reciprocal-space. For the electrostatic interactions, it can be evaluated either by direct summation over reciprocal-lattice vectors, as in the Ewald71,72 method, or using grid-based fast Fourier transforms, as in the particle–particle–particle–mesh (P3M)73,74 and particle-mesh Ewald (PME)75–78 methods. Both approaches exist as well for the LJ interactions, namely LJ Ewald,30,72,79–82 LJ P3M,83,84 and LJ PME.76,85,86 Note that these lattice-sum LJ schemes may be computationally expensive unless a strict geometric-mean combination rule87 applies to the LJ parameters,30,80 or such a rule is used as an approximation during the calculation.86 The application of a lattice-sum approach is most appropriate for truly periodic systems (crystals, neglecting static and dynamic disorder), but only approximate for inherently non-periodic systems such as liquids and solutions. In practice, for the comparatively short-ranged LJ interactions, lattice-sum and mean-field approximations typically lead to comparably accurate results for bulk systems,21,78 but generally not for interfacial systems, where lattice-sum is to be preferred.30,56,83,85,86,88
Besides reducing the effect of artificial periodicity, there are three additional advantages to the use of mean-field over lattice-sum schemes for both electrostatic and LJ interactions: (i) for large systems, they enable an O(N) scaling of the computational cost, compared to an O(Nlog
N) scaling for FFT-based lattice-sum schemes;74,89 (ii) they enable a pairwise (or groupwise) partitioning of the interaction energy without additional computational cost, whereas such a direct partitioning is not possible in lattice-sum schemes (i.e. it would require additional FFTs69); (iii) for processes involving net-charge changes, the application of lattice-sum schemes is affected by intricate methodological issues.90
A second characteristic of the non-bonded interaction scheme is the application modus (B) of the cutoff splitting, which may be based on distances between: (i) individual atoms, resulting in an atomic (AT) cutoff scheme; (ii) atom groups, resulting in a charge-group (CG) cutoff scheme. Here, charge-groups are small groups of close covalent neighbors within a molecule, for which the partial charges should add up to an integer value. Historically, charge groups truncation was found necessary to permit the simulation of polar liquids using a straight-cutoff scheme for the electrostatic interactions.91–94 In this way, the cutoff noise for Coulombic interactions involving neutral charge groups was reduced from O[Rc−1] for straight-cutoff with AT truncation to O[Rc−3] for straight-cutoff with CG truncation. In addition, the use of a CG-based short-range pairlist95 represented a simple way to reduce memory requirement and computational cost of the pairlist generation. Note, however, that a well-implemented AT scheme relying on a group-based extended pairlist can reach a very comparable level of computational effort and memory usage. In practice, there are several reasons why modern force fields should probably favor AT over CG truncation: (i) if the potential-energy function of a mean-field scheme does not exactly vanish at the cutoff, CG truncation leads to loss of energy conservation and heating,91,92 as well as other artifacts;28,52,96–98 (ii) in the context of lattice-sum and of some mean-field schemes, the short-range potential-energy function actually vanishes at the cutoff, and an AT truncation then becomes the natural choice; (iii) the definition of neutral charge-groups within molecules generally requires charge adjustments that are rather arbitrary as well as difficult to automate in the context of force-field design.99
The third characteristic of the non-bonded interaction scheme concerns the pairlisting procedure (C), which may rely on: (i) a pairwise summation that is exact at each simulation timestep; (ii) a summation dictated by an approximate pairlist. Here, common time-saving techniques include Verlet95 and twin-range100,101 schemes, where the pairlist is only recalculated at periodic intervals. These variants are in principle designed to increase efficiency while negligibly affecting the simulated properties. However, a number of cases have been reported where the implementation of the method and/or the associated parameters may cause serious artifacts in simulations.21,102,103
The fourth important aspect concerns the possible short-range smoothing of the interaction22,23,96 (D), where the options are: (i) no smoothing applied; (ii) application of a shifting (SH) function; (iii) application of a switching (SW) function. The SH approach22,23,104–109 refers to the modification of the short-range interaction over the entire range from 0 to Rc, so as to enforce specific continuity conditions at Rc (e.g. vanishing potential-energy function along with a number of its derivatives). The SW approach104,107,108,110,111 refers to a similar modification applied only over a limited range [Rc − δ, Rc] with 0 < δ < Rc, and enforcing continuity conditions at Rc − δ as well. Switching has the advantage over shifting that the very-short-range interactions (below Rc − δ) remain unmodified, but the drawback that it may induce large forces in the range [Rc − δ, Rc] if δ is chosen small. Historically, SH and SW schemes (with either CG or AT truncation) were applied for the electrostatic interactions to reduce noise and artifacts introduced by straight-cutoff truncation (Fig. 1b). However, the use of such ad hoc schemes without physical motivation may cause major disruptions in the simulated structural, thermodynamic and dynamical properties.96,108,111–115 The SW and SH approaches have also been applied to electrostatic interactions in complement to mean-field schemes, for example in the switched RF approach,116 or in variants of the Wolf-damping method.114,117–122 In view of the small LJ forces at typical cutoff distances, the application of SH or SW schemes to the LJ interactions has been less frequently considered,109,111,123 although it may still be useful if one wishes to enforce a strict energy conservation in simulations. Note that SH and SW schemes are irrelevant in the lattice-sum case, where the cutoff is only a numerical parameter and the level of noise is (nearly) exclusively controlled by the accuracy of the reciprocal-space evaluation.
Finally, the choice of appropriate force-field parameters (E) and the options selected for points A–D above (also including the cutoff distance Rc itself, and the possible use of specific LJ combination rules) are inter-dependent. This is because force-field parameters are effective quantities, which partly compensate for approximations made in the functional-form representation. As a result, a force field is only expected to provide accurate results under simulation conditions that are close to the ones selected during its calibration. For example, the use of a mean-field or lattice-sum long-range component is not recommended for a force field that was calibrated with straight-cutoff, both in the context of LJ interactions21,31,55,85,124–126 and electrostatic interactions.21,127,128 Although the cutoff-dependence of the simulated properties may be reduced, the deviations from experiment are likely to increase, unless an appropriate reparametrization is performed.
The present work focuses on the implementation of one of the best established mean-field approaches for electrostatic interactions, namely the RF method.28,32,33 In the context of molecular liquids, this scheme is underpinned by a particularly sound theoretical basis, as it rests on the Onsager model for a dipole at the center of a cavity immersed in a dielectric medium.129 It is also the standard electrostatic scheme compatible with the GROMOS force field.130–132 The RF scheme depends on the permittivity εRF of the dielectric medium outside the cutoff sphere, which is generally taken to be that of the solvent (or pure liquid) considered. In its usual implementation (see eqn (1) in the Theory section), the potential energy vanishes at the cutoff, but this is generally not the case for the force (Fig. 1c, green curve with non-zero derivative at Rc). In the limit εRF → 1 (vacuum), the RF scheme becomes like a straight-cutoff scheme (Fig. 1a), except for the introduction of a constant offset in −Rc−1 that brings the function to zero at Rc. In the limit εRF → ∞ (conducting), the RF scheme becomes similar to a physically motivated SH scheme (Fig. 1b, orange curve), in which the potential energy and its first derivative vanish at Rc. The RF scheme is generally applied with CG truncation, which is justified for low solvent permittivities. In this case, the RF correction is small and an AT truncation would lead to severe issues, just as in the straight-cutoff case (e.g. noise in O[Rc−1] rather than O[Rc−3] for pairs of neutral charge groups). However, a number of studies28,98,101,133,134 have suggested that the use of a RF/AT scheme gives similar or improved results compared to the RF/CG scheme for aqueous systems.
The goal of this study is to assess the influence of the cutoff treatment on selected properties of pure liquids, as well as to eliminate the need for charge groups by introducing SH and SW schemes in combination with an AT truncation of the RF-based electrostatic interactions (and of the LJ interactions), which are appropriate for low as well as high values of εRF. This work follows analogous developments in the context of Wolf damping119,120 and isotropic periodic sum51 methods. The proposed RF(+LJ)/AT/SH and RF(+LJ)/AT/SW schemes have the following properties: (i) they bring the force but not the potential energy to zero at the cutoff; (ii) as a result, they lead to a modification of the interaction that is comparatively small; (iii) they permit rigorously conservative simulations; (iv) the energies can easily be corrected back to the unmodified form, either on the fly or in a post-processing step. The main idea is to shift/switch the force to zero at Rc, and let the potential energy level-off to a constant (Fig. 1d). This results in an energy contribution involving all atom pairs at a distance larger than Rc. However, this term is easy to calculate and induces neither a force nor a virial contribution. The benefit of this approach is that the continuity of the potential energy as well as that of its first (and second) derivative at Rc can be achieved (conservative scheme), but with a limited perturbation of the original RF forces compared to a corresponding shifting/switching of the potential energy (Fig. 1b).
In this article, the mathematical formalism of these RF(+LJ)/AT/SH and RF(+LJ)/AT/SW schemes is presented in detail. This is followed by their validation in terms of the densities and vaporization enthalpies of the 57 organic liquids considered in the calibration of the GROMOS-compatible 2016H66 force field.135 The effects of different schemes on the radial distribution functions (RDFs) and dipole–dipole orientation correlation functions (DOCs) of some model liquids are also analyzed.
![]() | (1) |
![]() | ||
Fig. 2 Pairwise Coulomb plus RF potential energy and interatomic force close to the cutoff distance. The curves correspond to a cutoff distance Rc = 1.4 nm and atomic charges of the same sign. (a) The potential energy vRF,ij of eqn (1) as a function of the interatomic distance rij. (b) The force fRF,ij as a function of rij, which is the negative derivative of the potential energy and corresponds to the force exerted by atom i on atom j projected along the interatomic vector rij = rj − ri. |
In the limit εRF → ∞ (e.g. orange curve for εRF = 80, representative for water), the interatomic force fRF,ij nearly vanishes at the cutoff distance Rc. Thus, in this high-permittivity regime, the RF interaction plays the role of a nearly perfect shifting function, a favorable situation to avoid cutoff noise and pair-distribution artifacts. However, in this regime, the potential energy rises again shortly beyond Rc for charges of the same sign, i.e. the interatomic force becomes unphysically attractive (or repulsive for charges of opposite signs). Such a situation may occur when using CG truncation,28 because interacting CG pairs that have their centers close to Rc may involve some interatomic distances that actually exceed Rc. In contrast, this situation is excluded with AT truncation.
In the limit εRF → 1 (e.g. green curve for εRF = 2, representative for a non-polar organic solvent), the RF interaction becomes progressively closer to a Coulomb interaction with straight-cutoff truncation, i.e. the RF screening no longer acts like a shifting function. In this low-permittivity regime, an AT truncation scheme is expected to induce serious artifacts in the simulated properties.28 These can be largely remedied by a CG-based truncation.
The consequences of these features on simulated pair-distribution functions are illustrated in Fig. 3 for four model liquids, in the form of RDFs calculated using either a RF/CG or a RF/AT scheme for the electrostatic interactions. The results obtained using a lattice-sum scheme are shown for comparison. In addition, the corresponding DOCs and distance-dependent Kirkwood factors G(r) are depicted in Fig. 4 for chloroform and water.
![]() | ||
Fig. 3 Radial distribution functions (RDFs) for four model liquids: modified GROMOS CCl4 models136 with a charge of +0.4 e (a) or +0.86 e (b) introduced on the central carbon atom (and neutralized by negative charges on the chlorine atoms), the GROMOS CHCl3 model137 (c), and the SPC water model93 (d). The RDFs g(r) are calculated for the carbon (a–c) or the oxygen (d) atoms. The electrostatic interactions are calculated using RF/CG (blue lines) or RF/AT (red lines), in both cases using a cutoff distance Rc of 1.4 nm (vertical dashed line), as well as with lattice-sum (thick gray lines). For the LJ interactions, the same scheme (i.e. CG or AT) is used as for the electrostatic interactions. The values of εRF are 2.24 for CCl4, 4.81 for CHCl3 and 61 for SPC water. |
![]() | ||
Fig. 4 Dipole–dipole orientation correlation functions (DOCs) and distance-dependent Kirkwood factors G(r) for (a) CHCl3 (GROMOS CHCl3 model137), and for (b) water (SPC water model93). The DOCs c(r) correspond to the average of the angle-cosine between the dipole-moment vectors of the two molecules, binned as a function of distance based on the carbon (a) or the oxygen (b) atoms. The G(r) function is defined by eqn (23). The electrostatic interactions are calculated using RF/CG (blue lines) or RF/AT (red lines), in both cases using a cutoff distance Rc of 1.4 nm (vertical dashed line), as well as with lattice-sum (thick gray lines). The same settings were used as for Fig. 3. |
For the three low-permittivity systems (Fig. 3a–c), the use of AT truncation leads to an artificial peak in the RDF at Rc, particularly pronounced for the CCl4 model with high partial charges. The reason is that molecule pairs at a distance close to Rc can take advantage of a strong potential-energy decrease when they adopt relative positions and orientations that maximize the number of oppositely-charged atom pairs just inside the cutoff and of like-charged atom pairs just outside the cutoff. In contrast, the RF/CG curves are smooth at Rc and very close to the reference lattice-sum curves.
In the high-permittivity case of water (Fig. 3d), the AT scheme results in a small wiggle in the RDF around Rc, which is essentially absent for the RF/CG scheme. However, an opposite difference is observed for the DOC of water (Fig. 4b), where the RF/CG scheme shows negative correlations below Rc and positive ones above, which is also reflected by a dip in the corresponding G(r). In contrast, the RF/AT curve is very close to the reference lattice-sum one. This effect in the RF/CG case is probably related to the slight like-charge attraction between the hydrogen atoms beyond Rc that can occur for molecule pairs in specific orientations with their charge-group centers (oxygen atoms) just below Rc. Note that these observations on the differences between RF/CG and RF/AT for water were already reported previously in ref. 28 (see Fig. 2–4 therein; note that the labels for the CG/1 and AT/2 curves are mistakenly inverted in Fig. 2a; see also ref. 101). For CHCl3, the effect on the DOC is very small (Fig. 4a), likely due to the much smaller partial charges and dipole moment. The Kirkwood factors with lattice-sum and RF/CG are in good agreement up to Rc and diverge afterwards. The use of an AT cutoff causes a slightly stronger alignment of the dipoles close to the cutoff distance compared to the lattice-sum reference.
The proposed AT schemes will be further referred to as modified schemes (mod), to distinguish them from the standard (std) implementation. The modified schemes involve either an additive polynomial shifting function or an additive spline switching function that levels off the force but no the potential energy to zero at Rc. In order to be comparable with the standard energies, a correction can be added to the modified energies, either on the fly or as a post-processing step. These recalculated energies will be referred to as corrected (cor) energies.
![]() | (2) |
![]() | (3) |
![]() | (4) |
![]() | (5) |
![]() | (6) |
Turning to the modified schemes, it is convenient to introduce a superscript Ω standing for the modification type, namely “SH” for shifting or “SW” for switching. For these modified schemes, eqn (3) is altered to
![]() | (7) |
![]() | (8) |
![]() | (9) |
ũΩω(r) = uω(r) + uΩω(r) | (10) |
Since the summation in eqn (9) involves a mere constant, this equation can be converted to
![]() | (11) |
Following the objectives of Section 2.2, the conditions to impose on uΩω(r) are
![]() | (12) |
ũΩω(0) = uω(0) i.e. uΩω(0) = 0. | (13) |
In the switching case, conditions similar to eqn (12) are also imposed to enforce corresponding continuity constraints at the onset of the switching range.
The forms of selected functions uΩω(r) satisfying these conditions are detailed in the two following sections for the shifting (Ω = SH, eqn (14)) and switching (Ω = SW, eqn (15)) schemes. Note that the indicated equations only specify these functions in the relevant range up to Rc, as the contribution of ũΩω(r) beyond Rc is already encompassed in the long-range term Ulnr,Ωω. It should also be stressed that the retained functional forms are dictated by considerations related to the above continuity conditions and to computational efficiency, but they are by no means unique.
uSHω(r) = aω,mrmω + aω,nrnω with 0 < mω < nω, | (14) |
The exponents mω and nω are related to the distance scale of the modification. When the exponents are high, most of the damping of the force towards zero is operated over a small distance range below the cutoff, i.e. the decrease of the force becomes an increasingly close approximation to a step function. When the exponents are low, the force is shifted more progressively towards zero over the entire distance range from 0 to Rc. The choice of even integer exponents is also advantageous in terms of computational efficiency. In this work, only pairs of even integers with nω = mω + 2 are considered. In addition, the condition mω ≥ 4 is imposed, because the choice mRF = 2 for the RF interaction would involve altering the quadratic term of the potential energy, i.e. changing the effective permittivity εRF. This option is nevertheless briefly discussed in the ESI.†
As an illustration, the curves for the modified potential energy cRF,ijũSHRF and the associated interatomic force cRF,ijSHRF are displayed in Fig. 5a and c for two variants with mRF–nRF combinations of 4–6 (purple) and 12–14 (orange), respectively. A more detailed analysis of the amount of change in the influence function introduced by different exponent combinations in the context of RF-based electrostatic interactions is provided in Appendix B. This analysis indicates that mω, the smaller of the two exponents, is the one that predominantly determines the shape of the modified influence function.
![]() | ||
Fig. 5 Influence of the SH (left) and SW (right) modifications on the pairwise Coulomb plus RF potential energy cRF,ijũΩRF (top), interatomic force cRF,ij![]() |
![]() | (15) |
Similarly to the exponents mω and nω of the SH scheme, the parameter δω specifies the distance scale of the SW scheme. In the limit of a small δω, the decrease of the force becomes an increasingly close approximation to a step function. When δω is chosen larger, the force is shifted more progressively towards zero over a larger distance interval below Rc. However, for values of the parameter δω higher than a given threshold δmaxω, the modified influence function ũSWω presents a spurious minimum in the range [Rc–δω, Rc]. This situation should be avoided as it may lead to artifacts. For this reason, it is preferable to define the switching range by means of a scaled parameter δsclω in the interval (0,1], as
![]() | (16) |
As an illustration, the curves for the modified potential energy cRF,ijũSWRF and the associated interatomic force cRF,ijSWRF are displayed in Fig. 5b and d for two variants with δsclRF = 0.78 (purple) and 0.36 (orange), respectively. Comparing to the SH scheme in Fig. 5a and c, one sees that for a sensible range of exponents mω and nω in SH or distance parameters δsclω in SW, both modification schemes can yield analogous influence functions.
![]() | (17) |
Note that neither the standard nor the corrected energies encompass a long-range component for the LJ interactions, e.g. in the sense of a tail-correction,1 in agreement with the calibration conditions for the GROMOS force fields.21,135 Such a tail-correction could (and probably should) be added in the future, but this would require a consistent force-field reparametrization.
The calculations for each compound included 1 ns simulations in the liquid phase and 10 ns simulations in the gas phase. In both cases, the timestep was set to 2 fs, all bond lengths were constrained using SHAKE140 with a relative geometric tolerance of 10−4, and the coordinates and energies were written to file every 1 ps.
The liquid-phase simulations were carried out using MD for a cubic box of 512 molecules under periodic boundary conditions in the isothermal–isobaric ensemble. The average temperature and pressure were maintained close to 298.15 K (unless indicated otherwise in Table S1 of the ESI†) and 1 bar using a Berendsen thermo- and barostat,141 with coupling times of 0.1 and 0.5 ps, respectively, and a compressibility of 4.575 × 10−4 kJ−1 mol nm3 for the barostat. The center-of-mass translational motion was removed every 2 ps. The simulations were started from pre-equilibrated configurations, and an additional 0.1 ns equilibration was performed for every new parameter setting. The gas-phase simulations were carried out using stochastic dynamics (SD) for a single isolated molecule with a friction coefficient of 91 ps−1. The reference temperature was identical to that in the corresponding liquid simulation.
All simulations presented in the main article relied on a cutoff distance Rc = 1.4 nm, a pairlist updated every timestep, the inclusion of long-range electrostatic interactions, and the omission of the long-range LJ component. These settings are compatible with the parametrization conditions of the 2016H66 force field.21,135 The results of analogous simulations with Rc = 1.2 nm instead are provided in the ESI.†
Five schemes were considered for the long-range electrostatic interactions in the liquid-phase simulations: (i) a lattice-sum scheme (LS); (ii) the standard RF scheme with CG cutoff (RF/CG); (iii) the standard RF scheme with AT cutoff (RF/AT); (iv) SH-modified RF schemes with AT cutoff (RF/AT/SH); (v) SW-modified RF schemes with AT cutoff (RF/AT/SW). The lattice-sum scheme relied on the P3M method,73,74 using a Gaussian charge-shaping function of width parameter 0.4 nm−1 and a grid of 64 × 64 × 64 points. For the RF schemes, the permittivity εRF was set to the experimental value for the compound (see Table S1 of the ESI†). For the LJ interactions in the first series of simulations, straight-cutoff truncation was used with a CG truncation when using RF/CG, or an AT truncation in all other cases.
After determining appropriate parameter choices for the SH and SW schemes applied to the electrostatic interactions, a second series of calculations considered the possibility of also modifying the LJ interactions with a SH or SW scheme. The additional schemes are labeled RF+LJ/AT/SH and RF+LJ/AT/SW. They rely on the same parameter choices for the RF modifications, selected as appropriate in the preceding phase.
The gas-phase simulations always relied on the same electrostatic and LJ scheme as used in the corresponding liquid-phase simulation (including the possible application of the SH or SW modifications), with only two differences. The RF permittivity εRF was set to 1, and the lattice-sum case was mapped to exactly Coulombic interactions using straight-cutoff with AT truncation. Note that for the small molecules considered here, intramolecular interatomic distances larger than Rc never occur in the simulations.
In addition, simulations for four model liquids were performed to assess the magnitude of possible cutoff artifacts (shown in Fig. 3, 4, 5, 8 and 9). The corresponding topologies are based on the standard GROMOS models for chloroform137 and carbon tetrachloride,136 as well as the simple-point-charge (SPC) water model.93 For CCl4, the original model does not involve partial charges. Thus, charges of +0.4 e or +0.86e were introduced on the carbon atom (and neutralized by negative charges on the chlorine atoms) to test the effect of a molecular quadrupole. These simulations were carried out in the canonical ensemble at 298.15 K and densities set close to the corresponding experimental values. For water, they involved 2200 molecules instead of 512. For chloroform and water, the simulations lasted 10 ns to obtain converged DOCs and Kirkwood factors. For the other two solvents 1 ns simulations were performed. Besides this, the same parameters were used as for the other liquid simulations.
The liquid density ρliq as well as the total potential energies Uliq and Ugas were extracted from the trajectories using the GROMOS++ ene_ana program. The potential energies were corrected according to eqn (17), and the result used to calculate the vaporization enthalpy as
![]() | (18) |
The static relative dielectric permittivities ε were determined using the applied electric-field method.143,144 To this purpose, an external electric field Eextz ranging between 0.01 and 1 e nm−2 was applied along the z-direction of the computational box. For the lattice-sum calculations, the local field determining the forces on the individual charges is equal to Eextz. However, for the RF/CG calculations, this local field must be reduced by a factor 3εRF/(1 + 2εRF) (see eqn (14) in ref. 143). This arises as a consequence of the non-Coulombic nature of the integrated dipole–dipole interaction tensor. For RF/AT, it turns out that the integration of this tensor leads to a result that is very close to the lattice-sum rather than the RF/CG one (see Appendix B in ref. 28). Consequently, for RF/AT, the local field determining the forces on the individual charges is set equal to Eextz, as in the lattice-sum case. The resulting average box dipole moment 〈Mz〉 in the z-direction was evaluated from 0.5 ns simulations at each selected field strength. The permittivity ε was then calculated using the GROMOS++ program eps_field according to
![]() | (19) |
The self-diffusion coefficients D were calculated based on the liquid simulations using the GROMOS++ program diffus, which relies on the Einstein relation145,146
![]() | (20) |
The RDFs g(r) were calculated with the GROMOS++ program rdf according to
![]() | (21) |
![]() | (22) |
![]() | (23) |
As can be seen in Fig. 6, the 4–6 SH and the 0.75 SW schemes appear to reproduce the lattice-sum results most accurately with Rc = 1.4 nm. The same holds when considering a 1.2 nm cutoff instead (see Fig. S1 of the ESI†). These specific parameter combinations are thus retained as the most appropriate for the implementation of smooth RF/AT/SH and RF/AT/SW schemes. For these specific schemes, most of the deviations in ρliq and ΔHvap relative to lattice-sum are within one standard deviation of the purely statistical error affecting the calculated properties. Since the smoothing corrects for discontinuities at the cutoff but not for errors related to the instantaneous inhomogeneity/anisotropy of the medium outside the cutoff sphere, the above observation suggests that the errors related to the cutoff discontinuities are more pronounced than those related to the continuum approximation, at least for simple bulk systems and for the longest cutoff distance of 1.4 nm.
The validation of the selected 4–6 SH and 0.75 SW schemes in the context of RF/AT electrostatics on the full set of 57 organic compounds is shown in Fig. 7 for Rc = 1.4 nm (and in Fig. S2 of the ESI† for Rc = 1.2 nm). In addition to ρliq and ΔHvap, the static relative dielectric permittivities ε and the self-diffusion coefficients D are also compared to the lattice-sum results. For both cutoff values, a direct comparison to the experimental data is also shown in Fig. S3 and S4 of the ESI.† However, the comparison against experiment is viewed here as less relevant than the comparison against lattice-sum, because it mixes errors from the force-field parametrization with those resulting exclusively from the non-bonded scheme.
As was observed for the calibration set (Fig. 6), the 4–6 SH and 0.75 SW schemes substantially reduce the deviations in ρliq and ΔHvap relative to lattice-sum for the validation set (Fig. 7a–c). Note, however, that the agreement with lattice-sum was already good for the original RF/CG and RF/AT schemes.
The static relative dielectric permittivities ε (Fig. 7d) calculated using the RF/AT/SH and RF/AT/SW schemes remain close to those obtained with the RF/AT scheme. These values also agree very well with the reference lattice-sum values. The correlation of the RF/CG permittivities with lattice-sum is significantly worse compared to the schemes using an AT cutoff. For a few compounds, the present permittivity results are compared in the ESI† to values calculated using corresponding fluctuation formulae, and found to also agree very well.
The self-diffusion coefficients D (Fig. 7e) obtained using RF/AT tend to be somewhat lower compared to the results obtained using lattice-sum and the three other RF schemes. This reduced diffusion likely results from the preferential positioning of molecule pairs close to the cutoff distance Rc, which appears in the form of an artificial peak in the RDF (Fig. 5e and f). The modification schemes eliminate these RDF artifacts and, as a result, the diffusive behavior in RF/AT/SH and RF/AT/SW matches very well the lattice-sum and RF/CG results.
As mentioned above, the choice mRF = 2 and nRF = 4 was not considered for the SH scheme. However, if one accepts to use a SH scheme corresponding to an altered effective permittivity εRF, the simplest alternative is to use the unmodified RF interaction with εRF → ∞. In this case, the corrected energy Ucor is not evaluated using eqn (17), but by re-calculating the standard potential energy according to the actual permittivity εRF. For completeness, this option was also explored and the corresponding results are shown in Fig. S5 of the ESI† for Rc = 1.4 nm (and Fig. S6 of the ESI† for Rc = 1.2 nm). Even this simple modification leads to a significant improvement of the agreement with the lattice-sum results, although the 4–6 SH scheme still performs slightly better.
Another option to consider is to also apply a correction similar to that of eqn (17) to the virial during the simulation. The results without and with such a correction in the context of the RF/AT/SH scheme are compared in Fig. S7 of the ESI† for Rc = 1.4 nm (and Fig. S8 of the ESI† for Rc = 1.2 nm). The virial correction slightly worsens the results and was thus not adopted. In particular, the values for benzene (like CCl4, a quadrupolar molecule with no dipole moment) differ significantly, due to changes in the RDF at short-range, as shown in Fig. S9 of the ESI.†
Finally, in order to verify that the final RF/AT/SH and RF/AT/SW schemes are indeed exempt of the cutoff artifacts observed in the original RF/CG and RF/AT schemes, the RDFs, DOCs and Kirkwood factors G(r) analogous to those of Fig. 3 and 4 are shown in Fig. 8 and 9, along with the curves from lattice-sum as a reference. Except for the slight oscillation in the RDF for water observed previously for RF/AT, which is still present, the RF/AT artifacts in the RDFs as well as the RF/CG artifact in the DOC of water have both been entirely removed. It can be seen in Fig. 9a that in the low-permittivity regime, the distance-dependent Kirkwood factor still deviates from the lattice-sum reference, resembling the RF/AT case (Fig. 4a). A similar alignment of RF/AT with RF/AT/SH and RF/AT/SW is also observed for the dielectric permittivity (Fig. 7 and Fig. S2 of the ESI†), which is a dipolar property as well. However, it can be argued that due to the poor correlation of static dielectric permittivities with experimental values irrespective of the cutoff treatment (Fig. S3 and S4 of the ESI†), this finding is of little practical relevance.
![]() | ||
Fig. 8 Radial distribution functions (RDFs) for four model liquids. This figure is analogous to Fig. 3 (see the corresponding caption for more information). Comparison of results with lattice-sum (thick gray), 4–6 RF/AT/SH (dotted) and 0.75 RF/AT/SW (dashed). Straight-cutoff with AT truncation is used for the LJ interactions in all cases. |
![]() | ||
Fig. 9 Dipole–dipole orientation correlation functions (DOCs) and distance-dependent Kirkwood factors G(r) for CHCl3 and H2O. This figure is analogous to Fig. 4 (see the corresponding caption for more information). Comparison of results with lattice-sum (thick gray), 4–6 RF/AT/SH (dotted) and 0.75 RF/AT/SW (dashed). Straight-cutoff with AT truncation is used for the LJ interactions in all cases. |
As can be seen in Fig. 10, the deviations of both ρliq and ΔHvap appear to follow systematic trends with Rc = 1.4 nm (and Rc = 1.2 nm, see Fig. S10 of the ESI†). Relative to the lattice-sum reference, the deviations in both quantities become more limited when the modification scheme acts mainly at large distances, i.e. just below the cutoff (high exponents for SH, short switching distance for SW). The reason for these pronounced trends resides in the fact that the LJ interactions close to the cutoff distance are dominated by the dispersive (attractive) component. As a result, the modification scheme slightly damps the cohesive forces in the system, more so when the modification extends into the shorter distance range. The effect is more significant for ρliq, because the modification influences the virial, provoking a slight expansion of the system and a decrease in the density. It is less significant for ΔHvap, because the potential energy is corrected for the effect of the modification, i.e. the change only reflects the effect of the slightly altered density, not of the altered energetics.
For SW, the choice of a 0.05 SW scheme, which only becomes active at a distance of 0.025 nm from Rc, leads to reasonably small deviations of ρliq and ΔHvap, and was retained for the following. The SH scheme is less suited to achieve similar distance scales for the modification, because the magnitude of the required exponents would give rise to numerical instabilities. For example, the 0.05 SW scheme could be approximated by a SH scheme where the lower exponent is about 200, which would lead to coefficients aLJ6,m and aLJ6,n on the order of 10−30. For the subsequent validation, the 36–38 SH scheme was selected as a good compromise.
The validation of the selected 36–38 SH and 0.05 SW schemes for LJ interactions (along with 4–6 SW or 0.75 SH schemes for RF-based electrostatic interactions) on the full set of 57 organic compounds is shown in Fig. 11 for Rc = 1.4 nm (and for Rc = 1.2 nm in Fig. S11 of the ESI†).
As was observed for the calibration set (Fig. 10), a slight systematic underestimation of ρliq and ΔHvap is observed. As expected, this trend is more pronounced for the SH compared to the SW scheme (Fig. 11a-c). The self-diffusion coefficients D (Fig. 11d) seem to be sensitive to the perturbation introduced in the potential-energy function, but the similar least-square fits to the data indicate that this might be a statistical rather than a systematic effect.
Here again, it is of interest to consider the application of a correction similar to that of eqn (17) to the virial during the simulation. Although this option was not retained in the case of the RF-based electrostatic interactions, in the context of the LJ interactions, it may provide a possibility to counteract the systematic decrease in density resulting from the modification of the potential-energy function. The results without and with such a virial correction, applied only for the LJ interactions in the context of the RF+LJ/AT/SH and RF+LJ/AT/SW schemes are compared in Fig. S12 of the ESI† for Rc = 1.4 nm (and for Rc = 1.2 nm in Fig. S13 of the ESI†). This virial correction noticeably improves the results. For this reason, one might consider adopting it in future work.
To address these issues, simple modification schemes are proposed here, which are compatible with an AT truncation for both RF-based electrostatic as well as LJ interactions. The objective of these modifications is to ensure that the pairwise force and its derivative vanish at the cutoff distance. However, instead of leveling the potential energy to zero, a constant contribution is added for all atom pairs at a distance larger than the cutoff. The calculation of the latter component is inexpensive and the modified potential energy permits to conduct rigorously conservative simulations. The energies can easily be corrected back to the unmodified form, either on the fly or in a post-processing step. Two different types of modification were considered.
The SH schemes rely a two-terms polynomial added to the pairwise interaction energy. The effective range of the shifting is determined by the selected even integer exponents mω and nω (with nω = mω + 2, mω ≥ 4). Due to the restriction to small even integer exponents, the calculation of the modified forces induces only limited overhead in the pairwise interaction calculation, provided that the exponents are pre-selected and hard-coded in the program.
The SW schemes rely on a cubic spline function added to the pairwise force. The perturbation range is determined by a scaled switching distance δsclω, with δsclω in the range (0,1]. The computational overhead of this scheme may be slightly higher, considering that its straightforward implementation adds two conditional (if) statements in the pairwise interaction calculation (or only one if the same switching range is used for the electrostatic and LJ interactions). Alternatively, the use of three separate range-based pairlists would permit to avoid these conditional statements, at the cost of more implementation efforts. In both cases, the scaled switching distance could be given as an input parameter to the simulation, and does not need to be hard-coded.
In practice, using the GROMOS code and RF/AT with 1.4 nm cutoff as a reference, the introduction of a shifting function in RF/AT/SH is found to increase the computational cost of the non-bonded interaction calculation by less than 1%, while the introduction of a switching function in RF/AT/SW increases it by about 8%. In contrast, the reciprocal-space evaluation involved in a lattice-sum P3M calculation (FFT operations) with 64 grid points in each dimension is much more expensive, with an increase in the calculation cost by a factor 2.8.
Simulations involving a set of 11 organic liquids were used to calibrate appropriate distance parameters for both schemes, separately for the RF-based electrostatic and the LJ interactions. Further simulations considering 57 organic liquids were then used to validate the retained SH and SW schemes in terms of liquid density, vaporization enthalpy, relative dielectric permittivity, and diffusion constant.
For the electrostatic interactions, an appropriate modification improves or, at least, does not mitigate the agreement with lattice-sum for all the monitored properties. For the permittivity calculation, it should be noted that the same equations are to be applied for the (modified) RF/AT schemes as for lattice-sum, whereas the equations differ in the RF/CG case. Both the SH and SW schemes can be tuned to give very similar modifications, and are in principle equally adequate for RF-based electrostatic interactions.
For the LJ interactions, even the least disruptive modifications increase the deviations relative to the lattice-sum reference. This is due to the slight damping of the dispersive (cohesive) interactions, and a resulting decrease in density. The effect is more pronounced for the density itself compared to the vaporization enthalpy. Due to the use of corrected energies, the change in vaporization enthalpy only reflects the effect of the altered density, not of the altered energetics. Correcting the virial similarly during the simulation noticeably improves the results for both quantities. One might thus consider adopting this strategy in future work. In the context of LJ interactions, the SW scheme leads to smaller deviations relative to lattice-sum compared to the SH scheme, because it enables shorter modification ranges without giving rise to numerical problems.
The influence of the modification schemes introduced in this work on the simulated properties are limited, suggesting that these schemes can be used together with the GROMOS force fields without requiring a reparametrization and without incurring a pronounced accuracy loss. Further tests on more complex (multi-component, biomolecular) systems will be performed, also considering the occurrence of charged species (ions, ion pairs, charged residues). It is important to stress that the modifications introduced here for the LJ interactions do not account for long-range LJ interactions. In the future, a proper LJ tail correction could (and probably should) be added, which will require a consistent force-field reparametrization.
![]() | (24) |
![]() | (25) |
![]() | (26) |
![]() | (27) |
![]() | (28) |
![]() | (29) |
![]() | (30) |
This unitless quantity is shown in logarithmic form as a function of mRF and nRF in Fig. 12. From this analysis, it appears that mRF, the smaller of the two exponents, is the one that predominantly determines the shape of the modified influence function.
![]() | ||
Fig. 12 Amount of change introduced by the shifting function into the RF influence function for different values of its parameters. The integrated deviation Δu of eqn (30) is shown as a function of the exponents mRF and nRF in eqn (14). The graphs rely on a cutoff distance Rc = 1.4 nm and consider four different permittivities εRF. The lower triangle as well as the diagonal are irrelevant given the selected condition 0 < mω < nω specified in eqn (14). |
![]() | (31) |
![]() | (32) |
![]() | (33) |
![]() | (34) |
![]() | (35) |
![]() | (36) |
![]() | (37) |
![]() | (38) |
uLJ6(r) = r−6 | (39) |
![]() | (40) |
![]() | (41) |
uLJ12(r) = r−12 | (42) |
![]() | (43) |
![]() | (44) |
![]() | (45) |
![]() | (46) |
Footnote |
† Electronic supplementary information (ESI) available. See DOI: 10.1039/d0cp03835k |
This journal is © the Owner Societies 2020 |