oILAB
Loading...
Searching...
No Matches
CanonicalTP.h
Go to the documentation of this file.
1//
2// Created by Nikhil Chandra Admal on 8/14/24.
3//
4
5#ifndef OILAB_CANONICALTP_H
6#define OILAB_CANONICALTP_H
8#include <utility>
9#include <map>
10#include <fstream>
11
12namespace oILAB {
13// CanonicalTP is an evolution algorithm with a transition probability
14template <typename StateType, typename SystemType>
16 : public EvolutionAlgorithm<StateType, SystemType,
17 CanonicalTP<StateType, SystemType>> {
18private:
21 std::ofstream output;
22 std::string lmpLocation;
23 std::string potentialName;
24
25public:
27 std::map<StateType, double> stateEnergyMap;
28
29 CanonicalTP(const std::string &lmpLocation, const std::string &potentialName,
30 const double &temperature, const std::string &filename = "");
31 double probability(const std::pair<StateType, SystemType> &proposedState,
32 const std::pair<StateType, SystemType> &currentState);
33
34 };
35
36 } // namespace oILAB
37
39#endif //OILAB_CANONICALTP_H
std::map< StateType, double > stateEnergyMap
Definition CanonicalTP.h:27
double probability(const std::pair< StateType, SystemType > &proposedState, const std::pair< StateType, SystemType > &currentState)
std::string lmpLocation
Definition CanonicalTP.h:22
std::ofstream output
Definition CanonicalTP.h:21
std::string potentialName
Definition CanonicalTP.h:23