Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Rational_Frame_SF.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_FRATIONAL_FRAME_SF_INCLUDED
15 #define ACTION_FRATIONAL_FRAME_SF_INCLUDED
16 
17 #include "action.h"
18 #include "fopr_Rational.h"
19 #include "force_F_Rational.h"
20 
21 #include "field_G_SF.h"
22 #include "field_F_SF.h"
23 
24 #include "bridgeIO.h"
25 using Bridge::vout;
26 
28 
37 //- parameters class
39 {
40  public:
42 };
43 //- end
44 
46  private:
47  std::string m_label; // label of action
48 
52 
55 
58 
59 
60  public:
62  Action_F_Rational_frame_SF(Fopr *fopr_langev, Fopr *fopr_H,
63  Force *fopr_force_MD)
64  {
65  m_fopr_langev = fopr_langev;
66  m_fopr_H = fopr_H;
67  m_fopr_force_MD = fopr_force_MD;
68  setup();
69  }
70 
73  {
74  }
75 
77  void set_parameters(const Parameters& params);
78 
80  void set_label(std::string label)
81  {
82  m_label = label;
83  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
84  }
85 
87  std::string get_label()
88  {
89  return m_label;
90  }
91 
93  void set_config(Field *U)
94  {
95  m_U = U;
97  m_fopr_H->set_config(U);
99  }
100 
103  {
104  m_status_linkv = 0;
105  }
106 
108  double langevin(RandomNumbers *);
109 
111  double calcH();
112 
114  const Field force();
115 
116  private:
117 
119  void setup();
120 
122  void tidyup();
123 };
124 #endif