#include <TorsionAngleContribs.h>
Definition at line 50 of file TorsionAngleContribs.h.
◆ TorsionAngleContribs() [1/2]
ForceFields::CrystalFF::TorsionAngleContribs::TorsionAngleContribs |
( |
| ) |
|
|
default |
◆ TorsionAngleContribs() [2/2]
ForceFields::CrystalFF::TorsionAngleContribs::TorsionAngleContribs |
( |
ForceField * |
owner | ) |
|
◆ ~TorsionAngleContribs()
ForceFields::CrystalFF::TorsionAngleContribs::~TorsionAngleContribs |
( |
| ) |
|
|
default |
◆ addContrib()
void ForceFields::CrystalFF::TorsionAngleContribs::addContrib |
( |
unsigned int |
idx1, |
|
|
unsigned int |
idx2, |
|
|
unsigned int |
idx3, |
|
|
unsigned int |
idx4, |
|
|
std::vector< double > |
forceConstants, |
|
|
std::vector< int > |
signs |
|
) |
| |
Add contribution to this collection.
- Parameters
-
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 |
idx4 | index of atom4 in the ForceField's positions |
forceConstants | force constants for the torsion potentials |
signs | phase for the torsion potentials (-1 or 1) |
◆ copy()
◆ empty()
bool ForceFields::CrystalFF::TorsionAngleContribs::empty |
( |
| ) |
const |
|
inline |
◆ getEnergy()
double ForceFields::CrystalFF::TorsionAngleContribs::getEnergy |
( |
double * |
pos | ) |
const |
|
overridevirtual |
return the contribution of this contrib to the energy of a given state
- Parameters
-
pos | positions of the atoms in the current state |
Implements ForceFields::ForceFieldContrib.
◆ getGrad()
void ForceFields::CrystalFF::TorsionAngleContribs::getGrad |
( |
double * |
pos, |
|
|
double * |
grad |
|
) |
| const |
|
overridevirtual |
calculate the contribution of this contrib to the gradient at a given state
- Parameters
-
pos | positions of the atoms in the current state |
grad | gradients to be adapted |
Implements ForceFields::ForceFieldContrib.
◆ size()
unsigned int ForceFields::CrystalFF::TorsionAngleContribs::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: