follow the usual convention and call dihedral angle phi
This commit is contained in:
@ -5,11 +5,11 @@ from tabulate import DihedralTabulate
|
|||||||
################################################################################
|
################################################################################
|
||||||
import math
|
import math
|
||||||
|
|
||||||
def harmonic_energy(theta):
|
def harmonic_energy(phi):
|
||||||
k = 100.0
|
k = 100.0
|
||||||
# the force constant in LAMMPS is in energy per radians^2 so convert from degrees to radians
|
# the force constant in LAMMPS is in energy per radians^2 so convert from degrees to radians
|
||||||
deg2rad = math.pi / 180.0
|
deg2rad = math.pi / 180.0
|
||||||
f = k * (1 - math.cos(2.0 * deg2rad * theta))
|
f = k * (1 - math.cos(2.0 * deg2rad * phi))
|
||||||
return f
|
return f
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user