Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
75  virtual ~TopologicalCharge() {}
76 
77  private:
78  // non-copyable
81 
82  public:
84  virtual void set_parameters(const Parameters& params);
85  void set_parameters(const double c_plaq, const double c_rect, const int max_mom);
86 
88 
90  double measure(const Field_G& U);
91 
101  void measure_topological_charge(const double tt);
102 
104  void measure_topological_density_t(const double tt);
105 
107  void measure_topological_density_t_FT(const double tt);
108 
110  void measure_topological_density_x(const double tt);
111 
113  void measure_topological_density_x_FT(const double tt);
114 
116  void measure_topological_density_y(const double tt);
117 
119  void measure_topological_density_y_FT(const double tt);
120 
122  void measure_topological_density_z(const double tt);
123 
125  void measure_topological_density_z_FT(const double tt);
126 
127  // double contract_epsilon_tensor(const Field_G& Fmunu_1, const Field_G& Fmunu_2);
128 
130  void set_field_strength(const Field_G& U);
131 };
132 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
std::string m_filename_output
std::vector< Field_G > m_Fmunu_1x2
static const std::string class_name
std::vector< Field_G > m_Fmunu_1x1
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
double measure(const Field_G &U)
main function to measure Topological Charge. The field strength is constructed inside the function...
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...
Class for parameters.
Definition: parameters.h:46
void measure_topological_charge(const double tt)
void set_field_strength(const Field_G &U)
Construct the anti-Hermitian traceless field strength by the link U. Should be called before measuri...
std::vector< Field_G > m_Fmunu_plaq
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...
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...
SU(N) gauge field.
Definition: field_G.h:38
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...
Common parameter class: provides parameters as singleton.
int m_max_mom
maximum of momentum for Fourier transformation: p_x=[0,max_mom], p_y=[-max_mom,max_mom], p_z=[-max_mom,max_mom]
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...
FieldStrength m_field_strength
Bridge::VerboseLevel m_vl
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...
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
void measure_topological_density_t(const double tt)
Measure topological charge density corr[t]= in temporal direction using the stored m_Fmunu and print...
virtual void set_parameters(const Parameters &params)
setting parameters.
field strength construction.
Definition: fieldStrength.h:42
virtual ~TopologicalCharge()
TopologicalCharge & operator=(const TopologicalCharge &)
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...
Topological Charge measurement.