1 #ifndef SIMP_BEND_FORCE_H 2 #define SIMP_BEND_FORCE_H 68 double b1Abs = b1.
abs();
71 double b2Abs = b2.
abs();
Vector d2
Vector of derivatives d2[i] = d(cosTheta)/d(b2[i])
A BendForce computes derivatives of the angle between two vectors.
A Vector is a Cartesian vector.
Vector d1
Vector of derivatives d1[i] = d(cosTheta)/d(b1[i])
Vector & divide(const Vector &v, double s)
Divide vector v by scalar s.
A Bend calculates the angle between two vectors.
double dot(const Vector &v) const
Return dot product of this vector and vector v.
Vector & multiply(const Vector &v, double s)
Multiply a vector v by a scalar s.
Classes used by all simpatico molecular simulations.
void computeDerivatives(const Vector &b1, const Vector &b2)
Compute cosTheta and its derivatives d1 and d2.
Utility classes for scientific computation.
double abs() const
Return absolute magnitude of this vector.
Vector & subtract(const Vector &v1, const Vector &v2)
Subtract vector v2 from v1.
double cosTheta
Cosine of angle between vectors b1 and b2.