RDKit
Open-source cheminformatics and machine learning.
|
#include <DistViolationContribs.h>
Public Member Functions | |
DistViolationContribs ()=default | |
DistViolationContribs (ForceFields::ForceField *owner) | |
Constructor. | |
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 | |
DistViolationContribs * | copy () const override |
return a copy | |
void | addContrib (unsigned int idx1, unsigned int idx2, double ub, double lb, double weight=1.0) |
bool | empty () const |
unsigned int | size () const |
Public Member Functions inherited from ForceFields::ForceFieldContrib | |
ForceFieldContrib () | |
ForceFieldContrib (ForceFields::ForceField *owner) | |
virtual | ~ForceFieldContrib () |
Additional Inherited Members | |
Protected Attributes inherited from ForceFields::ForceFieldContrib | |
ForceField * | dp_forceField {nullptr} |
our owning ForceField | |
A term to capture all violations of the upper and lower bounds by distance between two points
Definition at line 31 of file DistViolationContribs.h.
|
default |
DistGeom::DistViolationContribs::DistViolationContribs | ( | ForceFields::ForceField * | owner | ) |
Constructor.
owner | pointer to the owning ForceField |
|
inline |
Definition at line 49 of file DistViolationContribs.h.
|
inlineoverridevirtual |
return a copy
Implements ForceFields::ForceFieldContrib.
Definition at line 45 of file DistViolationContribs.h.
|
inline |
Definition at line 53 of file DistViolationContribs.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.
|
inline |
Definition at line 54 of file DistViolationContribs.h.