A general method is proposed for smoothing torsional potentials when the dihedral angle becomes undefined.

Torsional potentials impose steric or geometric constraints between four bonded particles, e.g., the rotational barriers between conformations of the carbon backbone in atomistic models for hydrocarbons.1,2 Typically, torsional potentials are functions of the dihedral angle Ο• between a plane A containing three particles at {r1, r2, r3} and a plane B containing particle positions {r2, r3, r4} (Fig. 1). The planes A and B have normal vectors nA=r12Γ—r23 and nB=r23Γ—r34⁠, respectively, where rij = rj βˆ’ ri. The dihedral angle between the planes is3Β 

(1)

In most cases, this definition can be straightforwardly applied to compute the torsional energy and forces.4 However, a degenerate state exists when {r1, r2, r3} or {r2, r3, r4} are collinear, and it is no longer possible to uniquely construct the required planes. The dihedral angle and torsional potential are then undefined, and the torsional forces are singular. Near this degenerate state, particles can be subjected to large forces, resulting in numerical integration errors or a complete crash for a molecular dynamics simulation.3 The singular nature of the torsional forces may also lead to unphysical motion or undesired restriction of conformations.

Fortunately, such degenerate conformations are rarely, if ever, observed in atomistic models for particles participating in torsional potentials because the bond angle πœƒijk between them (Fig. 1),3Β 

(2)

is restricted by additional interactions to values far from the collinear conformations. However, some coarse-grained polymer models impose significantly softer interactions,7–9 leading to a finite probability of observing a degenerate conformation, πœƒijk = 180°⁠. It is necessary to somehow modify the torsional potential in such a case in order to obtain physically, well-defined behavior in molecular dynamics simulations.

The steric interactions approximated by a torsional potential are expected to weaken when the end particles are farther apart and should be negligible when ??ijk = 180°⁠. Singular torsional forces can then be removed by modifying the potential so that forces go smoothly to zero when πœƒijk approaches 180°⁠. Other authors have demonstrated the effectiveness of this approach for certain polymer models.10–13 However, the functional forms of the potentials chosen in their works offer little control over the range of bond angles for which the potential is modified, which may be problematic for some geometries.

In this note, we propose a simple, general approach for smoothing a torsional potential as a function of the bond angle. The proposed method can be applied to existing torsional potentials over a controllable smoothing range and gives well-defined behavior in the degenerate case. Motivated by a common method for smoothing truncated pair potentials in molecular simulations, we define a smoothed torsional potential,

(3)

where V0(Ο•) is the unsmoothed potential, Vs is the value to which the potential is smoothed, and s is a smoothing function. The force on particle n is

(4)

where F0,n(Ο•) is the force on particle n in the absence of smoothing and βˆ‡n is the gradient with respect to rn. The smoothing function must satisfy the following conditions:

  1. s(cosπœƒs)=1 at the onset of smoothing (angle πœƒs⁠);

  2. s(cosπœƒc)=0 at the end of smoothing (angle πœƒc⁠);

  3. the first derivatives of s are zero at πœƒs and πœƒc so that Fn = F0,n at πœƒs and Fn=0 at πœƒc⁠; and

  4. s must decay sufficiently quickly so that V and Fn have well-defined limits for all bond angles.

A suitable polynomial for s is

(5)

where xs=cosπœƒs⁠, xc=cosπœƒc⁠, and mβ‰₯2⁠. (In writing s piecewise, we assume without loss of generality that πœƒc>πœƒs⁠.) The values of πœƒs⁠, πœƒc⁠, and m set the range and steepness of smoothing. The gradients of s can be computed by chain rule, βˆ‡ns(cosπœƒijk)=sβ€²(cosπœƒijk)βˆ‡ncosπœƒijk⁠, where

(6)

and

(7)

Here βˆ‡nβŠ—rij denotes the outer product and is equal to the identity matrix I when n = j, βˆ’I when n = i, and the zero matrix 0 otherwise. In the degenerate limit, the unsmoothed torsional forces4 diverge as 1βˆ•sinπœƒijk⁠. If πœƒc=0Β° or 180°⁠, sβ€²β€‰βˆΌβ€‰(1βˆ’cos2πœƒijk)mβˆ’1β€‰βˆΌβ€‰sin2(mβˆ’1)πœƒijk⁠, and Fn has a well-defined limit for mβ‰₯2⁠.

The proposed smoothing function was tested for a simple torsional potential, V0(Ο•) =β€‰βˆ’β€‰cosΟ•βˆ•2 + cos2ϕ⁠. The dihedral angle was initially fixed at Ο•=120Β° with r1 = (βˆ’1, 0, 1), r2 = (βˆ’1, 0, 0), r3 = (0, 0, 0), and r4=(0,βˆ’sinΟ•,cosΟ•)⁠. The angle πœƒ234 was then varied from its initial value of 90Β° by rotating r4 around r3 in plane B, causing the dihedral angle to jump to βˆ’60Β° as πœƒ234 passed through 180°⁠. Figure 2 shows the z-component of the torsional force on particle 4, F4,z, as a function of πœƒ234 for different smoothing ranges. As expected, the unsmoothed force diverges at πœƒ234=180°⁠. The smoothed force is equal to the unsmoothed force until πœƒs⁠, at which point F4,z goes continuously to zero at πœƒ234=180Β° before returning to the unsmoothed value at πœƒs for Ο•=βˆ’60°⁠.

The chosen form of s is particularly computationally convenient because (1) s and βˆ‡ns can be calculated from quantities that are already required for the unsmoothed potential and (2) no additional square-root evaluations are necessary if smoothing is applied symmetrically around 90Β° to eliminate both possible degeneracies (i.e., πœƒc=180Β° also implies smoothing toward πœƒc=0°⁠). We encourage the use of the smoothed torsional potential especially during the development of coarse-grained models, using s as an additional adjustable parameter, in order to obtain correct simulation behavior and physics.

See supplementary material for an example implementation of the smoothed torsional potential.

This work was supported by the Princeton Center for Complex Materials (PCCM), a U.S. National Science Foundation Materials Research Science and Engineering Center (Award No. DMR-1420541). This research is part of the Blue Waters sustained-petascale computing project, which is supported by the National Science Foundation (Award Nos. OCI-0725070 and ACI-1238993) and the state of Illinois. Blue Waters is a joint effort of the University of Illinois at Urbana-Champaign and its National Center for Supercomputing Applications.

1.
W. L.
β€ˆ
Jorgensen
,
J. D.
β€ˆ
Madura
, and
C. J.
β€ˆ
Swenson
,
J. Am. Chem. Soc.
β€ˆ
106
,
6638
(
1984
).
2.
M. G.
β€ˆ
Martin
and
J. I.
β€ˆ
Siepmann
,
J. Phys. Chem. B
β€ˆ
102
,
2569
(
1998
).
3.
M. P.
β€ˆ
Allen
and
D. J.
β€ˆ
Tildesley
,
Computer Simulation of Liquids
(
Oxford University Press
,
New York
,
1987
).
4.
A.
β€ˆ
Blondel
and
M.
β€ˆ
Karplus
,
J. Comput. Chem.
β€ˆ
17
,
1132
(
1996
).
5.
IUPAC
, in
Compendium of Chemical Terminology
, 2nd ed., edited by
A. D.
β€ˆ
McNaught
and
A.
β€ˆ
Wilkinson
(
Blackwell Scientific Publications
,
Oxford
,
1997
).
6.
W.
β€ˆ
Humphrey
,
A.
β€ˆ
Dalke
, and
K.
β€ˆ
Schulten
,
J. Mol. Graphics
β€ˆ
14
,
33
(
1996
).
7.
D.
β€ˆ
Brown
and
J. H. R.
β€ˆ
Clarke
,
Macromolecules
β€ˆ
24
,
2075
(
1991
).
8.
P.
β€ˆ
Depa
,
C.
β€ˆ
Chen
, and
J. K.
β€ˆ
Maranas
,
J. Chem. Phys.
β€ˆ
134
,
014903
(
2011
).
9.
D. D.
β€ˆ
Hsu
,
W.
β€ˆ
Xia
,
S. G.
β€ˆ
Arturo
, and
S.
β€ˆ
Keten
,
J. Chem. Theory Comput.
β€ˆ
10
,
2514
(
2014
).
10.
R. E.
β€ˆ
Tuzun
,
D. W.
β€ˆ
Noid
, and
B. G.
β€ˆ
Sumpter
,
Macromol. Theory Simul.
β€ˆ
4
,
909
(
1995
).
11.
M.
β€ˆ
Bulacu
and
E.
β€ˆ
van der Giessen
,
J. Chem. Phys.
β€ˆ
123
,
114901
(
2005
).
12.
M.
β€ˆ
Bulacu
,
N.
β€ˆ
Goga
,
W.
β€ˆ
Zhao
,
G.
β€ˆ
Rossi
,
L.
β€ˆ
Monticelli
,
X.
β€ˆ
Periole
,
D. P.
β€ˆ
Tieleman
, and
S. J.
β€ˆ
Marrink
,
J. Chem. Theory Comput.
β€ˆ
9
,
3282
(
2013
).
13.
M.
β€ˆ
Bernabei
,
A. J.
β€ˆ
Moreno
, and
J.
β€ˆ
Colmenero
,
Phys. Rev. Lett.
β€ˆ
101
,
255701
(
2008
).

Supplementary Material