Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Rational_Frame.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_RATIONAL_FRAME_INCLUDED
15 #define ACTION_F_RATIONAL_FRAME_INCLUDED
16 
17 #include "action.h"
18 #include "fopr_Rational.h"
19 #include "force_F_Rational.h"
20 
21 #include "bridgeIO.h"
22 using Bridge::vout;
23 
25 
34 //- parameters class
36 {
37  public:
39 };
40 //- end
41 
43 {
44  private:
45  std::string m_label; // label of action
46 
50 
53 
56 
57 
58  public:
61  Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
62  : Action(),
63  m_fopr_langev(fopr_langev), m_fopr_H(fopr_H), m_fopr_force_MD(fopr_force_MD)
64  {
65  setup();
66  }
67 
70 
71  void set_parameters(const Parameters& params);
72 
74  void set_label(std::string label)
75  {
76  m_label = label;
77  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
78  }
79 
81  std::string get_label()
82  {
83  return m_label;
84  }
85 
87  void set_config(Field *U)
88  {
89  m_U = U;
91  m_fopr_H->set_config(U);
93  }
94 
96  void notify_linkv()
97  {
98  m_status_linkv = 0;
99  }
100 
102  double langevin(RandomNumbers *);
103 
105  double calcH();
106 
108  const Field force();
109 
110  private:
111 
113  void setup();
114 
116  void tidyup();
117 };
118 #endif