11#ifndef __RD_DISTVIOLATIONCONTRIB_H__
12#define __RD_DISTVIOLATIONCONTRIB_H__
35 unsigned int idx2,
double ub,
double lb,
40 void getGrad(
double *pos,
double *grad)
const override;
46 unsigned int d_end1Idx{0}, d_end2Idx{0};
double getEnergy(double *pos) const override
returns our contribution to the energy of a position
DistViolationContrib * copy() const override
return a copy
DistViolationContrib(ForceFields::ForceField *owner, unsigned int idx1, unsigned int idx2, double ub, double lb, double weight=1.0)
Constructor.
void getGrad(double *pos, double *grad) const override
calculates our contribution to the gradients of a position
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
#define RDKIT_DISTGEOMETRY_EXPORT