#include <colvarbias_restraint.h>
Inheritance diagram for colvarbias_restraint_centers_moving:
Public Methods | |
colvarbias_restraint_centers_moving (char const *key) | |
virtual int | init (std::string const &conf) |
\brief Parse config string and (re)initialize. More... | |
virtual int | update () |
virtual int | change_configuration (std::string const &) |
Load new configuration - force constant and/or centers only. More... | |
virtual std::string const | get_state_params () const |
virtual int | set_state_params (std::string const &conf) |
virtual std::ostream & | write_traj_label (std::ostream &os) |
Write a label to the trajectory file (comment line). More... | |
virtual std::ostream & | write_traj (std::ostream &os) |
Output quantities such as the bias energy to the trajectory file. More... | |
Protected Methods | |
virtual int | update_centers (cvm::real lambda) |
\brief Update the centers by interpolating between initial and target. More... | |
int | update_acc_work () |
Update the accumulated work. More... | |
Protected Attributes | |
std::vector< colvarvalue > | target_centers |
\brief New restraint centers. More... | |
std::vector< colvarvalue > | initial_centers |
\brief Initial value of the restraint centers. More... | |
std::vector< colvarvalue > | centers_incr |
\brief Increment of the restraint centers at each step. More... | |
bool | b_output_centers |
Whether to write the current restraint centers to the trajectory file. More... |
Definition at line 152 of file colvarbias_restraint.h.
|
Definition at line 258 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_centers, and b_output_centers. |
|
Load new configuration - force constant and/or centers only.
Reimplemented from colvarbias_restraint_centers. Reimplemented in colvarbias_restraint_harmonic. Definition at line 161 of file colvarbias_restraint.h. References COLVARS_NOT_IMPLEMENTED. |
|
Reimplemented from colvarbias_restraint_moving. Reimplemented in colvarbias_restraint_harmonic. Definition at line 420 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvarbias_restraint_centers::colvar_centers, colvardeps::f_cvb_output_acc_work, colvardeps::is_enabled, and colvarbias::num_variables. Referenced by colvarbias_restraint_linear::get_state_params, and colvarbias_restraint_harmonic::get_state_params. |
|
\brief Parse config string and (re)initialize.
Reimplemented from colvarbias_restraint_centers. Reimplemented in colvarbias_restraint_harmonic. Definition at line 270 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_centers, b_output_centers, centers_incr, colvarbias_restraint_centers::colvar_centers, COLVARS_INPUT_ERROR, conf, colvarmodule::debug, colvarmodule::error, colvarparse::get_keyval, colvarbias_restraint_moving::init, colvarbias_restraint_centers::init, initial_centers, colvarvalue::interpolate, colvarmodule::log, midpoint, colvarbias::num_variables, and target_centers. Referenced by colvarbias_restraint_linear::init, and colvarbias_restraint_harmonic::init. |
|
Reimplemented from colvarbias_restraint_moving. Reimplemented in colvarbias_restraint_harmonic. Definition at line 446 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvarbias_restraint_centers::colvar_centers, conf, colvardeps::f_cvb_output_acc_work, colvarparse::get_keyval, colvardeps::is_enabled, colvarparse::parse_required, colvarparse::parse_restart, and colvarbias_restraint::set_state_params. Referenced by colvarbias_restraint_linear::set_state_params, and colvarbias_restraint_harmonic::set_state_params. |
|
|
Update the accumulated work.
Definition at line 400 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, centers_incr, colvarbias::colvar_forces, colvardeps::f_cvb_output_acc_work, colvarbias_restraint_moving::first_step, colvardeps::is_enabled, colvarmodule::main, colvarbias::num_variables, colvarmodule::proxy, colvarproxy::simulation_running, colvarmodule::step_absolute, colvarmodule::step_relative, and colvarbias_restraint_moving::target_nsteps. Referenced by colvarbias_restraint_linear::update, and colvarbias_restraint_harmonic::update. |
|
\brief Update the centers by interpolating between initial and target.
Definition at line 319 of file colvarbias_restraint.C. References centers_incr, colvarbias_restraint_centers::colvar_centers, colvarmodule::debug, colvarvalue::dist2_grad, colvarmodule::get_error, initial_centers, colvarvalue::interpolate, colvarmodule::log, colvarbias::num_variables, target_centers, and colvarbias::variables. Referenced by update. |
|
Output quantities such as the bias energy to the trajectory file.
Reimplemented from colvarbias_restraint. Reimplemented in colvarbias_restraint_harmonic. Definition at line 483 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvarbias_restraint_moving::b_chg_centers, colvarbias_restraint_centers::colvar_centers, colvardeps::f_cvb_output_acc_work, colvardeps::is_enabled, and colvarbias::num_variables. Referenced by colvarbias_restraint_linear::write_traj, and colvarbias_restraint_harmonic::write_traj. |
|
Write a label to the trajectory file (comment line).
Reimplemented from colvarbias_restraint. Reimplemented in colvarbias_restraint_harmonic. Definition at line 464 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_centers, colvardeps::f_cvb_output_acc_work, colvardeps::is_enabled, colvarbias::num_variables, colvarbias::variables, and colvarmodule::wrap_string. Referenced by colvarbias_restraint_linear::write_traj_label, and colvarbias_restraint_harmonic::write_traj_label. |
|
Whether to write the current restraint centers to the trajectory file.
Definition at line 183 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_centers_moving, and init. |
|
\brief Increment of the restraint centers at each step.
Definition at line 177 of file colvarbias_restraint.h. Referenced by init, update, update_acc_work, and update_centers. |
|
\brief Initial value of the restraint centers.
Definition at line 174 of file colvarbias_restraint.h. Referenced by init, and update_centers. |
|
\brief New restraint centers.
Definition at line 171 of file colvarbias_restraint.h. Referenced by init, and update_centers. |