Collective Variables Module - Developer Documentation
Loading...
Searching...
No Matches
colvarbias_abmd.h
1// -*- c++ -*-
2
3// This file is part of the Collective Variables module (Colvars).
4// The original version of Colvars and its updates are located at:
5// https://github.com/Colvars/colvars
6// Please update all Colvars source files before making any changes.
7// If you wish to distribute your changes, please submit them to the
8// Colvars repository at GitHub.
9
10#ifndef COLVARBIAS_ABMD_H
11#define COLVARBIAS_ABMD_H
12
13#include "colvarbias_restraint.h"
14
15
18 : public colvarbias_ti
19{
20public:
21
22 colvarbias_abmd(char const *key);
23 virtual int init(std::string const &conf);
24 virtual int update();
25 virtual std::string const get_state_params() const;
26 virtual int set_state_params(std::string const &conf);
27 virtual std::ostream & write_traj_label(std::ostream &os);
28 virtual std::ostream & write_traj(std::ostream &os);
29
30protected:
31
34
36 bool ref_initialized = false;
37
40
42 bool decreasing = false;
43
46};
47
48
49#endif
Adiabatic Bias MD.
Definition: colvarbias_abmd.h:19
virtual int update()
Definition: colvarbias_abmd.cpp:49
cvm::real k
Restraint force constant.
Definition: colvarbias_abmd.h:45
virtual std::ostream & write_traj_label(std::ostream &os)
Write a label to the trajectory file (comment line)
Definition: colvarbias_abmd.cpp:119
virtual std::string const get_state_params() const
Write the values of specific mutable properties to a string.
Definition: colvarbias_abmd.cpp:80
virtual std::ostream & write_traj(std::ostream &os)
Output quantities such as the bias energy to the trajectory file.
Definition: colvarbias_abmd.cpp:129
bool decreasing
Is the target moving down?
Definition: colvarbias_abmd.h:42
bool ref_initialized
Has ref_val already been set?
Definition: colvarbias_abmd.h:36
virtual int set_state_params(std::string const &conf)
Read the values of specific mutable properties from a string.
Definition: colvarbias_abmd.cpp:96
cvm::real ref_val
Location of the moving wall.
Definition: colvarbias_abmd.h:33
cvm::real stopping_val
Value of the reference where it stops moving.
Definition: colvarbias_abmd.h:39
virtual int init(std::string const &conf)
Parse config string and (re)initialize.
Definition: colvarbias_abmd.cpp:23
Base class for unconstrained thermodynamic-integration FE estimator.
Definition: colvarbias.h:333
double real
Defining an abstract real number allows to switch precision.
Definition: colvarmodule.h:95