Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fopr_Clover_SF Class Reference

Clover fermion operator. More...

#include <fopr_Clover_SF.h>

Inheritance diagram for Fopr_Clover_SF:
Fopr

Public Member Functions

 Fopr_Clover_SF ()
 
 ~Fopr_Clover_SF ()
 
void set_parameters (const Parameters &params)
 
void set_parameters (const double kappa, const double cSW, const std::vector< int > bc, double *phi, double *phipr)
 
void set_config (Field *U)
 setting pointer to the gauge configuration. More...
 
void set_config (unique_ptr< Field_G > &U)
 
void set_mode (const std::string mode)
 setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call. More...
 
std::string get_mode () const
 only for Fopr_Overlap More...
 
void mult (Field &v, const Field &f)
 multiplies fermion operator to a given field (2nd argument) More...
 
void mult_dag (Field &v, const Field &f)
 hermitian conjugate of mult(Field&, const Field&). More...
 
void DdagD (Field &, const Field &)
 
void D (Field &, const Field &)
 
void Ddag (Field &, const Field &)
 
void H (Field &, const Field &)
 
void mult_gm5 (Field &v, const Field &w)
 gamma_5 multiplication. [31 Mar 2017 H.Matsufuru] More...
 
void mult_isigma (Field_F &, const Field_F &, const int mu, const int nu)
 
int field_nvol ()
 returns the volume for which the fermion operator is defined. More...
 
int field_nin ()
 returns the on-site d.o.f. for which the fermion operator is defined. More...
 
int field_nex ()
 returns the external d.o.f. for which the fermion operator is defined. More...
 
double flop_count ()
 this returns the number of floating point number operations. More...
 
- Public Member Functions inherited from Fopr
 Fopr ()
 
virtual ~Fopr ()
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
virtual void mult (Field &, const Field &, const std::string mode)
 execute mult with specified mode (unchanging internal mode). [23 May 2016 H.Matsufuru]. More...
 
virtual void mult_dag (Field &, const Field &, const std::string mode)
 execute mult_dag with specified mode (unchanging internal mode). [23 May 2016 H.Matsufuru]. More...
 
virtual void mult_up (const int mu, Field &, const Field &)
 nearest neighbor hopping term: temporary entry [H.Matsufuru] More...
 
virtual void mult_dn (const int mu, Field &, const Field &)
 
virtual double flop_count (const std::string mode)
 returns the flop in giga unit for a specified mode. [23 May 2016 H.Matsufuru] More...
 

Static Public Attributes

static const std::string class_name = "Fopr_Clover_SF"
 

Private Member Functions

void init (const std::string repr)
 
void tidyup ()
 
void set_csw ()
 
void mult_csw (Field_F &, const Field_F &)
 
void set_fieldstrength (Field_G &, const int, const int)
 
void mult_csw_dirac (Field_F &, const Field_F &)
 
void mult_csw_chiral (Field_F &, const Field_F &)
 
int sg_index (const int mu, const int nu)
 

Private Attributes

int m_Nvol
 
int m_Ndim
 
int m_Nc
 
int m_Nd
 
int m_NinF
 
double m_kappa
 
double m_cSW
 
std::vector< int > m_boundary
 
std::string m_repr
 
std::string m_mode
 
void(Fopr_Clover_SF::* m_csw )(Field_F &, const Field_F &)
 
Fopr_Wilson_SFm_fopr_w
 
const Field_Gm_U
 
ShiftField_lex m_shift
 
Field_G m_Bx
 
Field_G m_By
 
Field_G m_Bz
 
Field_G m_Ex
 
Field_G m_Ey
 
Field_G m_Ez
 
std::vector< GammaMatrixm_GM
 
std::vector< GammaMatrixm_SG
 
double m_phi [3]
 SF boundary condition at t=0. More...
 
double m_phipr [3]
 SF boundary condition at t=Nt. More...
 
Field_F_SF setzero
 In order to set the boundary field to zero. More...
 

Additional Inherited Members

- Protected Attributes inherited from Fopr
Bridge::VerboseLevel m_vl
 

Detailed Description

Clover fermion operator.

This class implements the clover (improved Wilson) fermion operator with SF BC.

  • The field strength is calculate when the function set_config() is called.
  • Dirac representation only!
  • [10 Apr 2012 Y.Taniguchi]

(Coding history will be recovered from trac.) YAML is implemented. [14 Nov 2012 Y.Namekawa] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]

Definition at line 43 of file fopr_Clover_SF.h.

Constructor & Destructor Documentation

Fopr_Clover_SF::Fopr_Clover_SF ( )
inline

Definition at line 77 of file fopr_Clover_SF.h.

Fopr_Clover_SF::~Fopr_Clover_SF ( )
inline

Definition at line 82 of file fopr_Clover_SF.h.

Member Function Documentation

void Fopr_Clover_SF::D ( Field w,
const Field f 
)

Definition at line 218 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::Ddag ( Field w,
const Field f 
)

Definition at line 195 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::DdagD ( Field w,
const Field f 
)

Definition at line 182 of file fopr_Clover_SF.cpp.

int Fopr_Clover_SF::field_nex ( )
inlinevirtual

returns the external d.o.f. for which the fermion operator is defined.

Implements Fopr.

Definition at line 164 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::field_nin ( )
inlinevirtual

returns the on-site d.o.f. for which the fermion operator is defined.

Implements Fopr.

Definition at line 163 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::field_nvol ( )
inlinevirtual

returns the volume for which the fermion operator is defined.

Implements Fopr.

Definition at line 162 of file fopr_Clover_SF.h.

double Fopr_Clover_SF::flop_count ( )
virtual

this returns the number of floating point number operations.

Reimplemented from Fopr.

Definition at line 531 of file fopr_Clover_SF.cpp.

std::string Fopr_Clover_SF::get_mode ( ) const
inlinevirtual

only for Fopr_Overlap

Reimplemented from Fopr.

Definition at line 112 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::H ( Field w,
const Field f 
)

Definition at line 207 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::init ( const std::string  repr)
private

Definition at line 117 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::mult ( Field ,
const Field  
)
inlinevirtual

multiplies fermion operator to a given field (2nd argument)

Implements Fopr.

Definition at line 117 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::mult_csw ( Field_F v,
const Field_F w 
)
private

Definition at line 251 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::mult_csw_chiral ( Field_F v,
const Field_F w 
)
private

Definition at line 258 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::mult_csw_dirac ( Field_F v,
const Field_F w 
)
private

Definition at line 367 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::mult_dag ( Field ,
const Field  
)
inlinevirtual

hermitian conjugate of mult(Field&, const Field&).

Reimplemented from Fopr.

Definition at line 133 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::mult_gm5 ( Field ,
const Field  
)
inlinevirtual

gamma_5 multiplication. [31 Mar 2017 H.Matsufuru]

Reimplemented from Fopr.

Definition at line 154 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::mult_isigma ( Field_F v,
const Field_F w,
const int  mu,
const int  nu 
)

Definition at line 241 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::set_config ( Field )
inlinevirtual

setting pointer to the gauge configuration.

Implements Fopr.

Definition at line 91 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::set_config ( unique_ptr< Field_G > &  U)
inlinevirtual

Implements Fopr.

Definition at line 99 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::set_csw ( )
private

Definition at line 476 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::set_fieldstrength ( Field_G Fst,
const int  mu,
const int  nu 
)
private

The field strength defined by clover with the SF BC.

  • The field strength is set to zero at t=0 boundary.
  • This is performed automatically by a use of Staple_SF.

Definition at line 495 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::set_mode ( const std::string  mode)
inlinevirtual

setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call.

Reimplemented from Fopr.

Definition at line 107 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::set_parameters ( const Parameters params)
virtual

Implements Fopr.

Definition at line 25 of file fopr_Clover_SF.cpp.

void Fopr_Clover_SF::set_parameters ( const double  kappa,
const double  cSW,
const std::vector< int >  bc,
double *  phi,
double *  phipr 
)

Definition at line 59 of file fopr_Clover_SF.cpp.

int Fopr_Clover_SF::sg_index ( const int  mu,
const int  nu 
)
inlineprivate

Definition at line 180 of file fopr_Clover_SF.h.

void Fopr_Clover_SF::tidyup ( )
private

Definition at line 175 of file fopr_Clover_SF.cpp.

Member Data Documentation

const std::string Fopr_Clover_SF::class_name = "Fopr_Clover_SF"
static

Definition at line 46 of file fopr_Clover_SF.h.

std::vector<int> Fopr_Clover_SF::m_boundary
private

Definition at line 51 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_Bx
private

Definition at line 62 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_By
private

Definition at line 62 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_Bz
private

Definition at line 62 of file fopr_Clover_SF.h.

double Fopr_Clover_SF::m_cSW
private

Definition at line 50 of file fopr_Clover_SF.h.

void(Fopr_Clover_SF::* Fopr_Clover_SF::m_csw)(Field_F &, const Field_F &)
private

Definition at line 55 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_Ex
private

Definition at line 62 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_Ey
private

Definition at line 62 of file fopr_Clover_SF.h.

Field_G Fopr_Clover_SF::m_Ez
private

Definition at line 62 of file fopr_Clover_SF.h.

Fopr_Wilson_SF* Fopr_Clover_SF::m_fopr_w
private

Definition at line 58 of file fopr_Clover_SF.h.

std::vector<GammaMatrix> Fopr_Clover_SF::m_GM
private

Definition at line 66 of file fopr_Clover_SF.h.

double Fopr_Clover_SF::m_kappa
private

Definition at line 50 of file fopr_Clover_SF.h.

std::string Fopr_Clover_SF::m_mode
private

Definition at line 53 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::m_Nc
private

Definition at line 49 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::m_Nd
private

Definition at line 49 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::m_Ndim
private

Definition at line 49 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::m_NinF
private

Definition at line 49 of file fopr_Clover_SF.h.

int Fopr_Clover_SF::m_Nvol
private

Definition at line 49 of file fopr_Clover_SF.h.

double Fopr_Clover_SF::m_phi[3]
private

SF boundary condition at t=0.

Definition at line 69 of file fopr_Clover_SF.h.

double Fopr_Clover_SF::m_phipr[3]
private

SF boundary condition at t=Nt.

Definition at line 71 of file fopr_Clover_SF.h.

std::string Fopr_Clover_SF::m_repr
private

Definition at line 52 of file fopr_Clover_SF.h.

std::vector<GammaMatrix> Fopr_Clover_SF::m_SG
private

Definition at line 66 of file fopr_Clover_SF.h.

ShiftField_lex Fopr_Clover_SF::m_shift
private

Definition at line 60 of file fopr_Clover_SF.h.

const Field_G* Fopr_Clover_SF::m_U
private

Definition at line 59 of file fopr_Clover_SF.h.

Field_F_SF Fopr_Clover_SF::setzero
private

In order to set the boundary field to zero.

Definition at line 74 of file fopr_Clover_SF.h.


The documentation for this class was generated from the following files: