11#ifndef RD_ANGLECONSTRAINT_H
12#define RD_ANGLECONSTRAINT_H
34 unsigned int idx2,
unsigned int idx3,
35 double minAngleDeg,
double maxAngleDeg,
38 unsigned int idx2,
unsigned int idx3,
bool relative,
39 double minAngleDeg,
double maxAngleDeg,
45 void getGrad(
double *pos,
double *grad)
const override;
52 double computeAngleTerm(
double angle)
const;
53 int d_at1Idx{-1}, d_at2Idx{-1},
55 double d_minAngleDeg, d_maxAngleDeg;
56 double d_forceConstant;
An angle range constraint modelled after a AngleBendContrib.
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, double minAngleDeg, double maxAngleDeg, double forceConst)
Constructor.
double getEnergy(double *pos) const override
returns our contribution to the energy of a position
~AngleConstraintContrib() override=default
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, bool relative, double minAngleDeg, double maxAngleDeg, double forceConst)
AngleConstraintContrib * copy() const override
return a copy
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_FORCEFIELD_EXPORT