Bridge++  Ver. 2.0.2
energyDensity.h
Go to the documentation of this file.
1 
14 #ifndef ENERGYDENSITY_INCLUDED
15 #define ENERGYDENSITY_INCLUDED
16 
17 #include "fieldStrength.h"
18 
19 #include "IO/bridgeIO.h"
20 using Bridge::vout;
21 
23 
30 {
31  public:
32  static const std::string class_name;
33 
34  protected:
36 
37  private:
38  std::string m_filename_output;
39 
40  double m_c_plaq;
41  double m_c_rect;
42 
45 
46 
47  public:
49  : m_vl(CommonParameters::Vlevel())
50  {
51  m_filename_output = "stdout";
52  }
53 
54  EnergyDensity(const Parameters& params)
55  : m_vl(CommonParameters::Vlevel())
56  {
57  m_filename_output = "stdout";
58  set_parameters(params);
59  }
60 
61  virtual ~EnergyDensity() {}
62 
63  private:
64  // non-copyable
67 
68 
69  public:
70  virtual void set_parameters(const Parameters& params);
71  void set_parameters(const double c_plaq, const double c_rect);
72 
74 
75  void get_parameters(Parameters& params) const;
76 
77  double E_plaq(const Field_G& U);
78  double E_clover(const Field_G& U);
79 };
80 #endif
EnergyDensity
energy density measurement.
Definition: energyDensity.h:29
EnergyDensity::m_staple
Staple_lex m_staple
Definition: energyDensity.h:44
bridgeIO.h
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
EnergyDensity::m_c_plaq
double m_c_plaq
Definition: energyDensity.h:40
Parameters
Class for parameters.
Definition: parameters.h:46
EnergyDensity::class_name
static const std::string class_name
Definition: energyDensity.h:32
EnergyDensity::m_filename_output
std::string m_filename_output
Definition: energyDensity.h:38
EnergyDensity::EnergyDensity
EnergyDensity(const Parameters &params)
Definition: energyDensity.h:54
fieldStrength.h
EnergyDensity::~EnergyDensity
virtual ~EnergyDensity()
Definition: energyDensity.h:61
EnergyDensity::m_vl
Bridge::VerboseLevel m_vl
Definition: energyDensity.h:35
FieldStrength
field strength construction.
Definition: fieldStrength.h:42
ParameterCheck::vl
Bridge::VerboseLevel vl
Definition: parameterCheck.cpp:18
EnergyDensity::E_plaq
double E_plaq(const Field_G &U)
Definition: energyDensity.cpp:64
Staple_lex
Staple construction.
Definition: staple_lex.h:39
EnergyDensity::EnergyDensity
EnergyDensity()
Definition: energyDensity.h:48
EnergyDensity::m_c_rect
double m_c_rect
Definition: energyDensity.h:41
EnergyDensity::get_parameters
void get_parameters(Parameters &params) const
EnergyDensity::set_parameters
virtual void set_parameters(const Parameters &params)
Definition: energyDensity.cpp:19
EnergyDensity::set_parameter_verboselevel
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: energyDensity.h:73
EnergyDensity::operator=
EnergyDensity & operator=(const EnergyDensity &)
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
EnergyDensity::E_clover
double E_clover(const Field_G &U)
Definition: energyDensity.cpp:90
EnergyDensity::m_field_strength
FieldStrength m_field_strength
Definition: energyDensity.h:43
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512