13#ifndef __RD_UFFANGLECONSTRAINT_H__
14#define __RD_UFFANGLECONSTRAINT_H__
38 unsigned int idx2,
unsigned int idx3,
39 double minAngleDeg,
double maxAngleDeg,
42 unsigned int idx2,
unsigned int idx3,
bool relative,
43 double minAngleDeg,
double maxAngleDeg,
49 void getGrad(
double *pos,
double *grad)
const override;
56 double computeAngleTerm(
double angle)
const;
57 int d_at1Idx{-1}, d_at2Idx{-1},
59 double d_minAngleDeg, d_maxAngleDeg;
60 double d_forceConstant;
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
An angle range constraint modelled after a AngleBendContrib.
double getEnergy(double *pos) const override
returns our contribution to the energy of a position
~AngleConstraintContrib() override=default
void getGrad(double *pos, double *grad) const override
calculates our contribution to the gradients of a position
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, bool relative, double minAngleDeg, double maxAngleDeg, double forceConst)
AngleConstraintContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, double minAngleDeg, double maxAngleDeg, double forceConst)
Constructor.
AngleConstraintContrib * copy() const override
return a copy
#define RDKIT_FORCEFIELD_EXPORT