#include <colvarbias_histogram.h>
Inheritance diagram for colvarbias_histogram:
Public Methods | |
colvarbias_histogram (char const *key) | |
~colvarbias_histogram () | |
virtual int | init (std::string const &conf) |
\brief Parse config string and (re)initialize. More... | |
virtual int | update () |
Retrieve colvar values and calculate their biasing forces Some implementations may use calc_energy() and calc_forces(). More... | |
virtual int | write_output_files () |
Write any output files that this bias may have (e.g. PMF files). More... | |
Protected Methods | |
virtual std::istream & | read_state_data (std::istream &is) |
Read all mutable data not already set by set_state_params(). More... | |
virtual std::ostream & | write_state_data (std::ostream &os) |
Write all mutable data not already written by get_state_params(). More... | |
Protected Attributes | |
colvar_grid_scalar * | grid |
n-dim histogram. More... | |
std::vector< int > | bin |
std::string | out_name |
std::string | out_name_dx |
size_t | colvar_array_size |
If one or more of the variables are colvarvalue::type_vector, treat them as arrays of this length. More... | |
std::vector< cvm::real > | weights |
If colvar_array_size is larger than 1, weigh each one by this number before accumulating the histogram. More... |
Definition at line 22 of file colvarbias_histogram.h.
|
Definition at line 16 of file colvarbias_histogram.C. References colvardeps::f_cvb_bypass_ext_lagrangian, NULL, and colvardeps::provide. |
|
Definition at line 106 of file colvarbias_histogram.C. |
|
\brief Parse config string and (re)initialize.
Reimplemented from colvarbias. Reimplemented in colvarbias_reweightaMD. Definition at line 24 of file colvarbias_histogram.C. References colvarparse::check_keywords, colvarmodule::cite_feature, colvar_array_size, colvarbias::colvars, COLVARS_INPUT_ERROR, conf, colvardeps::enable, colvarmodule::error, colvardeps::f_cv_grid, colvardeps::f_cvb_bypass_ext_lagrangian, colvardeps::f_cvb_history_dependent, colvardeps::f_cvb_scalar_variables, colvarparse::get_keyval, grid, colvarbias::init, colvar_grid< cvm::real >::init_from_colvars, colvardeps::is_enabled, colvarparse::key_lookup, colvarmodule::main, colvarbias::num_variables, out_name, out_name_dx, colvar_grid< cvm::real >::parse_params, colvar_grid< cvm::real >::request_actual_value, colvarvalue::type_scalar, colvarvalue::type_vector, and weights. Referenced by colvarbias_reweightaMD::init. |
|
Read all mutable data not already set by set_state_params().
Reimplemented from colvarbias. Reimplemented in colvarbias_reweightaMD. Definition at line 198 of file colvarbias_histogram.C. References grid, colvar_grid< cvm::real >::read_raw, and colvarbias::read_state_data_key. |
|
Retrieve colvar values and calculate their biasing forces Some implementations may use calc_energy() and calc_forces().
Reimplemented from colvarbias. Reimplemented in colvarbias_reweightaMD. Definition at line 115 of file colvarbias_histogram.C. References colvar_grid_scalar::acc_value, bin, colvarbias::can_accumulate_data, colvar_array_size, colvar_grid< cvm::real >::current_bin_scalar, colvarmodule::debug, colvarmodule::get_error, grid, colvar_grid< cvm::real >::index_ok, colvarmodule::log, colvarbias::name, colvarbias::num_variables, out_name, out_name_dx, colvarmodule::output_prefix, colvarmodule::step_relative, colvarbias::update, and weights. |
|
Write any output files that this bias may have (e.g. PMF files).
Reimplemented from colvarbias. Reimplemented in colvarbias_reweightaMD. Definition at line 175 of file colvarbias_histogram.C. References grid, colvarbias::has_data, colvarmodule::log, out_name, out_name_dx, colvar_grid_scalar::write_multicol, and colvar_grid_scalar::write_opendx. |
|
Write all mutable data not already written by get_state_params().
Reimplemented from colvarbias. Reimplemented in colvarbias_reweightaMD. Definition at line 211 of file colvarbias_histogram.C. References grid, and colvar_grid< cvm::real >::write_raw. |
|
Definition at line 36 of file colvarbias_histogram.h. Referenced by colvarbias_reweightaMD::update, and update. |
|
If one or more of the variables are colvarvalue::type_vector, treat them as arrays of this length.
Definition at line 40 of file colvarbias_histogram.h. Referenced by init, colvarbias_reweightaMD::update, and update. |
|
n-dim histogram.
Definition at line 35 of file colvarbias_histogram.h. Referenced by colvarbias_reweightaMD::init, init, colvarbias_reweightaMD::read_state_data, read_state_data, colvarbias_reweightaMD::update, update, colvarbias_reweightaMD::write_exponential_reweighted_pmf, write_output_files, colvarbias_reweightaMD::write_state_data, write_state_data, and ~colvarbias_histogram. |
|
Definition at line 37 of file colvarbias_histogram.h. Referenced by init, update, and write_output_files. |
|
Definition at line 37 of file colvarbias_histogram.h. Referenced by init, update, and write_output_files. |
|
If colvar_array_size is larger than 1, weigh each one by this number before accumulating the histogram.
Definition at line 42 of file colvarbias_histogram.h. |