#include <colvarbias_restraint.h>
Inheritance diagram for colvarbias_restraint_k_moving:
Public Methods | |
colvarbias_restraint_k_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 | |
int | update_acc_work () |
Update the accumulated work. More... | |
Protected Attributes | |
cvm::real | target_force_k |
\brief Restraint force constant (target value). More... | |
cvm::real | starting_force_k |
\brief Restraint force constant (starting value). More... | |
cvm::real | lambda_exp |
\brief Exponent for varying the force constant. More... | |
cvm::real | restraint_FE |
\brief Intermediate quantity to compute the restraint free energy (in TI, would be the accumulating FE derivative). More... | |
cvm::real | target_equil_steps |
\brief Equilibration steps for restraint FE calculation through TI. More... | |
cvm::real | force_k_incr |
\brief Increment of the force constant at each step. More... |
Definition at line 191 of file colvarbias_restraint.h.
|
Definition at line 504 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_force_k, colvarbias_restraint_moving::b_decoupling, force_k_incr, lambda_exp, restraint_FE, starting_force_k, target_equil_steps, and target_force_k. |
|
Load new configuration - force constant and/or centers only.
Reimplemented from colvarbias_restraint_k. Reimplemented in colvarbias_restraint_harmonic. Definition at line 200 of file colvarbias_restraint.h. References COLVARS_NOT_IMPLEMENTED. |
|
Reimplemented from colvarbias_restraint_moving. Reimplemented in colvarbias_restraint_harmonic. Definition at line 684 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvardeps::f_cvb_output_acc_work, colvarbias_restraint_k::force_k, and colvardeps::is_enabled. Referenced by colvarbias_restraint_linear::get_state_params, colvarbias_restraint_harmonic_walls::get_state_params, and colvarbias_restraint_harmonic::get_state_params. |
|
\brief Parse config string and (re)initialize.
Reimplemented from colvarbias_restraint_k. Reimplemented in colvarbias_restraint_harmonic. Definition at line 522 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_force_k, colvarbias_restraint_moving::b_decoupling, COLVARS_ERROR, COLVARS_INPUT_ERROR, conf, colvarmodule::error, colvarbias_restraint_k::force_k, colvarmodule::get_error, colvarparse::get_keyval, colvarbias_restraint_moving::init, colvarbias_restraint_k::init, lambda_exp, colvarbias_restraint_moving::lambda_schedule, colvarmodule::log, colvarparse::parse_deprecated, starting_force_k, target_equil_steps, target_force_k, and colvarbias_restraint_moving::target_nstages. Referenced by colvarbias_restraint_linear::init, colvarbias_restraint_harmonic_walls::init, and colvarbias_restraint_harmonic::init. |
|
Reimplemented from colvarbias_restraint_moving. Reimplemented in colvarbias_restraint_harmonic. Definition at line 703 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, conf, colvardeps::f_cvb_output_acc_work, colvarbias_restraint_k::force_k, 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, colvarbias_restraint_harmonic_walls::set_state_params, and colvarbias_restraint_harmonic::set_state_params. |
|
|
Update the accumulated work.
Definition at line 664 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvarbias_restraint::d_restraint_potential_dk, colvardeps::f_cvb_output_acc_work, force_k_incr, colvardeps::is_enabled, colvarmodule::main, colvarbias::num_variables, colvarmodule::proxy, colvarproxy::simulation_running, and colvarmodule::step_relative. Referenced by colvarbias_restraint_linear::update, colvarbias_restraint_harmonic_walls::update, and colvarbias_restraint_harmonic::update. |
|
Output quantities such as the bias energy to the trajectory file.
Reimplemented from colvarbias_restraint. Reimplemented in colvarbias_restraint_harmonic. Definition at line 731 of file colvarbias_restraint.C. References colvarbias_restraint_moving::acc_work, colvarbias_restraint_moving::b_chg_force_k, colvardeps::f_cvb_output_acc_work, and colvardeps::is_enabled. Referenced by colvarbias_restraint_linear::write_traj, colvarbias_restraint_harmonic_walls::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 721 of file colvarbias_restraint.C. References colvarbias_restraint_moving::b_chg_force_k, colvardeps::f_cvb_output_acc_work, colvardeps::is_enabled, and colvarmodule::wrap_string. Referenced by colvarbias_restraint_linear::write_traj_label, colvarbias_restraint_harmonic_walls::write_traj_label, and colvarbias_restraint_harmonic::write_traj_label. |
|
\brief Increment of the force constant at each step.
Definition at line 226 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, update, and update_acc_work. |
|
\brief Exponent for varying the force constant.
Definition at line 216 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, init, and update. |
|
\brief Intermediate quantity to compute the restraint free energy (in TI, would be the accumulating FE derivative).
Definition at line 220 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, and update. |
|
\brief Restraint force constant (starting value).
Definition at line 213 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, colvarbias_restraint_harmonic_walls::init, init, and update. |
|
\brief Equilibration steps for restraint FE calculation through TI.
Definition at line 223 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, init, and update. |
|
\brief Restraint force constant (target value).
Definition at line 210 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k_moving, init, and update. |