Bridge++  Ver. 1.3.x
force_F_Clover_SF.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_CLOVER_SF_INCLUDED
15 #define FORCE_F_CLOVER_SF_INCLUDED
16 
17 #include "fopr_Clover_SF.h"
18 #include "force_F_Wilson_SF.h"
19 #include "field_G_SF.h"
20 #include "staples_SF.h"
21 
22 #include "tensorProd.h"
23 
24 #include "bridgeIO.h"
25 using Bridge::vout;
26 
28 
37 //- parameters class
39 {
40  public:
42 };
43 //- end
44 
45 class Force_F_Clover_SF : public Force
46 {
47  public:
48  static const std::string class_name;
49 
50  private:
51  double m_kappa;
52  double m_cSW;
53  std::vector<int> m_boundary;
54 
55  int m_Ndim;
57 
61 
63  double m_phi[3];
65  double m_phipr[3];
66 
70 
71  public:
72 
74  {
75  m_fopr_c = new Fopr_Clover_SF;
76  m_force_w = new Force_F_Wilson_SF;
77 
78  int Nvol = CommonParameters::Nvol();
79  m_Ndim = CommonParameters::Ndim();
80 
81  m_boundary.resize(m_Ndim);
82  m_Cud = new Field_G(Nvol, m_Ndim * m_Ndim);
83  }
84 
86  {
87  delete m_Cud;
88  delete m_force_w;
89  delete m_fopr_c;
90  }
91 
92  void set_parameters(const Parameters& params);
93 
94  // void set_parameters (const Parameters_Fopr_Clover_SF& params);
95 
97  void set_parameters(double kappa, double cSW, const std::vector<int> bc,
98  double *phi, double *phipr);
99 
101  void set_config(Field *U)
102  {
103  m_U = (Field_G *)U;
104  m_fopr_c->set_config(m_U);
105  m_force_w->set_config(U);
106  set_component();
107  }
108 
110  void force_udiv(Field& force, const Field& eta);
111 
113  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
114 
115 
116  private:
117 
119  void force_udiv1_impl(Field_G& force, const Field_F& zeta, const Field_F& eta);
120 
122  void set_component();
123 
124  int index_dir(int mu, int nu)
125  {
126  return mu + m_Ndim * nu;
127  }
128 };
129 #endif
double m_phi[3]
SF boundary condition at t=0.
BridgeIO vout
Definition: bridgeIO.cpp:278
std::vector< int > m_boundary
boundary conditions
double m_cSW
clover coefficient
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Core implemetation of clover force calculation.
Field_F_SF set_zero
In order to set the boundary field.
void set_config(Field *U)
Setting gauge configuration.
Force_F_Clover_SF * m_imp
Container of Field-type object.
Definition: field.h:39
void set_config(Field *U)
Field_G * m_U
Definition: force.h:70
void set_config(Field *U)
setting pointer to the gauge configuration.
void force_udiv(Field &force, const Field &eta)
For recursive calculation of smeared force.
Base class of fermion force calculation.
Definition: force.h:31
Force calculation for clover quark action with SF BC.
Class for parameters.
Definition: parameters.h:38
Fopr_Clover_SF * m_fopr_c
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
For recursive calculation of smeared force.
double m_phipr[3]
SF boundary condition at t=Nt.
Wilson-type fermion field.
Definition: field_F.h:37
SU(N) gauge field.
Definition: field_G.h:38
static const std::string class_name
int index_dir(int mu, int nu)
double m_kappa
hopping parameter
Field_G * m_Cud
for force calculation
void set_parameters(const Parameters &params)
Force_F_Wilson_SF * m_force_w
A class generated to add a function for the SF.
Definition: field_F_SF.h:33
void set_component()
Set building components for force calculation.