11#ifndef RD_DISTANCECONSTRAINT_H
12#define RD_DISTANCECONSTRAINT_H
33 unsigned int idx2,
double minLen,
double maxLen,
36 unsigned int idx2,
bool relative,
double minLen,
37 double maxLen,
double forceConst);
42 void getGrad(
double *pos,
double *grad)
const override;
50 double d_minLen, d_maxLen;
51 double d_forceConstant;
A distance range constraint modelled after a BondStretchContrib.
DistanceConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, bool relative, double minLen, double maxLen, double forceConst)
void getGrad(double *pos, double *grad) const override
calculates our contribution to the gradients of a position
DistanceConstraintContrib()
DistanceConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, double minLen, double maxLen, double forceConst)
Constructor.
~DistanceConstraintContrib() override
double getEnergy(double *pos) const override
returns our contribution to the energy of a position
DistanceConstraintContrib * copy() const override
return a copy
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
#define RDKIT_FORCEFIELD_EXPORT