Bridge++  Ver. 2.0.2
topologicalCharge.h
Go to the documentation of this file.
1 
14 #ifndef TOPOLOGICALCHARGE_INCLUDED
15 #define TOPOLOGICALCHARGE_INCLUDED
16 
17 #include "fieldStrength.h"
18 
19 #include "IO/bridgeIO.h"
20 using Bridge::vout;
21 
23 
44 {
45  public:
46  static const std::string class_name;
47 
48  protected:
50 
51  private:
52  std::string m_filename_output;
53 
54  double m_c_plaq;
55  double m_c_rect;
56 
58  int m_max_mom;
59 
61 
62  std::vector<Field_G> m_Fmunu_plaq;
63  std::vector<Field_G> m_Fmunu_1x1;
64  std::vector<Field_G> m_Fmunu_1x2;
66 
67  public:
69  : m_vl(CommonParameters::Vlevel())
70  {
71  m_filename_output = "stdout";
72  m_flag_field_set = false;
73  }
74 
76  : m_vl(CommonParameters::Vlevel())
77  {
78  m_filename_output = "stdout";
79  m_flag_field_set = false;
80  set_parameters(params);
81  }
82 
83  virtual ~TopologicalCharge() {}
84 
85  private:
86  // non-copyable
89 
90  public:
92  virtual void set_parameters(const Parameters& params);
93  void set_parameters(const double c_plaq, const double c_rect, const int max_mom);
94 
96 
98  virtual void get_parameters(Parameters& params) const;
99 
101  double measure(const Field_G& U);
102 
112  void measure_topological_charge(const double tt);
113 
115  void measure_topological_density_t(const double tt);
116 
118  void measure_topological_density_t_FT(const double tt);
119 
121  void measure_topological_density_x(const double tt);
122 
124  void measure_topological_density_x_FT(const double tt);
125 
127  void measure_topological_density_y(const double tt);
128 
130  void measure_topological_density_y_FT(const double tt);
131 
133  void measure_topological_density_z(const double tt);
134 
136  void measure_topological_density_z_FT(const double tt);
137 
138  // double contract_epsilon_tensor(const Field_G& Fmunu_1, const Field_G& Fmunu_2);
139 
141  void set_field_strength(const Field_G& U);
142 };
143 #endif
bridgeIO.h
TopologicalCharge::get_parameters
virtual void get_parameters(Parameters &params) const
getting parameters.
Definition: topologicalCharge.cpp:49
TopologicalCharge::set_parameter_verboselevel
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: topologicalCharge.h:95
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
TopologicalCharge::operator=
TopologicalCharge & operator=(const TopologicalCharge &)
TopologicalCharge::m_Fmunu_1x1
std::vector< Field_G > m_Fmunu_1x1
Definition: topologicalCharge.h:63
Parameters
Class for parameters.
Definition: parameters.h:46
TopologicalCharge::m_Fmunu_1x2
std::vector< Field_G > m_Fmunu_1x2
Definition: topologicalCharge.h:64
TopologicalCharge::TopologicalCharge
TopologicalCharge(const Parameters &params)
Definition: topologicalCharge.h:75
TopologicalCharge::m_flag_field_set
bool m_flag_field_set
Definition: topologicalCharge.h:65
TopologicalCharge::m_filename_output
std::string m_filename_output
Definition: topologicalCharge.h:52
fieldStrength.h
TopologicalCharge::measure_topological_density_z_FT
void measure_topological_density_z_FT(const double tt)
Measure Fourier transformation of topological charge density corr[z]= using the stored m_Fmunu and p...
Definition: topologicalCharge.cpp:1132
TopologicalCharge::set_field_strength
void set_field_strength(const Field_G &U)
Construct the anti-Hermitian traceless field strength by the link U. Should be called before measuri...
Definition: topologicalCharge.cpp:1280
TopologicalCharge::class_name
static const std::string class_name
Definition: topologicalCharge.h:46
TopologicalCharge::measure
double measure(const Field_G &U)
main function to measure Topological Charge. The field strength is constructed inside the function.
Definition: topologicalCharge.cpp:80
FieldStrength
field strength construction.
Definition: fieldStrength.h:42
TopologicalCharge::m_Fmunu_plaq
std::vector< Field_G > m_Fmunu_plaq
Definition: topologicalCharge.h:62
TopologicalCharge::measure_topological_density_z
void measure_topological_density_z(const double tt)
Measure topological charge density corr[z]= in z direction using the stored m_Fmunu and print out th...
Definition: topologicalCharge.cpp:1009
TopologicalCharge::measure_topological_charge
void measure_topological_charge(const double tt)
Definition: topologicalCharge.cpp:182
TopologicalCharge::measure_topological_density_y
void measure_topological_density_y(const double tt)
Measure topological charge density corr[y]= in y direction using the stored m_Fmunu and print out th...
Definition: topologicalCharge.cpp:756
ParameterCheck::vl
Bridge::VerboseLevel vl
Definition: parameterCheck.cpp:18
TopologicalCharge::measure_topological_density_y_FT
void measure_topological_density_y_FT(const double tt)
Measure Fourier transformation of topological charge density corr[y]= using the stored m_Fmunu and p...
Definition: topologicalCharge.cpp:879
TopologicalCharge::m_c_rect
double m_c_rect
Definition: topologicalCharge.h:55
TopologicalCharge::m_c_plaq
double m_c_plaq
Definition: topologicalCharge.h:54
TopologicalCharge::measure_topological_density_t
void measure_topological_density_t(const double tt)
Measure topological charge density corr[t]= in temporal direction using the stored m_Fmunu and print...
Definition: topologicalCharge.cpp:251
TopologicalCharge::set_parameters
virtual void set_parameters(const Parameters &params)
setting parameters.
Definition: topologicalCharge.cpp:19
TopologicalCharge::measure_topological_density_x_FT
void measure_topological_density_x_FT(const double tt)
Measure Fourier transformation of topological charge density corr[x]= using the stored m_Fmunu and p...
Definition: topologicalCharge.cpp:626
TopologicalCharge::m_max_mom
int m_max_mom
maximum of momentum for Fourier transformation: p_x=[0,max_mom], p_y=[-max_mom,max_mom],...
Definition: topologicalCharge.h:58
TopologicalCharge
Topological Charge measurement.
Definition: topologicalCharge.h:43
TopologicalCharge::m_vl
Bridge::VerboseLevel m_vl
Definition: topologicalCharge.h:49
TopologicalCharge::m_field_strength
FieldStrength m_field_strength
Definition: topologicalCharge.h:60
TopologicalCharge::measure_topological_density_x
void measure_topological_density_x(const double tt)
Measure topological charge density corr[x]= in x direction using the stored m_Fmunu and print out th...
Definition: topologicalCharge.cpp:503
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
TopologicalCharge::TopologicalCharge
TopologicalCharge()
Definition: topologicalCharge.h:68
TopologicalCharge::measure_topological_density_t_FT
void measure_topological_density_t_FT(const double tt)
Measure Fourier transformation of topological charge density corr[t]= using the stored m_Fmunu and p...
Definition: topologicalCharge.cpp:373
TopologicalCharge::~TopologicalCharge
virtual ~TopologicalCharge()
Definition: topologicalCharge.h:83
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512