1 #ifndef SIMP_TORSION_FORCE_H 2 #define SIMP_TORSION_FORCE_H Vector d1
Vector of derivatives d1[i] = d(cosPhi)/d(b1[i])
A Vector is a Cartesian vector.
double dot(const Vector &v) const
Return dot product of this vector and vector v.
bool computeDerivatives(const Vector &b1, const Vector &b2, const Vector &b3)
Compute cosPhi and derivatives.
double cosPhi
Cosine of dihedral angle.
Vector & multiply(const Vector &v, double s)
Multiply a vector v by a scalar s.
Classes used by all simpatico molecular simulations.
Vector & cross(const Vector &v1, const Vector &v2)
Calculate cross product of vectors v1 and v2.
Utility classes for scientific computation.
Computes derivatives of dihedral angle with respect to bond vectors.
Vector d2
Vector of derivatives d2[i] = d(cosPhi)/d(b2[i])
Vector d3
Vector of derivatives d3[i] = d(cosPhi)/d(b3[i])
Computes dihedral / torsion angle involving 3 bonds.
double square() const
Return square magnitude of this vector.