Bridge++  Ver. 1.3.x
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;
53 
57 
59 
60  public:
62  : Action() {}
63 
65 
66  void set_parameters(const Parameters& params);
67  void set_parameters(double beta, double c_plaq, double c_rect);
68 
69  void set_label(std::string label)
70  {
71  m_label = label;
72  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
73  }
74 
75  std::string get_label()
76  {
77  return m_label;
78  }
79 
80  void set_config(Field *U)
81  {
82  m_U = (Field_G *)U;
83  }
84 
85  double langevin(RandomNumbers *);
86 
87  double calcH();
88 
89  void force(Field&);
90 };
91 #endif
BridgeIO vout
Definition: bridgeIO.cpp:278
double langevin(RandomNumbers *)
Langevis step.
void detailed(const char *format,...)
Definition: bridgeIO.cpp:82
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:39
ShiftField_lex m_shift
RandomNumbers * m_rand
Class for parameters.
Definition: parameters.h:38
Base class of HMC action class family.
Definition: action.h:42
double calcH()
calculate Hamiltonian of this action term.
SU(N) gauge field.
Definition: field_G.h:38
static const std::string class_name
void set_parameters(const Parameters &params)
Bridge::VerboseLevel m_vl
Definition: action.h:81
Base class of random number generators.
Definition: randomNumbers.h:39
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.
void force(Field &)
returns force for molcular dynamical update of conjugate momenta.