#include <colvarcomp.h>
Inheritance diagram for colvar::map_total:
Public Methods | |||
map_total () | |||
map_total (std::string const &conf) | |||
virtual | ~map_total () | ||
virtual int | init (std::string const &conf) | ||
An init function should be defined for every class inheriting from cvc
| |||
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 | |||
std::string | volmap_name | ||
String identifier of the map object (as used by the simulation engine). More... | |||
int | volmap_id | ||
Numeric identifier of the map object (as used by the simulation engine). More... | |||
int | volmap_index | ||
Index of the map objet in the proxy arrays. More... | |||
cvm::atom_group * | atoms | ||
Group of atoms selected internally (optional). More... | |||
std::vector< cvm::real > | atom_weights | ||
Weights assigned to each atom (default: uniform weights). More... |
|
Definition at line 18 of file colvarcomp_volmaps.C. References atoms, NULL, colvar::cvc::set_function_type, colvarvalue::type, colvarvalue::type_scalar, volmap_id, volmap_index, and colvar::cvc::x. |
|
Definition at line 29 of file colvarcomp_volmaps.C. References atoms, conf, NULL, colvar::cvc::set_function_type, colvarvalue::type, colvarvalue::type_scalar, volmap_id, volmap_index, and colvar::cvc::x. |
|
Definition at line 1848 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 134 of file colvarcomp_volmaps.C. References colvarproxy_volmaps::apply_volmap_force, atoms, force, colvarmodule::main, colvarmodule::proxy, colvarvalue::real_value, and volmap_index. |
|
\brief Calculate the atomic gradients, to be reused later in order to apply forces.
Reimplemented from colvar::cvc. Definition at line 128 of file colvarcomp_volmaps.C. |
|
\brief Calculate the variable.
Implements colvar::cvc. Definition at line 104 of file colvarcomp_volmaps.C. References atom_weights, atoms, colvarproxy_volmaps::compute_volmap, colvardeps::f_cvc_gradient, colvarproxy_volmaps::get_volmap_value, colvardeps::is_enabled, colvarmodule::main, NULL, colvarmodule::proxy, colvarvalue::real_value, colvarproxy_volmaps::volmap_flag_gradients, colvarproxy_volmaps::volmap_flag_null, colvarproxy_volmaps::volmap_flag_use_atom_field, volmap_id, volmap_index, and colvar::cvc::x. |
|
An init function should be defined for every class inheriting from cvc
Reimplemented from colvar::cvc. Definition at line 41 of file colvarcomp_volmaps.C. References atom_weights, atoms, colvarproxy_volmaps::check_volmap_by_id, colvarproxy_volmaps::check_volmap_by_name, colvarmodule::cite_feature, COLVARS_INPUT_ERROR, conf, colvarmodule::error, colvarparse::get_keyval, colvarproxy_volmaps::get_volmap_id_from_name, colvarproxy_volmaps::init_volmap_by_id, colvarproxy_volmaps::init_volmap_by_name, colvarmodule::main, NULL, colvar::cvc::parse_group, colvarmodule::proxy, colvarparams::register_param, colvarmodule::to_str, volmap_id, volmap_index, and volmap_name. |
|
Weights assigned to each atom (default: uniform weights).
Definition at line 1869 of file colvarcomp.h. Referenced by calc_value, and init. |
|
Group of atoms selected internally (optional).
Definition at line 1866 of file colvarcomp.h. Referenced by apply_force, calc_value, init, and map_total. |
|
Numeric identifier of the map object (as used by the simulation engine).
Definition at line 1860 of file colvarcomp.h. Referenced by calc_value, init, and map_total. |
|
Index of the map objet in the proxy arrays.
Definition at line 1863 of file colvarcomp.h. Referenced by apply_force, calc_value, init, and map_total. |
|
String identifier of the map object (as used by the simulation engine).
Definition at line 1857 of file colvarcomp.h. Referenced by init. |