Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_F_Standard.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_STANDARD_INCLUDED
15 #define ACTION_F_STANDARD_INCLUDED
16 
17 #include <valarray>
18 #include "action.h"
19 #include "solver.h"
20 
21 #include "bridgeIO.h"
22 using Bridge::vout;
23 
25 
35 class Action_F_Standard : public Action
36 {
37  private:
41  std::string m_label;
43 
45 
48 
50 
51  public:
52 
53  Action_F_Standard(Fopr *fopr, Force *fopr_force)
54  : Action(), m_fopr(fopr), m_fopr_force(fopr_force)
55  {
57  }
58 
60  {
61  delete m_solver;
62  }
63 
64  void set_parameters(const Parameters&);
65  void set_parameters();
66 
67  void set_label(std::string label)
68  {
69  m_label = label;
70  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
71  }
72 
73  std::string get_label()
74  {
75  return m_label;
76  }
77 
78  void set_config(Field *U)
79  {
80  m_U = U;
81  m_fopr->set_config(U);
83  }
84 
85  void notify_linkv()
86  {
87  m_status_linkv = 0;
88  }
89 
90  double langevin(RandomNumbers *);
91 
92  double calcH();
93 
94  const Field force();
95 };
96 #endif