#include <colvarcomp.h>
Inheritance diagram for colvar::spin_angle:
Public Methods | |||
spin_angle (std::string const &conf) | |||
spin_angle () | |||
virtual int | init (std::string const &conf) | ||
An init function should be defined for every class inheriting from cvc
| |||
virtual | ~spin_angle () | ||
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 handle the 2*PI periodicity. More... | |||
virtual colvarvalue | dist2_lgrad (colvarvalue const &x1, colvarvalue const &x2) const | ||
Redefined to handle the 2*PI periodicity. More... | |||
virtual colvarvalue | dist2_rgrad (colvarvalue const &x1, colvarvalue const &x2) const | ||
Redefined to handle the 2*PI periodicity. More... | |||
virtual void | wrap (colvarvalue &x_unwrapped) const | ||
Redefined to handle the 2*PI periodicity. More... | |||
Protected Attributes | |||
cvm::rvector | axis |
Definition at line 1325 of file colvarcomp.h.
|
|
|
Definition at line 360 of file colvarcomp_rotations.C. References colvardeps::enable, colvardeps::f_cvc_explicit_gradient, colvardeps::f_cvc_periodic, colvar::cvc::period, colvar::cvc::set_function_type, colvarvalue::type, colvarvalue::type_scalar, and colvar::cvc::x. |
|
Definition at line 1337 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::orientation. Definition at line 395 of file colvarcomp_rotations.C. References colvar::orientation::atoms, force, and colvarvalue::real_value. |
|
\brief Calculate the atomic gradients, to be reused later in order to apply forces.
Reimplemented from colvar::orientation. Definition at line 382 of file colvarcomp_rotations.C. References colvar::orientation::atoms, and colvar::orientation::rot. |
|
\brief Calculate the variable.
Reimplemented from colvar::orientation. Definition at line 371 of file colvarcomp_rotations.C. References colvar::orientation::atoms, colvar::orientation::atoms_cog, colvarvalue::real_value, colvar::orientation::ref_pos, colvar::orientation::rot, wrap, and colvar::cvc::x. |
|
Redefined to handle the 2*PI periodicity.
Reimplemented from colvar::orientation. Definition at line 405 of file colvarcomp_rotations.C. References colvarvalue::real_value. |
|
Redefined to handle the 2*PI periodicity.
Reimplemented from colvar::orientation. Definition at line 414 of file colvarcomp_rotations.C. References colvarvalue::real_value. |
|
Redefined to handle the 2*PI periodicity.
Reimplemented from colvar::orientation. Definition at line 423 of file colvarcomp_rotations.C. References colvarvalue::real_value. |
|
An init function should be defined for every class inheriting from cvc
Reimplemented from colvar::orientation. Definition at line 344 of file colvarcomp_rotations.C. References conf, colvarparse::get_keyval, and colvarmodule::log. |
|
Redefined to handle the 2*PI periodicity.
Reimplemented from colvar::cvc. Definition at line 432 of file colvarcomp_rotations.C. References colvarvalue::real_value, and colvar::cvc::wrap_center. Referenced by calc_value. |
|
Definition at line 1330 of file colvarcomp.h. |