13 #ifndef __RD_UFFANGLECONSTRAINT_H__
14 #define __RD_UFFANGLECONSTRAINT_H__
38 unsigned int idx2,
unsigned int idx3,
39 double minAngleDeg,
double maxAngleDeg,
42 unsigned int idx2,
unsigned int idx3,
bool relative,
43 double minAngleDeg,
double maxAngleDeg,
49 void getGrad(
double *pos,
double *grad)
const;
55 int d_at1Idx{-1}, d_at2Idx{-1}, d_at3Idx{-1};
56 double d_minAngleDeg, d_maxAngleDeg;
57 double d_forceConstant;
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
An angle range constraint modelled after a AngleBendContrib.
virtual AngleConstraintContrib * copy() const
return a copy
void getGrad(double *pos, double *grad) const
calculates our contribution to the gradients of a position
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, bool relative, double minAngleDeg, double maxAngleDeg, double forceConst)
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, double minAngleDeg, double maxAngleDeg, double forceConst)
Constructor.
double getEnergy(double *pos) const
returns our contribution to the energy of a position
~AngleConstraintContrib()
#define RDKIT_FORCEFIELD_EXPORT