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
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
:
17
int
countTP
;
18
double
currentEnergy
,
currentDensity
;
19
std::ofstream
output
;
20
std::string
lmpLocation
;
21
std::string
potentialName
;
22
public
:
23
double
temperature
;
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
37
#include <
CanonicalTPImplementation.h
>
38
#endif
//OILAB_CANONICALTP_H
CanonicalTPImplementation.h
EvolutionAlgorithm.h
gbLAB::CanonicalTP
Definition
CanonicalTP.h:15
gbLAB::CanonicalTP::temperature
double temperature
Definition
CanonicalTP.h:23
gbLAB::CanonicalTP::stateEnergyMap
std::map< StateType, double > stateEnergyMap
Definition
CanonicalTP.h:24
gbLAB::CanonicalTP::output
std::ofstream output
Definition
CanonicalTP.h:19
gbLAB::CanonicalTP::currentEnergy
double currentEnergy
Definition
CanonicalTP.h:18
gbLAB::CanonicalTP::currentDensity
double currentDensity
Definition
CanonicalTP.h:18
gbLAB::CanonicalTP::probability
double probability(const std::pair< StateType, SystemType > &proposedState, const std::pair< StateType, SystemType > ¤tState)
Definition
CanonicalTPImplementation.h:28
gbLAB::CanonicalTP::lmpLocation
std::string lmpLocation
Definition
CanonicalTP.h:20
gbLAB::CanonicalTP::potentialName
std::string potentialName
Definition
CanonicalTP.h:21
gbLAB::CanonicalTP::countTP
int countTP
Definition
CanonicalTP.h:17
gbLAB::EvolutionAlgorithm
Definition
EvolutionAlgorithm.h:12
gbLAB
Definition
BiCrystal.cpp:13
include
MonteCarlo
CanonicalTP.h
Generated on Wed Aug 6 2025 23:06:44 for oILAB by
1.9.8