11 #ifndef __RD_BONDSTRETCH_H__
12 #define __RD_BONDSTRETCH_H__
39 void getGrad(
double *pos,
double *grad)
const;
49 double d_forceConstant;
abstract base class for contributions to ForceFields
A class to store forcefields and handle minimization.
class to store atomic parameters for the Universal Force Field
The bond-stretch term for the Universal Force Field.
BondStretchContrib(ForceField *owner, unsigned int idx1, unsigned int idx2, double bondOrder, const AtomicParams *end1Params, const AtomicParams *end2Params)
Constructor.
virtual BondStretchContrib * copy() const
return a copy
void getGrad(double *pos, double *grad) const
calculates our contribution to the gradients of a position
double getEnergy(double *pos) const
returns our contribution to the energy of a position
#define RDKIT_FORCEFIELD_EXPORT
RDKIT_FORCEFIELD_EXPORT double calcBondForceConstant(double restLength, const AtomicParams *end1Params, const AtomicParams *end2Params)
calculates and returns the UFF force constant for a bond
RDKIT_FORCEFIELD_EXPORT double calcBondRestLength(double bondOrder, const AtomicParams *end1Params, const AtomicParams *end2Params)
calculates and returns the UFF rest length for a bond