An angle range constraint modelled after a AngleBendContrib.
More...
#include <AngleConstraint.h>
|
| AngleConstraintContrib () |
|
| AngleConstraintContrib (ForceField *owner, unsigned int idx1, unsigned int idx2, unsigned int idx3, double minAngleDeg, double maxAngleDeg, double forceConst) |
| Constructor. More...
|
|
| 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 More...
|
|
void | getGrad (double *pos, double *grad) const override |
| calculates our contribution to the gradients of a position More...
|
|
AngleConstraintContrib * | copy () const override |
| return a copy More...
|
|
| ForceFieldContrib () |
|
| ForceFieldContrib (ForceFields::ForceField *owner) |
|
virtual | ~ForceFieldContrib () |
|
virtual double | getEnergy (double *pos) const =0 |
| returns our contribution to the energy of a position More...
|
|
virtual void | getGrad (double *pos, double *grad) const =0 |
| calculates our contribution to the gradients of a position More...
|
|
virtual ForceFieldContrib * | copy () const =0 |
| return a copy More...
|
|
An angle range constraint modelled after a AngleBendContrib.
Definition at line 22 of file UFF/AngleConstraint.h.
◆ AngleConstraintContrib() [1/3]
ForceFields::UFF::AngleConstraintContrib::AngleConstraintContrib |
( |
| ) |
|
|
inline |
◆ AngleConstraintContrib() [2/3]
ForceFields::UFF::AngleConstraintContrib::AngleConstraintContrib |
( |
ForceField * |
owner, |
|
|
unsigned int |
idx1, |
|
|
unsigned int |
idx2, |
|
|
unsigned int |
idx3, |
|
|
double |
minAngleDeg, |
|
|
double |
maxAngleDeg, |
|
|
double |
forceConst |
|
) |
| |
Constructor.
- Parameters
-
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 |
maxAngle | maximum angle |
forceConst | force Constant |
◆ AngleConstraintContrib() [3/3]
ForceFields::UFF::AngleConstraintContrib::AngleConstraintContrib |
( |
ForceField * |
owner, |
|
|
unsigned int |
idx1, |
|
|
unsigned int |
idx2, |
|
|
unsigned int |
idx3, |
|
|
bool |
relative, |
|
|
double |
minAngleDeg, |
|
|
double |
maxAngleDeg, |
|
|
double |
forceConst |
|
) |
| |
◆ ~AngleConstraintContrib()
ForceFields::UFF::AngleConstraintContrib::~AngleConstraintContrib |
( |
| ) |
|
|
overridedefault |
◆ copy()
◆ getEnergy()
double ForceFields::UFF::AngleConstraintContrib::getEnergy |
( |
double * |
pos | ) |
const |
|
overridevirtual |
◆ getGrad()
void ForceFields::UFF::AngleConstraintContrib::getGrad |
( |
double * |
pos, |
|
|
double * |
grad |
|
) |
| const |
|
overridevirtual |
The documentation for this class was generated from the following file: