mcpele
1.0.0
The Monte Carlo Python Energy Landscape Explorer
|
#include <mc.h>
Public Types | |
typedef std::vector < std::shared_ptr< Action > > | actions_t |
typedef std::vector < std::shared_ptr< AcceptTest > > | accept_t |
typedef std::vector < std::shared_ptr< ConfTest > > | conf_t |
Public Member Functions | |
MC (std::shared_ptr< pele::BasePotential > potential, pele::Array< double > &coords, const double temperature) | |
virtual | ~MC () |
void | one_iteration () |
void | run (const size_t max_iter) |
void | set_temperature (const double T) |
double | get_temperature () const |
void | set_report_steps (const size_t report_steps) |
size_t | get_report_steps () const |
void | add_action (std::shared_ptr< Action > action) |
void | add_accept_test (std::shared_ptr< AcceptTest > accept_test) |
void | add_conf_test (std::shared_ptr< ConfTest > conf_test) |
void | add_late_conf_test (std::shared_ptr< ConfTest > conf_test) |
void | set_takestep (std::shared_ptr< TakeStep > takestep) |
std::shared_ptr< TakeStep > | get_takestep () const |
void | set_coordinates (pele::Array< double > &coords, double energy) |
double | get_energy () const |
void | reset_energy () |
double | get_trial_energy () const |
pele::Array< double > | get_coords () const |
pele::Array< double > | get_trial_coords () const |
double | get_norm_coords () const |
size_t | get_naccept () const |
size_t | get_nreject () const |
double | get_accepted_fraction () const |
double | get_conf_rejection_fraction () const |
double | get_E_rejection_fraction () const |
size_t | get_iterations_count () const |
size_t | get_neval () const |
std::shared_ptr < pele::BasePotential > | get_potential_ptr () |
bool | take_step_specified () const |
bool | report_steps_specified () const |
void | check_input () |
void | set_print_progress (const bool input) |
void | set_print_progress () |
bool | get_success () const |
void | abort () |
Public Attributes | |
size_t | m_niter |
size_t | m_neval |
double | m_temperature |
double | m_energy |
double | m_trial_energy |
Protected Member Functions | |
double | compute_energy (pele::Array< double > x) |
bool | do_conf_tests (pele::Array< double > x) |
bool | do_accept_tests (pele::Array< double > xtrial, double etrial, pele::Array< double > xold, double eold) |
bool | do_late_conf_tests (pele::Array< double > x) |
void | do_actions (pele::Array< double > x, double energy, bool success) |
void | take_steps () |
Protected Attributes | |
std::shared_ptr < pele::BasePotential > | m_potential |
pele::Array< double > | m_coords |
pele::Array< double > | m_trial_coords |
actions_t | m_actions |
accept_t | m_accept_tests |
conf_t | m_conf_tests |
conf_t | m_late_conf_tests |
std::shared_ptr< TakeStep > | m_take_step |
size_t | m_nitercount |
size_t | m_accept_count |
size_t | m_E_reject_count |
size_t | m_conf_reject_count |
bool | m_success |
bool | m_print_progress |
Monte Carlo _coords and _trialcoords are arrays that store coordinates and trial coordinates respectively _potential is on object of Pele::BasePotential type that defines the interaction potential _E_reject_count is the count of rejections due to an energy test (e.g. Metropolis) _conf_reject_count is the count of rejections due to a configuration test (e.g. spherical container) _niter is the count of steps whithin a MCMC run, it is reset to zero at the end of the run _nitercount is the cumulative number of MCMC steps taken by the class _neval is the number of energy evaluations _temperature is the temperature at which the simulation is performed _energy is the current energy of the system _success records whether the step has been accepted or rejected
typedef std::vector<std::shared_ptr<AcceptTest> > mcpele::MC::accept_t |
typedef std::vector<std::shared_ptr<Action> > mcpele::MC::actions_t |
typedef std::vector<std::shared_ptr<ConfTest> > mcpele::MC::conf_t |
mcpele::MC::MC | ( | std::shared_ptr< pele::BasePotential > | potential, |
pele::Array< double > & | coords, | ||
const double | temperature | ||
) |
virtual mcpele::MC::~MC | ( | ) | [inline, virtual] |
void mcpele::MC::abort | ( | ) | [inline] |
void mcpele::MC::add_accept_test | ( | std::shared_ptr< AcceptTest > | accept_test | ) | [inline] |
void mcpele::MC::add_action | ( | std::shared_ptr< Action > | action | ) | [inline] |
void mcpele::MC::add_conf_test | ( | std::shared_ptr< ConfTest > | conf_test | ) | [inline] |
void mcpele::MC::add_late_conf_test | ( | std::shared_ptr< ConfTest > | conf_test | ) | [inline] |
void mcpele::MC::check_input | ( | ) |
double mcpele::MC::compute_energy | ( | pele::Array< double > | x | ) | [inline, protected] |
bool mcpele::MC::do_accept_tests | ( | pele::Array< double > | xtrial, |
double | etrial, | ||
pele::Array< double > | xold, | ||
double | eold | ||
) | [protected] |
void mcpele::MC::do_actions | ( | pele::Array< double > | x, |
double | energy, | ||
bool | success | ||
) | [protected] |
bool mcpele::MC::do_conf_tests | ( | pele::Array< double > | x | ) | [protected] |
bool mcpele::MC::do_late_conf_tests | ( | pele::Array< double > | x | ) | [protected] |
double mcpele::MC::get_accepted_fraction | ( | ) | const [inline] |
double mcpele::MC::get_conf_rejection_fraction | ( | ) | const [inline] |
pele::Array<double> mcpele::MC::get_coords | ( | ) | const [inline] |
double mcpele::MC::get_E_rejection_fraction | ( | ) | const [inline] |
double mcpele::MC::get_energy | ( | ) | const [inline] |
size_t mcpele::MC::get_iterations_count | ( | ) | const [inline] |
size_t mcpele::MC::get_naccept | ( | ) | const [inline] |
size_t mcpele::MC::get_neval | ( | ) | const [inline] |
double mcpele::MC::get_norm_coords | ( | ) | const [inline] |
size_t mcpele::MC::get_nreject | ( | ) | const [inline] |
std::shared_ptr<pele::BasePotential> mcpele::MC::get_potential_ptr | ( | ) | [inline] |
size_t mcpele::MC::get_report_steps | ( | ) | const [inline] |
bool mcpele::MC::get_success | ( | ) | const [inline] |
std::shared_ptr<TakeStep> mcpele::MC::get_takestep | ( | ) | const [inline] |
double mcpele::MC::get_temperature | ( | ) | const [inline] |
pele::Array<double> mcpele::MC::get_trial_coords | ( | ) | const [inline] |
double mcpele::MC::get_trial_energy | ( | ) | const [inline] |
void mcpele::MC::one_iteration | ( | ) |
bool mcpele::MC::report_steps_specified | ( | ) | const [inline] |
void mcpele::MC::reset_energy | ( | ) |
void mcpele::MC::run | ( | const size_t | max_iter | ) |
void mcpele::MC::set_coordinates | ( | pele::Array< double > & | coords, |
double | energy | ||
) |
void mcpele::MC::set_print_progress | ( | const bool | input | ) | [inline] |
void mcpele::MC::set_print_progress | ( | ) | [inline] |
void mcpele::MC::set_report_steps | ( | const size_t | report_steps | ) | [inline] |
void mcpele::MC::set_takestep | ( | std::shared_ptr< TakeStep > | takestep | ) | [inline] |
void mcpele::MC::set_temperature | ( | const double | T | ) | [inline] |
bool mcpele::MC::take_step_specified | ( | ) | const [inline] |
void mcpele::MC::take_steps | ( | ) | [protected] |
size_t mcpele::MC::m_accept_count [protected] |
accept_t mcpele::MC::m_accept_tests [protected] |
actions_t mcpele::MC::m_actions [protected] |
size_t mcpele::MC::m_conf_reject_count [protected] |
conf_t mcpele::MC::m_conf_tests [protected] |
pele::Array<double> mcpele::MC::m_coords [protected] |
size_t mcpele::MC::m_E_reject_count [protected] |
double mcpele::MC::m_energy |
conf_t mcpele::MC::m_late_conf_tests [protected] |
size_t mcpele::MC::m_neval |
size_t mcpele::MC::m_niter |
size_t mcpele::MC::m_nitercount [protected] |
std::shared_ptr<pele::BasePotential> mcpele::MC::m_potential [protected] |
bool mcpele::MC::m_print_progress [protected] |
bool mcpele::MC::m_success [protected] |
std::shared_ptr<TakeStep> mcpele::MC::m_take_step [protected] |
double mcpele::MC::m_temperature |
pele::Array<double> mcpele::MC::m_trial_coords [protected] |
double mcpele::MC::m_trial_energy |