![]() |
RDKit
Open-source cheminformatics and machine learning.
|
The angle-bend term for MMFF. More...
#include <StretchBend.h>
Public Member Functions | |
StretchBendContrib () | |
StretchBendContrib (ForceField *owner) | |
Constructor. | |
void | addTerm (const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, const MMFFStbn *mmffStbnParams, const MMFFAngle *mmffAngleParams, const MMFFBond *mmffBondParams1, const MMFFBond *mmffBondParams2) |
double | getEnergy (double *pos) const override |
returns our contribution to the energy of a position | |
void | getGrad (double *pos, double *grad) const override |
calculates our contribution to the gradients of a position | |
StretchBendContrib * | copy () const override |
return a copy | |
![]() | |
ForceFieldContrib () | |
ForceFieldContrib (ForceFields::ForceField *owner) | |
virtual | ~ForceFieldContrib () |
Additional Inherited Members | |
![]() | |
ForceField * | dp_forceField {nullptr} |
our owning ForceField | |
The angle-bend term for MMFF.
Definition at line 26 of file StretchBend.h.
|
inline |
Definition at line 28 of file StretchBend.h.
ForceFields::MMFF::StretchBendContrib::StretchBendContrib | ( | ForceField * | owner | ) |
Constructor.
void ForceFields::MMFF::StretchBendContrib::addTerm | ( | const unsigned int | idx1, |
const unsigned int | idx2, | ||
const unsigned int | idx3, | ||
const MMFFStbn * | mmffStbnParams, | ||
const MMFFAngle * | mmffAngleParams, | ||
const MMFFBond * | mmffBondParams1, | ||
const MMFFBond * | mmffBondParams2 | ||
) |
Adds a stretch-bend term to the force field contrib.
The angle is between atom1 - atom2 - atom3
idx1 | index of atom1 in the ForceField's positions |
idx2 | index of atom2 in the ForceField's positions |
idx3 | index of atom3 in the ForceField's positions |
angleType | MMFF type of the angle (as an unsigned int) |
|
inlineoverridevirtual |
return a copy
Implements ForceFields::ForceFieldContrib.
Definition at line 48 of file StretchBend.h.
|
overridevirtual |
returns our contribution to the energy of a position
Implements ForceFields::ForceFieldContrib.
|
overridevirtual |
calculates our contribution to the gradients of a position
Implements ForceFields::ForceFieldContrib.