11#ifndef RD_POSITIONCONSTRAINT_H
12#define RD_POSITIONCONSTRAINT_H
33 double maxDispl,
double forceConst);
38 void getGrad(
double *pos,
double *grad)
const override;
47 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.
PositionConstraintContrib()
~PositionConstraintContrib() override=default
PositionConstraintContrib(ForceField *owner, unsigned int idx, double maxDispl, double forceConst)
Constructor.
PositionConstraintContrib * copy() const override
return a copy
void getGrad(double *pos, double *grad) const override
calculates our contribution to the gradients of a position
double getEnergy(double *pos) const override
returns our contribution to the energy of a position
#define RDKIT_FORCEFIELD_EXPORT