#include <colvarbias_restraint.h>
Inheritance diagram for colvarbias_restraint_k:
Public Methods | |
colvarbias_restraint_k (char const *key) | |
virtual int | init (std::string const &conf) |
\brief Parse config string and (re)initialize. More... | |
virtual int | change_configuration (std::string const &conf) |
Load new configuration - force constant and/or centers only. More... | |
Protected Attributes | |
cvm::real | force_k |
\brief Restraint force constant. More... | |
bool | check_positive_k |
\brief Whether the force constant should be positive. More... |
Definition at line 85 of file colvarbias_restraint.h.
|
Definition at line 155 of file colvarbias_restraint.C. References check_positive_k, and force_k. |
|
Load new configuration - force constant and/or centers only.
Reimplemented from colvarbias_restraint. Reimplemented in colvarbias_restraint_k_moving. Definition at line 174 of file colvarbias_restraint.C. References conf, force_k, and colvarparse::get_keyval. Referenced by colvarbias_restraint_linear::change_configuration, and colvarbias_restraint_harmonic::change_configuration. |
|
\brief Parse config string and (re)initialize.
Reimplemented from colvarbias_restraint. Reimplemented in colvarbias_restraint_k_moving. Definition at line 163 of file colvarbias_restraint.C. References check_positive_k, COLVARS_INPUT_ERROR, conf, colvarmodule::error, force_k, and colvarparse::get_keyval. Referenced by colvarbias_restraint_k_moving::init. |
|
\brief Whether the force constant should be positive.
Definition at line 100 of file colvarbias_restraint.h. Referenced by colvarbias_restraint_k, colvarbias_restraint_linear::colvarbias_restraint_linear, and init. |
|