#include <colvarcomp.h>
Inheritance diagram for colvar::distance_dir:
Public Methods | |||
distance_dir (std::string const &conf) | |||
distance_dir () | |||
virtual | ~distance_dir () | ||
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
| |||
virtual cvm::real | dist2 (colvarvalue const &x1, colvarvalue const &x2) const | ||
Redefined to override the distance ones. More... | |||
virtual colvarvalue | dist2_lgrad (colvarvalue const &x1, colvarvalue const &x2) const | ||
Redefined to override the distance ones. More... | |||
virtual colvarvalue | dist2_rgrad (colvarvalue const &x1, colvarvalue const &x2) const | ||
Redefined to override the distance ones. More... |
Definition at line 408 of file colvarcomp.h.
|
|
|
Definition at line 492 of file colvarcomp_distances.C. References colvardeps::disable, colvardeps::enable, colvardeps::f_cvc_com_based, colvardeps::f_cvc_explicit_gradient, colvar::cvc::set_function_type, colvarvalue::type, colvarvalue::type_unit3vector, and colvar::cvc::x. |
|
Definition at line 414 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
Reimplemented from colvar::distance. Definition at line 524 of file colvarcomp_distances.C. References force, colvar::distance::group1, colvar::distance::group2, colvarvalue::rvector_value, and colvar::cvc::x. |
|
\brief Calculate the atomic gradients, to be reused later in order to apply forces.
Reimplemented from colvar::distance. Definition at line 514 of file colvarcomp_distances.C. |
|
\brief Calculate the variable.
Reimplemented from colvar::distance. Definition at line 502 of file colvarcomp_distances.C. References colvar::distance::dist_v, colvardeps::f_cvc_pbc_minimum_image, colvar::distance::group1, colvar::distance::group2, colvardeps::is_enabled, colvarmodule::position_distance, colvarvalue::rvector_value, and colvar::cvc::x. |
|
Redefined to override the distance ones.
Reimplemented from colvar::distance. Definition at line 538 of file colvarcomp_distances.C. References colvarvalue::rvector_value. |
|
Redefined to override the distance ones.
Reimplemented from colvar::distance. Definition at line 545 of file colvarcomp_distances.C. References colvarvalue::rvector_value, and colvarvalue::type_unit3vectorderiv. |
|
Redefined to override the distance ones.
Reimplemented from colvar::distance. Definition at line 552 of file colvarcomp_distances.C. References colvarvalue::rvector_value, and colvarvalue::type_unit3vectorderiv. |