Bridge++  Ver. 2.0.2
force_F_Wilson_Nf2_Isochemical.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_WILSON_NF2_ISOCHEMICAL_INCLUDED
15 #define FORCE_F_WILSON_NF2_ISOCHEMICAL_INCLUDED
16 
17 #include "force_F.h"
18 #include "tensorProd.h"
19 
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
37 {
38  public:
39  static const std::string class_name;
40 
41  private:
43 
44  double m_kappa;
45  double m_mu;
46  double m_exp_mu;
47  std::vector<int> m_boundary;
50 
51  std::string m_repr;
52  std::string m_mode;
53 
54  public:
57  : m_vl(CommonParameters::Vlevel())
58  {
59  m_repr = "Dirac";
62  }
63 
65  Force_F_Wilson_Nf2_Isochemical(const std::string repr)
66  : m_vl(CommonParameters::Vlevel())
67  {
68  m_repr = repr;
71  }
72 
74  : m_vl(CommonParameters::Vlevel())
75  {
76  std::string repr = params.get_string("gamma_matrix_type");
77 
78  // m_repr = repr;
79  // m_fopr_w = new Fopr_Wilson_Isochemical(m_repr);
80  // m_boundary.resize(CommonParameters::Ndim());
81  m_repr = repr;
82  m_fopr_w = new Fopr_Wilson_Chemical(params);
84 
85  set_parameters(params);
86  }
87 
89  {
90  delete m_fopr_w;
91  }
92 
93  void set_parameters(const Parameters& params);
94 
95  void set_parameters(const double kappa,
96  const double mu,
97  const std::vector<int> bc);
98 
99  void get_parameters(Parameters& params) const;
100 
101  void set_config(Field *U)
102  {
103  m_U = (Field_G *)U;
104  m_fopr_w->set_config(U);
105  }
106 
107  void set_mode(const std::string& mode)
108  {
109  m_mode = mode;
110  }
111 
112  void force_udiv(Field& force, const Field& eta);
113  void force_udiv1(Field& force, const Field& zeta, const Field& eta);
114 
115  private:
116  void set_parameters_impl(const double kappa,
117  const double mu,
118  const std::vector<int> bc);
119 
120  void force_udiv1_impl(Field_G& force,
121  const Field_F& zeta, const Field_F& eta);
122 };
123 #endif
bridgeIO.h
Force_F_Wilson_Nf2_Isochemical::m_mu
double m_mu
isospin chemical potential
Definition: force_F_Wilson_Nf2_Isochemical.h:45
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
Fopr_Wilson_Chemical
AFopr_Wilson_Chemical< Field > Fopr_Wilson_Chemical
Definition: fopr_Wilson_Chemical.h:19
CommonParameters::Ndim
static int Ndim()
Definition: commonParameters.h:117
Parameters
Class for parameters.
Definition: parameters.h:46
Force_F_Wilson_Nf2_Isochemical::set_config
void set_config(Field *U)
Definition: force_F_Wilson_Nf2_Isochemical.h:101
Force_F_Wilson_Nf2_Isochemical::m_repr
std::string m_repr
Definition: force_F_Wilson_Nf2_Isochemical.h:51
AFopr_Wilson_Chemical
Wilson fermion operator with chemical potential.
Definition: afopr_Wilson_Chemical.h:35
Force_F_Wilson_Nf2_Isochemical::force_udiv1_impl
void force_udiv1_impl(Field_G &force, const Field_F &zeta, const Field_F &eta)
Definition: force_F_Wilson_Nf2_Isochemical.cpp:147
fopr_Wilson_Chemical.h
Force::m_U
Field_G * m_U
Definition: force_F.h:66
Force_F_Wilson_Nf2_Isochemical::set_parameters
void set_parameters(const Parameters &params)
Definition: force_F_Wilson_Nf2_Isochemical.cpp:20
Force_F_Wilson_Nf2_Isochemical::m_fopr_w
Fopr_Wilson_Chemical * m_fopr_w
Definition: force_F_Wilson_Nf2_Isochemical.h:48
Force_F_Wilson_Nf2_Isochemical::m_vl
Bridge::VerboseLevel m_vl
Definition: force_F_Wilson_Nf2_Isochemical.h:42
Force_F_Wilson_Nf2_Isochemical
Force for the Wilson fermion operator with isospin chemical potential.
Definition: force_F_Wilson_Nf2_Isochemical.h:36
Force_F_Wilson_Nf2_Isochemical::get_parameters
void get_parameters(Parameters &params) const
Definition: force_F_Wilson_Nf2_Isochemical.cpp:97
Force_F_Wilson_Nf2_Isochemical::m_boundary
std::vector< int > m_boundary
Definition: force_F_Wilson_Nf2_Isochemical.h:47
Force_F_Wilson_Nf2_Isochemical::m_psf
Field_F m_psf
Definition: force_F_Wilson_Nf2_Isochemical.h:49
Force_F_Wilson_Nf2_Isochemical::~Force_F_Wilson_Nf2_Isochemical
~Force_F_Wilson_Nf2_Isochemical()
Definition: force_F_Wilson_Nf2_Isochemical.h:88
Force_F_Wilson_Nf2_Isochemical::force_udiv
void force_udiv(Field &force, const Field &eta)
Definition: force_F_Wilson_Nf2_Isochemical.cpp:108
Force_F_Wilson_Nf2_Isochemical::m_exp_mu
double m_exp_mu
exp(mu)
Definition: force_F_Wilson_Nf2_Isochemical.h:46
Force_F_Wilson_Nf2_Isochemical::Force_F_Wilson_Nf2_Isochemical
DEPRECATED Force_F_Wilson_Nf2_Isochemical()
Definition: force_F_Wilson_Nf2_Isochemical.h:56
AFopr_Wilson_Chemical::set_config
void set_config(Field *U)
sets the gauge configuration.
Definition: afopr_Wilson_Chemical-tmpl.h:227
Force_F_Wilson_Nf2_Isochemical::m_mode
std::string m_mode
Definition: force_F_Wilson_Nf2_Isochemical.h:52
Force_F_Wilson_Nf2_Isochemical::m_kappa
double m_kappa
hopping parameter
Definition: force_F_Wilson_Nf2_Isochemical.h:44
force_F.h
Force_F_Wilson_Nf2_Isochemical::force_udiv1
void force_udiv1(Field &force, const Field &zeta, const Field &eta)
Definition: force_F_Wilson_Nf2_Isochemical.cpp:131
Field_F
Wilson-type fermion field.
Definition: field_F.h:37
Force_F_Wilson_Nf2_Isochemical::Force_F_Wilson_Nf2_Isochemical
Force_F_Wilson_Nf2_Isochemical(const Parameters &params)
Definition: force_F_Wilson_Nf2_Isochemical.h:73
Parameters::get_string
string get_string(const string &key) const
Definition: parameters.cpp:221
tensorProd.h
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Field_G
SU(N) gauge field.
Definition: field_G.h:38
Force_F_Wilson_Nf2_Isochemical::Force_F_Wilson_Nf2_Isochemical
DEPRECATED Force_F_Wilson_Nf2_Isochemical(const std::string repr)
Definition: force_F_Wilson_Nf2_Isochemical.h:65
Force_F_Wilson_Nf2_Isochemical::set_mode
void set_mode(const std::string &mode)
in Force, setting the mode is optional when H is nonhermitian.
Definition: force_F_Wilson_Nf2_Isochemical.h:107
Force
Base class of fermion force calculation.
Definition: force_F.h:31
DEPRECATED
#define DEPRECATED
Definition: configure.h:28
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512
Force_F_Wilson_Nf2_Isochemical::class_name
static const std::string class_name
Definition: force_F_Wilson_Nf2_Isochemical.h:39
Force_F_Wilson_Nf2_Isochemical::set_parameters_impl
void set_parameters_impl(const double kappa, const double mu, const std::vector< int > bc)
Definition: force_F_Wilson_Nf2_Isochemical.cpp:64