13 #ifndef __RD_UFFPOSITIONCONSTRAINT_H__
14 #define __RD_UFFPOSITIONCONSTRAINT_H__
37 double maxDispl,
double forceConst);
42 void getGrad(
double *pos,
double *grad)
const;
51 double d_forceConstant;
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
A position constraint of the type 0.5k * deltaX^2.
double getEnergy(double *pos) const
returns our contribution to the energy of a position
virtual PositionConstraintContrib * copy() const
return a copy
~PositionConstraintContrib()
void getGrad(double *pos, double *grad) const
calculates our contribution to the gradients of a position
PositionConstraintContrib()
PositionConstraintContrib(ForceField *owner, unsigned int idx, double maxDispl, double forceConst)
Constructor.
#define RDKIT_FORCEFIELD_EXPORT