#include <colvarcomp.h>
Inheritance diagram for colvar::cartesian:
Public Methods | |||
cartesian (std::string const &conf) | |||
cartesian () | |||
virtual | ~cartesian () | ||
virtual void | calc_value () | ||
\brief Calculate the variable. More... | |||
virtual void | calc_gradients () | ||
\brief Calculate the atomic gradients, to be reused later in order to apply forces. More... | |||
virtual void | apply_force (colvarvalue const &force) | ||
\brief Apply the collective variable force, by communicating the atomic forces to the simulation program (Note: the ft member is not altered by this function) Note: multiple calls to this function within the same simulation step will add the forces altogether
| |||
Protected Attributes | |||
cvm::atom_group * | atoms | ||
Atom group. More... | |||
std::vector< size_t > | axes | ||
Which Cartesian coordinates to include. More... |
|
|
|
|
|
Definition at line 1475 of file colvarcomp.h. |
|
\brief Apply the collective variable force, by communicating the atomic forces to the simulation program (Note: the ft member is not altered by this function) Note: multiple calls to this function within the same simulation step will add the forces altogether
Implements colvar::cvc. Definition at line 1562 of file colvarcomp_distances.C. References atoms, axes, force, and colvarvalue::vector1d_value. |
|
\brief Calculate the atomic gradients, to be reused later in order to apply forces.
Reimplemented from colvar::cvc. Definition at line 1554 of file colvarcomp_distances.C. |
|
\brief Calculate the variable.
Implements colvar::cvc. Definition at line 1542 of file colvarcomp_distances.C. References atoms, axes, colvarvalue::vector1d_value, and colvar::cvc::x. |
|
Atom group.
Definition at line 1469 of file colvarcomp.h. Referenced by apply_force, and calc_value. |
|
Which Cartesian coordinates to include.
Definition at line 1471 of file colvarcomp.h. Referenced by apply_force, and calc_value. |