Bridge++  Ver. 2.0.2
HMC_General Class Reference

General HMC update class. More...

#include <hmc_General.h>

Public Member Functions

 HMC_General (const ActionList &action_list, std::vector< Director * > director, Integrator *integrator, RandomNumbers *rand)
 constructor with action_list, directors, and random number generator More...
 
 HMC_General (const ActionList &action_list, std::vector< Director * > director, Integrator *integrator, RandomNumbers *rand, const Parameters &params)
 constructor with action_list, directors, and random number generator More...
 
 HMC_General (const ActionList &action_list, Integrator *integrator, RandomNumbers *rand)
 constructor with action_list when no director is necessary More...
 
 HMC_General (const ActionList &action_list, Integrator *integrator, RandomNumbers *rand, const Parameters &params)
 constructor with action_list and random number generator More...
 
 ~HMC_General ()
 destructor More...
 
void set_parameters (const Parameters &params)
 
void set_parameters (const double trajectory_length, const bool Metropolis_test)
 
DEPRECATED void set_parameters (const double trajectory_length, const int Metropolis_test)
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
void get_parameters (Parameters &params) const
 
double update (Field_G &)
 
double langevin (Field_G &iP, const Field_G &U)
 
double calc_Hamiltonian (const Field_G &iP, const Field_G &U)
 
double calcH_P (const Field_G &iP)
 

Static Public Attributes

static const std::string class_name = "HMC_General"
 

Private Member Functions

 HMC_General (const HMC_General &)
 
HMC_Generaloperator= (const HMC_General &)
 

Private Attributes

bool m_Metropolis_test
 Metropolis test: enabled if true. More...
 
std::vector< Action * > m_action
 actions More...
 
std::vector< Director * > m_director
 directors More...
 
Integratorm_integrator
 MD integrator. More...
 
RandomNumbersm_rand
 random number generator More...
 
Staple_lexm_staple
 
Langevin_Momentumm_Langevin_P
 
double m_trajectory_length
 
Bridge::VerboseLevel m_vl
 

Detailed Description

General HMC update class.

Definition at line 45 of file hmc_General.h.

Constructor & Destructor Documentation

◆ HMC_General() [1/5]

HMC_General::HMC_General ( const ActionList action_list,
std::vector< Director * >  director,
Integrator integrator,
RandomNumbers rand 
)

constructor with action_list, directors, and random number generator

Definition at line 20 of file hmc_General.cpp.

◆ HMC_General() [2/5]

HMC_General::HMC_General ( const ActionList action_list,
std::vector< Director * >  director,
Integrator integrator,
RandomNumbers rand,
const Parameters params 
)

constructor with action_list, directors, and random number generator

Definition at line 48 of file hmc_General.cpp.

◆ HMC_General() [3/5]

HMC_General::HMC_General ( const ActionList action_list,
Integrator integrator,
RandomNumbers rand 
)

constructor with action_list when no director is necessary

Definition at line 78 of file hmc_General.cpp.

◆ HMC_General() [4/5]

HMC_General::HMC_General ( const ActionList action_list,
Integrator integrator,
RandomNumbers rand,
const Parameters params 
)

constructor with action_list and random number generator

Definition at line 101 of file hmc_General.cpp.

◆ ~HMC_General()

HMC_General::~HMC_General ( )

destructor

Definition at line 126 of file hmc_General.cpp.

◆ HMC_General() [5/5]

HMC_General::HMC_General ( const HMC_General )
private

Member Function Documentation

◆ calc_Hamiltonian()

double HMC_General::calc_Hamiltonian ( const Field_G iP,
const Field_G U 
)

Definition at line 302 of file hmc_General.cpp.

◆ calcH_P()

double HMC_General::calcH_P ( const Field_G iP)

Definition at line 333 of file hmc_General.cpp.

◆ get_parameters()

void HMC_General::get_parameters ( Parameters params) const

Definition at line 159 of file hmc_General.cpp.

◆ langevin()

double HMC_General::langevin ( Field_G iP,
const Field_G U 
)

Definition at line 266 of file hmc_General.cpp.

◆ operator=()

HMC_General& HMC_General::operator= ( const HMC_General )
private

◆ set_parameter_verboselevel()

void HMC_General::set_parameter_verboselevel ( const Bridge::VerboseLevel  vl)
inline

Definition at line 100 of file hmc_General.h.

◆ set_parameters() [1/3]

void HMC_General::set_parameters ( const double  trajectory_length,
const bool  Metropolis_test 
)

Definition at line 178 of file hmc_General.cpp.

◆ set_parameters() [2/3]

void HMC_General::set_parameters ( const double  trajectory_length,
const int  Metropolis_test 
)

Definition at line 169 of file hmc_General.cpp.

◆ set_parameters() [3/3]

void HMC_General::set_parameters ( const Parameters params)

Definition at line 134 of file hmc_General.cpp.

◆ update()

double HMC_General::update ( Field_G Uorg)

Definition at line 196 of file hmc_General.cpp.

Member Data Documentation

◆ class_name

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

Definition at line 48 of file hmc_General.h.

◆ m_action

std::vector<Action *> HMC_General::m_action
private

actions

Definition at line 53 of file hmc_General.h.

◆ m_director

std::vector<Director *> HMC_General::m_director
private

directors

Definition at line 54 of file hmc_General.h.

◆ m_integrator

Integrator* HMC_General::m_integrator
private

MD integrator.

Definition at line 55 of file hmc_General.h.

◆ m_Langevin_P

Langevin_Momentum* HMC_General::m_Langevin_P
private

Definition at line 58 of file hmc_General.h.

◆ m_Metropolis_test

bool HMC_General::m_Metropolis_test
private

Metropolis test: enabled if true.

Definition at line 52 of file hmc_General.h.

◆ m_rand

RandomNumbers* HMC_General::m_rand
private

random number generator

Definition at line 56 of file hmc_General.h.

◆ m_staple

Staple_lex* HMC_General::m_staple
private

Definition at line 57 of file hmc_General.h.

◆ m_trajectory_length

double HMC_General::m_trajectory_length
private

Definition at line 59 of file hmc_General.h.

◆ m_vl

Bridge::VerboseLevel HMC_General::m_vl
private

Definition at line 61 of file hmc_General.h.


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