bondAngle |
index |
Helper module to calculate bond angle values and gradients
The bond angle is defined by atoms a0, a1 and a2:
a0--a1
\
a2
A single bond angle can be represented by the class BondAngle
Constructor:
BondAngle(a0, a1, a2)
The arguments specify the three atoms in the bond angle. Each
argument is an atom.Atom object, an atomSel.AtomSel object or
simply a string with an X-PLOR language atom selection.
Methods:
value()
Return the value of the bond angle (in radians).
cos()
Return the cosine of the bond angle (in radians).
derivs()
Return the value of the gradient of the bond angle Theta for the three
atoms. The return value is a tuple:
(dThetadAtom0, dThetadAtom1, dThetadAtom2)
where dThetadAtomx (x = 0-2) is a vec3.Vec3 object with the x,y,z
partial derivatives of the bond angle at the coordinates of atom
ax.
atom0(), atom1(), atom2()
Return the requested atom (an atom.Atom object).
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
Classes | ||||||||||
|
Functions | ||
|