![]() |
RDKit
Open-source cheminformatics and machine learning.
|
An angle range constraint modelled after a AngleBendContrib. More...
#include <AngleConstraint.h>
Public Member Functions | |
| AngleConstraintContrib () | |
| AngleConstraintContrib (ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, double minAngleDeg, double maxAngleDeg, double forceConst) | |
| Constructor. | |
| AngleConstraintContrib (ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, bool relative, double minAngleDeg, double maxAngleDeg, double forceConst) | |
| ~AngleConstraintContrib () override=default | |
| 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 | |
| AngleConstraintContrib * | copy () const override |
| return a copy | |
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 | |
An angle range constraint modelled after a AngleBendContrib.
Definition at line 18 of file AngleConstraint.h.
|
inline |
Definition at line 21 of file AngleConstraint.h.
Referenced by copy().
| ForceFields::AngleConstraintContrib::AngleConstraintContrib | ( | ForceField * | owner, |
| unsigned int | idx1, | ||
| unsigned int | idx2, | ||
| unsigned int | idx3, | ||
| double | minAngleDeg, | ||
| double | maxAngleDeg, | ||
| double | forceConst ) |
Constructor.
| owner | pointer to the owning ForceField |
| 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 |
| minAngle | minimum angle, must be between 0.0 and 180.0 |
| maxAngle | maximum angle, must be between 0.0 and 180.0 |
| forceConst | force Constant |
References ForceFields::ForceFieldContrib::ForceField.
| ForceFields::AngleConstraintContrib::AngleConstraintContrib | ( | ForceField * | owner, |
| unsigned int | idx1, | ||
| unsigned int | idx2, | ||
| unsigned int | idx3, | ||
| bool | relative, | ||
| double | minAngleDeg, | ||
| double | maxAngleDeg, | ||
| double | forceConst ) |
References ForceFields::ForceFieldContrib::ForceField.
|
overridedefault |
|
inlineoverridevirtual |
return a copy
Implements ForceFields::ForceFieldContrib.
Definition at line 47 of file AngleConstraint.h.
References AngleConstraintContrib().
|
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.