From 7ccbc7e75b37038a8c0fcb6b4c44d3961b2fda0c Mon Sep 17 00:00:00 2001
From: sjplimp Description:
Style table creates interpolation tables of length N from angle
-potential and force values listed in a file(s) as a function of angle
-The files are read by the angle_coeff command.
+potential and derivative values listed in a file(s) as a function of
+angle The files are read by the angle_coeff
+command.
The interpolation tables are created by fitting cubic splines to the
-file values and interpolating energy and force values at each of N
-distances. During a simulation, these tables are used to interpolate
-energy and force values as needed. The interpolation is done in one
-of 2 styles: linear or spline.
+file values and interpolating energy and derivative values at each of
+N angles. During a simulation, these tables are used to interpolate
+energy and force values on individual atoms as needed. The
+interpolation is done in one of 2 styles: linear or spline.
For the linear style, the angle is used to find 2 surrounding table
-values from which an energy or force is computed by linear
+values from which an energy or its derivative is computed by linear
interpolation.
For the spline style, a cubic spline coefficients are computed and
stored at each of the N values in the table. The angle is used to
find the appropriate set of coefficients which are used to evaluate a
-cubic polynomial which computes the energy or force.
+cubic polynomial which computes the energy or derivative.
The following coefficients must be defined for each angle type via the
angle_coeff command as in the example above.
@@ -50,9 +51,9 @@ cubic polynomial which computes the energy or force.
The filename specifies a file containing tabulated energy and force
-values. The keyword specifies a section of the file. The format of
-this file is described below.
+ The filename specifies a file containing tabulated energy and
+derivative values. The keyword specifies a section of the file. The
+format of this file is described below.
-
@@ -65,7 +66,7 @@ parenthesized comments):
N 181 FP 0 0 EQ 90.0 (N, FP, EQ parameters)
(blank line)
N 181 FP 0 0 (N, FP parameters)
-1 0.0 200.5 2.5 (index, angle, energy, force)
+1 0.0 200.5 2.5 (index, angle, energy, derivative)
2 1.0 198.0 2.5
...
181 180.0 0.0 0.0
@@ -85,20 +86,20 @@ specified in the angle_style table command. Le
Ntable = N in the angle_style command, and Nfile = "N" in the
tabulated file. What LAMMPS does is a preliminary interpolation by
creating splines using the Nfile tabulated values as nodal points. It
-uses these to interpolate as needed to generate energy and force
+uses these to interpolate as needed to generate energy and derivative
values at Ntable different points. The resulting tables of length
Ntable are then used as described above, when computing energy and
-force for individual angles. This means that if you want the
-interpolation tables of length Ntable to match exactly what is in the
-tabulated file (with effectively no preliminary interpolation), you
-should set Ntable = Nfile.
+force for individual angles and their atoms. This means that if you
+want the interpolation tables of length Ntable to match exactly what
+is in the tabulated file (with effectively no preliminary
+interpolation), you should set Ntable = Nfile.
The "FP" parameter is optional. If used, it is followed by two values -fplo and fphi, which are the derivatives of the force at the innermost -and outermost angle settings. These values are needed by the spline +fplo and fphi, which are the 2nd derivatives at the innermost and +outermost angle settings. These values are needed by the spline construction routines. If not specified by the "FP" parameter, they -are estimated (less accurately) by the first two and last two force -values in the table. +are estimated (less accurately) by the first two and last two +derivative values in the table.