10#ifndef COLVARBIAS_ALB_H
11#define COLVARBIAS_ALB_H
14#include "colvarbias.h"
23 virtual int init(std::string
const &conf);
29 virtual std::ostream &
write_traj(std::ostream &os);
38 std::vector<cvm::real> ssd;
48 std::vector<cvm::real> max_coupling_rate;
66 bool b_hard_coupling_range;
A collective variable (main class); to be defined, it needs at least one object of a derived class of...
Definition: colvar.h:53
Definition: colvarbias_alb.h:17
std::vector< cvm::real > current_coupling
current coupling constant, which is ramped up during equilibration to coupling
Definition: colvarbias_alb.h:57
std::vector< cvm::real > means
colvar parameters, used for calculating the gradient/variance
Definition: colvarbias_alb.h:37
std::vector< cvm::real > coupling_accum
accumated couping force; used in stochastic online gradient descent algorithm
Definition: colvarbias_alb.h:51
virtual int init(std::string const &conf)
Parse config string and (re)initialize.
Definition: colvarbias_alb.cpp:39
int update_freq
how often to update coupling constant
Definition: colvarbias_alb.h:42
std::vector< colvarvalue > colvar_centers
Restraint centers.
Definition: colvarbias_alb.h:34
bool b_output_grad
flag for outputting current gradient
Definition: colvarbias_alb.h:73
virtual int set_state_params(std::string const &conf)
Read the values of specific mutable properties from a string.
Definition: colvarbias_alb.cpp:258
virtual int update()
Definition: colvarbias_alb.cpp:148
virtual std::ostream & write_traj(std::ostream &os)
Output quantities such as the bias energy to the trajectory file.
Definition: colvarbias_alb.cpp:378
std::vector< cvm::real > coupling_rate
how quickly to change the coupling constant
Definition: colvarbias_alb.h:60
bool b_output_centers
flag for outputting colvar centers
Definition: colvarbias_alb.h:70
virtual std::ostream & write_traj_label(std::ostream &os)
Write a label to the trajectory file (comment line)
Definition: colvarbias_alb.cpp:346
colvarvalue restraint_force(cvm::real k, const colvar *x, const colvarvalue &xcenter) const
Force function.
Definition: colvarbias_alb.cpp:422
cvm::real restraint_convert_k(cvm::real k, cvm::real dist_measure) const
Unit scaling.
Definition: colvarbias_alb.cpp:430
std::vector< cvm::real > set_coupling
coupling constant
Definition: colvarbias_alb.h:54
std::vector< cvm::real > max_coupling_range
Estimated range of coupling constant values in kT.
Definition: colvarbias_alb.h:45
bool b_output_coupling
flag for outputting coupling constant
Definition: colvarbias_alb.h:76
virtual std::string const get_state_params() const
Write the values of specific mutable properties to a string.
Definition: colvarbias_alb.cpp:297
Collective variable bias, base class.
Definition: colvarbias.h:23
double real
Defining an abstract real number allows to switch precision.
Definition: colvarmodule.h:95
Value of a collective variable: this is a metatype which can be set at runtime. By default it is set ...
Definition: colvarvalue.h:43