Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
force_F_CloverTerm.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_CLOVERTERM_INCLUDED
15 #define FORCE_F_CLOVERTERM_INCLUDED
16 
17 #include "force_F.h"
18 #include "tensorProd.h"
19 
20 #include "Field/shiftField_lex.h"
21 #include "Fopr/fopr_CloverTerm.h"
23 
24 #include "IO/bridgeIO.h"
25 using Bridge::vout;
26 
28 
38 class Force_F_CloverTerm : public Force
39 {
40  public:
41  static const std::string class_name;
42 
43  private:
44  double m_kappa;
45  double m_cSW;
46  std::vector<int> m_boundary;
47 
48  std::string m_repr;
49 
50 // Field_G *m_U; //!< pointer to gauge field
51  int m_Ndim;
54 
55  public:
58  : Force()
59  {
60  init("Dirac");
61  }
62 
63  Force_F_CloverTerm(const std::string repr)
64  : Force()
65  {
66  init(repr);
67  }
68 
71  {
72  tidyup();
73  }
74 
76  void set_parameters(const Parameters& params);
77 
79  void set_parameters(const double kappa, const double cSW, const std::vector<int> bc);
80 
82  void set_config(Field *U)
83  {
84  m_U = (Field_G *)U;
86  // m_forcew->set_config(U);
87  set_component();
88  }
89 
91  void force_core(Field& force, const Field& eta); // override default
92 
93 // //! Force determination for clover fermion.
94 // void force_core1(Field& force, const Field& zeta, const Field& eta);
95 
97  void force_udiv(Field& force, const Field& eta);
98 
100  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
101 
102  private:
103  void init(const std::string);
104  void tidyup();
105 
107  void force_udiv1_impl(Field_G& force, const Field_F& zeta, const Field_F& eta);
108 
110  void set_component();
111 
112  int index_dir(const int mu, const int nu)
113  {
114  return mu + m_Ndim * nu;
115  }
116 };
117 #endif
BridgeIO vout
Definition: bridgeIO.cpp:503
void set_config(Field *U)
setting pointer to the gauge configuration.
Container of Field-type object.
Definition: field.h:45
Field_G * m_U
Definition: force_F.h:68
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
Base class of fermion force calculation.
Definition: force_F.h:31
Class for parameters.
Definition: parameters.h:46
~Force_F_CloverTerm()
Deconstructor.
Wilson-type fermion field.
Definition: field_F.h:37
int index_dir(const int mu, const int nu)
void set_config(Field *U)
Setting gauge configuration.
double m_kappa
hopping parameter
SU(N) gauge field.
Definition: field_G.h:38
std::vector< int > m_boundary
boundary conditions
Force_F_CloverTerm(const std::string repr)
void force_core(Field &force, const Field &eta)
Force determination for clover fermion.
void set_parameters(const Parameters &params)
Setting parameters of clover fermion force.
void init(const std::string)
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
void set_component()
Set building components for force calculation.
int m_Ndim
spacetime dimension
std::string m_repr
gamma matrix representation
Fopr_CloverTerm * m_fopr_csw
fermion operator
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
double m_cSW
clover coefficient
Force_F_CloverTerm()
Constructor.
Field_G * m_Cud
for force calculation
Force calculation for clover term of clover fermion.
static const std::string class_name