#include <GaussianTorsionAngleContribs.h>
◆ GaussianTorsionAngleContribs() [1/2]
| ForceFields::CrystalFF::GaussianTorsionAngleContribs::GaussianTorsionAngleContribs |
( |
| ) |
|
|
default |
◆ GaussianTorsionAngleContribs() [2/2]
| ForceFields::CrystalFF::GaussianTorsionAngleContribs::GaussianTorsionAngleContribs |
( |
ForceField * | owner | ) |
|
◆ ~GaussianTorsionAngleContribs()
| ForceFields::CrystalFF::GaussianTorsionAngleContribs::~GaussianTorsionAngleContribs |
( |
| ) |
|
|
default |
◆ addContrib()
| void ForceFields::CrystalFF::GaussianTorsionAngleContribs::addContrib |
( |
std::size_t | idx1, |
|
|
std::size_t | idx2, |
|
|
std::size_t | idx3, |
|
|
std::size_t | idx4, |
|
|
std::vector< double > | energies, |
|
|
std::vector< double > | gradients, |
|
|
double | scaling = 1.0 ) |
Add contribution to this collection. The caller is responsible that the energies and gradient lookuptables have at least to elements each!
- 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 |
| energies | lookup table for the energies |
| gradients | lookup table for the gradients |
| scaling | Scaling factor for energy and gradient (for K terms) |
◆ copy()
◆ empty()
| bool ForceFields::CrystalFF::GaussianTorsionAngleContribs::empty |
( |
| ) |
const |
|
inline |
◆ getEnergy()
| double ForceFields::CrystalFF::GaussianTorsionAngleContribs::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::GaussianTorsionAngleContribs::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::GaussianTorsionAngleContribs::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: