Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wilsonLoop.h
Go to the documentation of this file.
1 
14 #ifndef WILSONLOOP_INCLUDED
15 #define WILSONLOOP_INCLUDED
16 
17 #include "Field/field_G.h"
18 #include "Field/shiftField_eo.h"
19 
20 #include "Parameters/parameters.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
45 {
46  public:
47  static const std::string class_name;
48 
49  protected:
51 
52  private:
53  std::string m_filename_output;
54 
58  int m_Ntype;
59 
62  int m_Nx_ext;
63  int m_Ny_ext;
64  int m_Nz_ext;
65  int m_Nt_ext;
66  int m_Nvol_ext;
67 
68  typedef std::vector<int> unit_vec;
69  std::vector<unit_vec> m_Nunit;
70  std::vector<int> m_Nmax;
71 
72  public:
74  : m_vl(CommonParameters::Vlevel())
75  {
76  init();
77  }
78 
79  virtual ~WilsonLoop() {}
80 
81  private:
82  // non-copyable
83  WilsonLoop(const WilsonLoop&);
85 
86  public:
88  virtual void set_parameters(const Parameters& params);
89  void set_parameters(const int Nspc_size, const int Ntmp_size, const int Ntype);
90 
92 
94  double measure(const Field_G& U);
95 
97  int index_wloop(const int i_spc, const int i_tmp, const int i_type)
98  {
99  return i_spc + m_Nspc_size * (i_tmp + m_Ntmp_size * i_type);
100  }
101 
102  private:
104  void init();
105 
107  double calc_wloop(const Field_G& Uspc, const int t_ext);
108 
110  void redef_Uspc(Field_G& Uspc, const Field_G& Uext,
111  const int j, const int nu, const std::vector<int>& unit_v);
112 
114  void set_extfield(Field_G& Uext, const Field_G& Uorg);
115 
117  void gfix_temporal(Field_G& Uext);
118 };
119 #endif
virtual ~WilsonLoop()
Definition: wilsonLoop.h:79
void gfix_temporal(Field_G &Uext)
temporal gauge fixing of extended gauge field.
Definition: wilsonLoop.cpp:574
BridgeIO vout
Definition: bridgeIO.cpp:503
WilsonLoop & operator=(const WilsonLoop &)
int m_Ntype
number of measured loop-type
Definition: wilsonLoop.h:58
int m_Nvol_ext
volume of extended gauge config.
Definition: wilsonLoop.h:66
std::vector< unit_vec > m_Nunit
Definition: wilsonLoop.h:69
int m_Nspc_size
parameters set by user
Definition: wilsonLoop.h:56
int m_Nt_ext
size of extended gauge config.
Definition: wilsonLoop.h:65
Class for parameters.
Definition: parameters.h:46
void redef_Uspc(Field_G &Uspc, const Field_G &Uext, const int j, const int nu, const std::vector< int > &unit_v)
redefinition of product of spatial link variables.
Definition: wilsonLoop.cpp:287
double measure(const Field_G &U)
main function to measure Wilson loops.
Definition: wilsonLoop.cpp:147
int m_Ntmp_size
spatial size of loop
Definition: wilsonLoop.h:57
int m_Ntype_max
internal data members
Definition: wilsonLoop.h:61
SU(N) gauge field.
Definition: field_G.h:38
double calc_wloop(const Field_G &Uspc, const int t_ext)
temporal gauge fixing of extended gauge field.
Definition: wilsonLoop.cpp:237
static const std::string class_name
Definition: wilsonLoop.h:47
std::string m_filename_output
Definition: wilsonLoop.h:53
void set_extfield(Field_G &Uext, const Field_G &Uorg)
setup of extended gauge field.
Definition: wilsonLoop.cpp:402
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: wilsonLoop.h:91
void init()
initial setup independent of parameters.
Definition: wilsonLoop.cpp:98
std::vector< int > m_Nmax
Definition: wilsonLoop.h:70
int m_Nz_ext
size of extended gauge config.
Definition: wilsonLoop.h:64
Common parameter class: provides parameters as singleton.
Bridge::VerboseLevel m_vl
Definition: wilsonLoop.h:50
virtual void set_parameters(const Parameters &params)
setting parameters.
Definition: wilsonLoop.cpp:19
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
Wilson loop measurement.
Definition: wilsonLoop.h:44
int index_wloop(const int i_spc, const int i_tmp, const int i_type)
index for Wilson loop variable.
Definition: wilsonLoop.h:97
int m_Ny_ext
size of extended gauge config.
Definition: wilsonLoop.h:63
std::vector< int > unit_vec
Definition: wilsonLoop.h:68
int m_Nx_ext
size of extended gauge config.
Definition: wilsonLoop.h:62