RDKit
Open-source cheminformatics and machine learning.
|
#include <FourthDimContribs.h>
Public Member Functions | |
FourthDimContribs ()=default | |
FourthDimContribs (ForceFields::ForceField *owner) | |
Constructor. | |
void | addContrib (unsigned int idx, double weight) |
double | getEnergy (double *pos) const override |
return the contribution of this contrib to the energy of a given state | |
void | getGrad (double *pos, double *grad) const override |
FourthDimContribs * | copy () const override |
return a copy | |
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 used in penalizing the 4th dimension in order to move from 4D->3D
Definition at line 29 of file FourthDimContribs.h.
|
default |
|
inline |
Constructor.
owner | pointer to the owning ForceField |
idx | the index of the atom to be considered |
weight | (optional) the weight to be used for this contrib |
Definition at line 41 of file FourthDimContribs.h.
References ForceFields::ForceField::dimension(), and PRECONDITION.
|
inline |
Definition at line 47 of file FourthDimContribs.h.
|
inlineoverridevirtual |
return a copy
Implements ForceFields::ForceFieldContrib.
Definition at line 73 of file FourthDimContribs.h.
|
inline |
Definition at line 76 of file FourthDimContribs.h.
|
inlineoverridevirtual |
return the contribution of this contrib to the energy of a given state
Implements ForceFields::ForceFieldContrib.
Definition at line 52 of file FourthDimContribs.h.
References PRECONDITION.
|
inlineoverridevirtual |
calculate the contribution of this contrib to the gradient at a given state
Implements ForceFields::ForceFieldContrib.
Definition at line 65 of file FourthDimContribs.h.
References PRECONDITION.
|
inline |
Definition at line 77 of file FourthDimContribs.h.