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
7
#include "
EvolutionAlgorithm.h
"
8
#include <utility>
9
#include <map>
10
#include <fstream>
11
12
namespace
oILAB
{
13
// CanonicalTP is an evolution algorithm with a transition probability
14
template
<
typename
StateType,
typename
SystemType>
15
class
CanonicalTP
16
:
public
EvolutionAlgorithm
<StateType, SystemType,
17
CanonicalTP<StateType, SystemType>> {
18
private
:
19
int
countTP
;
20
double
currentEnergy
,
currentDensity
;
21
std::ofstream
output
;
22
std::string
lmpLocation
;
23
std::string
potentialName
;
24
25
public
:
26
double
temperature
;
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> ¤tState);
33
34
};
35
36
}
// namespace oILAB
37
38
#include "
CanonicalTPImplementation.h
"
39
#endif
//OILAB_CANONICALTP_H
CanonicalTPImplementation.h
EvolutionAlgorithm.h
oILAB::CanonicalTP
Definition
CanonicalTP.h:17
oILAB::CanonicalTP::stateEnergyMap
std::map< StateType, double > stateEnergyMap
Definition
CanonicalTP.h:27
oILAB::CanonicalTP::temperature
double temperature
Definition
CanonicalTP.h:26
oILAB::CanonicalTP::probability
double probability(const std::pair< StateType, SystemType > &proposedState, const std::pair< StateType, SystemType > ¤tState)
Definition
CanonicalTPImplementation.h:23
oILAB::CanonicalTP::countTP
int countTP
Definition
CanonicalTP.h:19
oILAB::CanonicalTP::lmpLocation
std::string lmpLocation
Definition
CanonicalTP.h:22
oILAB::CanonicalTP::currentEnergy
double currentEnergy
Definition
CanonicalTP.h:20
oILAB::CanonicalTP::currentDensity
double currentDensity
Definition
CanonicalTP.h:20
oILAB::CanonicalTP::output
std::ofstream output
Definition
CanonicalTP.h:21
oILAB::CanonicalTP::potentialName
std::string potentialName
Definition
CanonicalTP.h:23
oILAB::EvolutionAlgorithm
Definition
EvolutionAlgorithm.h:13
oILAB
Definition
BiCrystal.cpp:13
include
MonteCarlo
CanonicalTP.h
Generated on Sat Mar 28 2026 00:15:04 for oILAB by
1.9.8