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 gbLAB {
13 // CanonicalTP is an evolution algorithm with a transition probability
14 template<typename StateType, typename SystemType>
15 class CanonicalTP : public EvolutionAlgorithm<StateType, SystemType, CanonicalTP<StateType,SystemType>> {
16 private:
19 std::ofstream output;
20 std::string lmpLocation;
21 std::string potentialName;
22 public:
24 std::map<StateType, double> stateEnergyMap;
25
26 CanonicalTP(const std::string& lmpLocation,
27 const std::string& potentialName,
28 const double& temperature,
29 const std::string& filename="");
30 double probability(const std::pair<StateType, SystemType>& proposedState,
31 const std::pair<StateType, SystemType>& currentState) ;
32
33 };
34
35}
36
38#endif //OILAB_CANONICALTP_H
std::map< StateType, double > stateEnergyMap
Definition CanonicalTP.h:24
std::ofstream output
Definition CanonicalTP.h:19
double probability(const std::pair< StateType, SystemType > &proposedState, const std::pair< StateType, SystemType > &currentState)
std::string lmpLocation
Definition CanonicalTP.h:20
std::string potentialName
Definition CanonicalTP.h:21