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 and β , respectively, where rij = rj β ri. The dihedral angle between the planes is3Β
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 between them (Fig. 1),3Β
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, β . 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 β . Singular torsional forces can then be removed by modifying the potential so that forces go smoothly to zero when approaches β . 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,
where 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
where is the force on particle n in the absence of smoothing and is the gradient with respect to rn. The smoothing function must satisfy the following conditions:
at the onset of smoothing (angle β );
at the end of smoothing (angle β );
the first derivatives of s are zero at and so that Fn = F0,n at and at β ; and
s must decay sufficiently quickly so that V and Fn have well-defined limits for all bond angles.
A suitable polynomial for s is
where β , β , and β . (In writing s piecewise, we assume without loss of generality that β .) The values of β , β , and m set the range and steepness of smoothing. The gradients of s can be computed by chain rule, β , where
and
Here 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 β . If or β , β , and Fn has a well-defined limit for β .
The proposed smoothing function was tested for a simple torsional potential, β . The dihedral angle was initially fixed at with r1 = (β1, 0, 1), r2 = (β1, 0, 0), r3 = (0, 0, 0), and β . The angle was then varied from its initial value of by rotating r4 around r3 in plane B, causing the dihedral angle to jump to as passed through β . Figure 2 shows the z-component of the torsional force on particle 4, F4,z, as a function of for different smoothing ranges. As expected, the unsmoothed force diverges at β . The smoothed force is equal to the unsmoothed force until β , at which point F4,z goes continuously to zero at before returning to the unsmoothed value at for β .
The chosen form of s is particularly computationally convenient because (1) s and 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 to eliminate both possible degeneracies (i.e., also implies smoothing toward β ). 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.