#include <colvarcomp.h>
Inheritance diagram for colvar::distance_pairs:
Public Methods | |||
distance_pairs (std::string const &conf) | |||
distance_pairs () | |||
virtual | ~distance_pairs () | ||
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 * | group1 | ||
First atom group. More... | |||
cvm::atom_group * | group2 | ||
Second atom group. More... |
Definition at line 587 of file colvarcomp.h.
|
|
|
Definition at line 673 of file colvarcomp_distances.C. References colvardeps::disable, colvardeps::f_cvc_explicit_gradient, colvar::cvc::set_function_type, colvarvalue::type, colvarvalue::type_vector, and colvar::cvc::x. |
|
Definition at line 598 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 718 of file colvarcomp_distances.C. References colvardeps::f_cvc_pbc_minimum_image, force, group1, group2, colvardeps::is_enabled, and colvarmodule::position_distance. |
|
\brief Calculate the atomic gradients, to be reused later in order to apply forces.
Reimplemented from colvar::cvc. Definition at line 712 of file colvarcomp_distances.C. |
|
\brief Calculate the variable.
Implements colvar::cvc. Definition at line 681 of file colvarcomp_distances.C. References colvardeps::f_cvc_pbc_minimum_image, group1, group2, colvardeps::is_enabled, colvarmodule::position_distance, colvarvalue::vector1d_value, and colvar::cvc::x. |
|
First atom group.
Definition at line 592 of file colvarcomp.h. Referenced by apply_force, and calc_value. |
|
Second atom group.
Definition at line 594 of file colvarcomp.h. Referenced by apply_force, and calc_value. |