11#ifndef __RD_BONDSTRETCH_H__
12#define __RD_BONDSTRETCH_H__
39 void getGrad(
double *pos,
double *grad)
const override;
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.
void getGrad(double *pos, double *grad) const override
calculates our contribution to the gradients of a position
BondStretchContrib * copy() const override
return a copy
double getEnergy(double *pos) const override
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