Bridge++  Ver. 2.0.2
action_F_Rational.h
Go to the documentation of this file.
1 
14 #ifndef ACTION_F_RATIONAL_INCLUDED
15 #define ACTION_F_RATIONAL_INCLUDED
16 
17 #include "Action/action.h"
18 
19 #include "Fopr/fopr_Rational.h"
21 
22 #include "IO/bridgeIO.h"
23 using Bridge::vout;
24 
26 
37 class Action_F_Rational : public Action
38 {
39  public:
40  static const std::string class_name;
41 
42  private:
44 
45  std::string m_label; // label of action
46 
50 
52 
54 
55  public:
58  Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
59  : m_vl(CommonParameters::Vlevel()),
60  m_fopr_langev(fopr_langev), m_fopr_H(fopr_H), m_fopr_force_MD(fopr_force_MD)
61  {}
62 
63  Action_F_Rational(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD,
64  const Parameters& params)
65  : m_vl(CommonParameters::Vlevel()),
66  m_fopr_langev(fopr_langev), m_fopr_H(fopr_H), m_fopr_force_MD(fopr_force_MD)
67  {
68  set_parameters(params);
69  }
70 
73 
74  void set_parameters(const Parameters& params);
75 
76  void get_parameters(Parameters& params) const;
77 
79  void set_label(const std::string label)
80  {
81  m_label = label;
82  vout.detailed(m_vl, " label: %s\n", m_label.c_str());
83  }
84 
86  std::string get_label()
87  {
88  return m_label;
89  }
90 
92  void set_config(Field *U)
93  {
94  m_U = U;
96  m_fopr_H->set_config(U);
98  }
99 
101  double langevin(RandomNumbers *);
102 
104  double calcH();
105 
107  //const Field force();
108  void force(Field&);
109 
110  private:
111 };
112 #endif
bridgeIO.h
Action_F_Rational::class_name
static const std::string class_name
Definition: action_F_Rational.h:40
CommonParameters
Common parameter class: provides parameters as singleton.
Definition: commonParameters.h:42
AFopr
Definition: afopr.h:48
Action_F_Rational::set_label
void set_label(const std::string label)
set the label of action.
Definition: action_F_Rational.h:79
Action_F_Rational::m_psf
Field m_psf
Definition: action_F_Rational.h:53
force_F_Rational.h
Parameters
Class for parameters.
Definition: parameters.h:46
Action_F_Rational::~Action_F_Rational
~Action_F_Rational()
destructor. constructed instances are deconstructed in tydyup().
Definition: action_F_Rational.h:72
Bridge::BridgeIO::detailed
void detailed(const char *format,...)
Definition: bridgeIO.cpp:219
Action_F_Rational::force
void force(Field &)
returns the force for updating conjugate momentum.
Definition: action_F_Rational.cpp:87
RandomNumbers
Base class of random number generators.
Definition: randomNumbers.h:43
Action_F_Rational::get_parameters
void get_parameters(Parameters &params) const
Definition: action_F_Rational.cpp:29
Force::set_config
virtual void set_config(Field *)=0
Action_F_Rational
action class for RHMC, with externally constructed Fopr_Rational.
Definition: action_F_Rational.h:37
Action
Base class of HMC action class family.
Definition: action.h:36
Action_F_Rational::m_U
Field * m_U
Definition: action_F_Rational.h:51
Action_F_Rational::m_fopr_langev
Fopr * m_fopr_langev
Definition: action_F_Rational.h:47
action.h
Action_F_Rational::Action_F_Rational
Action_F_Rational(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD)
constructor requires pointers to Fopr and Force instances.
Definition: action_F_Rational.h:57
AFopr::set_config
virtual void set_config(Field *)=0
sets the gauge configuration.
Action_F_Rational::m_label
std::string m_label
Definition: action_F_Rational.h:45
Action_F_Rational::m_fopr_H
Fopr * m_fopr_H
Definition: action_F_Rational.h:48
Action_F_Rational::get_label
std::string get_label()
returns the label of action.
Definition: action_F_Rational.h:86
Action_F_Rational::set_parameters
void set_parameters(const Parameters &params)
Definition: action_F_Rational.cpp:19
Action_F_Rational::Action_F_Rational
Action_F_Rational(Fopr *fopr_langev, Fopr *fopr_H, Force *fopr_force_MD, const Parameters &params)
Definition: action_F_Rational.h:63
Action_F_Rational::set_config
void set_config(Field *U)
setting gauge configuration.
Definition: action_F_Rational.h:92
Action_F_Rational::m_fopr_force_MD
Force * m_fopr_force_MD
Definition: action_F_Rational.h:49
Action_F_Rational::m_vl
Bridge::VerboseLevel m_vl
Definition: action_F_Rational.h:43
Action_F_Rational::langevin
double langevin(RandomNumbers *)
Langevin step called at the beginning of HMC.
Definition: action_F_Rational.cpp:36
fopr_Rational.h
Action_F_Rational::calcH
double calcH()
calculation of Hamiltonian.
Definition: action_F_Rational.cpp:64
Field
Container of Field-type object.
Definition: field.h:46
Bridge::VerboseLevel
VerboseLevel
Definition: bridgeIO.h:42
Force
Base class of fermion force calculation.
Definition: force_F.h:31
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512