Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
action_G_Rectangle.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_G_RECTANGLE_INCLUDED
15 #define ACTION_G_RECTANGLE_INCLUDED
16 
17 #include "action.h"
18 #include "staples.h"
19 #include "shiftField_lex.h"
20 
21 #include "bridgeIO.h"
22 using Bridge::vout;
23 
25 
35 //- parameters class
37 {
38  public:
40 };
41 //- end
42 
43 class Action_G_Rectangle : public Action
44 {
45  public:
46  static const std::string class_name;
47 
48  private:
49  double m_beta;
50  double m_c_plaq;
51  double m_c_rect;
52  std::string m_label;
54 
59 
61 
62  public:
64  : Action() {}
65 
67 
68  void set_parameters(const Parameters& params);
69  void set_parameters(double beta, double c_plaq, double c_rect);
70 
71  void set_label(std::string label)
72  {
73  m_label = label;
74  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
75  }
76 
77  std::string get_label()
78  {
79  return m_label;
80  }
81 
82  void set_config(Field *U)
83  {
84  m_U = (Field_G *)U;
85  }
86 
87  void notify_linkv()
88  {
89  m_status_linkv = 0;
90  }
91 
92  double langevin(RandomNumbers *);
93 
94  double calcH();
95 
96  const Field force();
97 };
98 #endif
BridgeIO vout
Definition: bridgeIO.cpp:207
double langevin(RandomNumbers *)
Langevis step.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:50
Staple construction.
Definition: staples.h:40
HMC action class for rectangular gauge action.
std::string get_label()
Container of Field-type object.
Definition: field.h:37
void notify_linkv()
to be called when gauge configuration is updated.
ShiftField_lex m_shift
RandomNumbers * m_rand
Class for parameters.
Definition: parameters.h:40
Base class of HMC action class family.
Definition: action.h:35
double calcH()
calculate Hamiltonian of this action term.
SU(N) gauge field.
Definition: field_G.h:36
static const std::string class_name
void set_parameters(const Parameters &params)
Bridge::VerboseLevel m_vl
Definition: action.h:64
Base class of random number generators.
Definition: randomNumbers.h:40
const Field force()
returns force for molcular dynamical update of conjugate momenta.
Methods to shift a field in the lexical site index.
void set_label(std::string label)
void set_config(Field *U)
setting pointer to the gauge configuration.