Bridge++  Ver. 2.0.2
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  WilsonLoop(const Parameters& params)
80  : m_vl(CommonParameters::Vlevel())
81  {
82  init();
83  set_parameters(params);
84  }
85 
86  virtual ~WilsonLoop() {}
87 
88  private:
89  // non-copyable
90  WilsonLoop(const WilsonLoop&);
92 
93  public:
95  virtual void set_parameters(const Parameters& params);
96  void set_parameters(const int Nspc_size, const int Ntmp_size, const int Ntype);
97 
99 
100  void get_parameters(Parameters& params) const;
101 
103  double measure(const Field_G& U);
104 
106  int index_wloop(const int i_spc, const int i_tmp, const int i_type)
107  {
108  return i_spc + m_Nspc_size * (i_tmp + m_Ntmp_size * i_type);
109  }
110 
111  private:
113  void init();
114 
116  double calc_wloop(const Field_G& Uspc, const int t_ext);
117 
119  void redef_Uspc(Field_G& Uspc, const Field_G& Uext,
120  const int j, const int nu, const std::vector<int>& unit_v);
121 
123  void set_extfield(Field_G& Uext, const Field_G& Uorg);
124 
126  void gfix_temporal(Field_G& Uext);
127 };
128 #endif
WilsonLoop
Wilson loop measurement.
Definition: wilsonLoop.h:44
bridgeIO.h
field_G.h
WilsonLoop::m_Ny_ext
int m_Ny_ext
size of extended gauge config.
Definition: wilsonLoop.h:63
WilsonLoop::m_Ntype_max
int m_Ntype_max
internal data members
Definition: wilsonLoop.h:61
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
WilsonLoop::m_Ntmp_size
int m_Ntmp_size
spatial size of loop
Definition: wilsonLoop.h:57
Parameters
Class for parameters.
Definition: parameters.h:46
WilsonLoop::unit_vec
std::vector< int > unit_vec
Definition: wilsonLoop.h:68
WilsonLoop::m_Nmax
std::vector< int > m_Nmax
Definition: wilsonLoop.h:70
WilsonLoop::class_name
static const std::string class_name
Definition: wilsonLoop.h:47
WilsonLoop::~WilsonLoop
virtual ~WilsonLoop()
Definition: wilsonLoop.h:86
WilsonLoop::gfix_temporal
void gfix_temporal(Field_G &Uext)
temporal gauge fixing of extended gauge field.
Definition: wilsonLoop.cpp:587
WilsonLoop::m_vl
Bridge::VerboseLevel m_vl
Definition: wilsonLoop.h:50
WilsonLoop::init
void init()
initial setup independent of parameters.
Definition: wilsonLoop.cpp:111
WilsonLoop::get_parameters
void get_parameters(Parameters &params) const
Definition: wilsonLoop.cpp:50
WilsonLoop::operator=
WilsonLoop & operator=(const WilsonLoop &)
shiftField_eo.h
WilsonLoop::set_parameters
virtual void set_parameters(const Parameters &params)
setting parameters.
Definition: wilsonLoop.cpp:19
ParameterCheck::vl
Bridge::VerboseLevel vl
Definition: parameterCheck.cpp:18
WilsonLoop::index_wloop
int index_wloop(const int i_spc, const int i_tmp, const int i_type)
index for Wilson loop variable.
Definition: wilsonLoop.h:106
WilsonLoop::redef_Uspc
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:300
WilsonLoop::m_Ntype
int m_Ntype
number of measured loop-type
Definition: wilsonLoop.h:58
WilsonLoop::m_Nx_ext
int m_Nx_ext
size of extended gauge config.
Definition: wilsonLoop.h:62
WilsonLoop::m_Nunit
std::vector< unit_vec > m_Nunit
Definition: wilsonLoop.h:69
WilsonLoop::WilsonLoop
WilsonLoop(const Parameters &params)
Definition: wilsonLoop.h:79
WilsonLoop::m_Nt_ext
int m_Nt_ext
size of extended gauge config.
Definition: wilsonLoop.h:65
parameters.h
WilsonLoop::calc_wloop
double calc_wloop(const Field_G &Uspc, const int t_ext)
temporal gauge fixing of extended gauge field.
Definition: wilsonLoop.cpp:250
WilsonLoop::m_filename_output
std::string m_filename_output
Definition: wilsonLoop.h:53
WilsonLoop::WilsonLoop
WilsonLoop()
Definition: wilsonLoop.h:73
WilsonLoop::set_extfield
void set_extfield(Field_G &Uext, const Field_G &Uorg)
setup of extended gauge field.
Definition: wilsonLoop.cpp:415
WilsonLoop::set_parameter_verboselevel
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: wilsonLoop.h:98
WilsonLoop::m_Nvol_ext
int m_Nvol_ext
volume of extended gauge config.
Definition: wilsonLoop.h:66
WilsonLoop::m_Nspc_size
int m_Nspc_size
parameters set by user
Definition: wilsonLoop.h:56
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
WilsonLoop::m_Nz_ext
int m_Nz_ext
size of extended gauge config.
Definition: wilsonLoop.h:64
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
WilsonLoop::measure
double measure(const Field_G &U)
main function to measure Wilson loops.
Definition: wilsonLoop.cpp:160