Loading [MathJax]/extensions/TeX/AMSmath.js
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
f
g
i
k
m
n
o
p
r
s
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
t
v
Enumerations
Enumerator
d
h
m
n
r
s
t
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
i
j
k
l
m
o
p
q
r
s
t
u
v
Enumerations
Enumerator
a
i
l
n
o
p
s
u
v
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Variables
a
b
c
g
h
i
m
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Macros
c
d
f
g
h
i
k
m
n
o
p
q
r
s
t
u
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
core/reaction_methods/ReactionEnsemble.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010-2022 The ESPResSo project
3
*
4
* This file is part of ESPResSo.
5
*
6
* ESPResSo is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* ESPResSo is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef REACTION_METHODS_REACTION_ENSEMBLE_HPP
20
#define REACTION_METHODS_REACTION_ENSEMBLE_HPP
21
22
#include "reaction_methods/ReactionAlgorithm.hpp"
23
24
#include <unordered_map>
25
26
namespace
ReactionMethods
{
27
28
/** Reaction ensemble method.
29
* Works for the reaction ensemble at constant volume and temperature. For the
30
* reaction ensemble at constant pressure, additionally employ a barostat!
31
* NOTE: a chemical reaction consists of a forward and backward reaction.
32
* Here both reactions have to be defined separately. The extent of the
33
* reaction is here chosen to be +1. If the reaction trial move for a
34
* dissociation of HA is accepted then there is one more dissociated ion
35
* pair H+ and A-. Implementation of @cite smith94c.
36
*/
37
class
ReactionEnsemble
:
public
ReactionAlgorithm
{
38
public
:
39
ReactionEnsemble
(
40
boost::mpi::communicator
const
&comm,
int
seed,
double
kT
,
41
double
exclusion_radius,
42
const
std::unordered_map<int, double> &
exclusion_radius_per_type
)
43
:
ReactionAlgorithm
(comm, seed,
kT
, exclusion_radius,
44
exclusion_radius_per_type
) {}
39
ReactionEnsemble
( {
…
}
45
};
37
class
ReactionEnsemble
:
public
ReactionAlgorithm
{
…
};
46
47
}
// namespace ReactionMethods
48
#endif
ReactionMethods::ReactionAlgorithm
Base class for reaction ensemble methods.
Definition
core/reaction_methods/ReactionAlgorithm.hpp:48
ReactionMethods::ReactionAlgorithm::exclusion_radius_per_type
std::unordered_map< int, double > exclusion_radius_per_type
Definition
core/reaction_methods/ReactionAlgorithm.hpp:82
ReactionMethods::ReactionAlgorithm::kT
double kT
Definition
core/reaction_methods/ReactionAlgorithm.hpp:74
ReactionMethods::ReactionEnsemble
Reaction ensemble method.
Definition
core/reaction_methods/ReactionEnsemble.hpp:37
ReactionMethods::ReactionEnsemble::ReactionEnsemble
ReactionEnsemble(boost::mpi::communicator const &comm, int seed, double kT, double exclusion_radius, const std::unordered_map< int, double > &exclusion_radius_per_type)
Definition
core/reaction_methods/ReactionEnsemble.hpp:39
ReactionMethods
Definition
core/reaction_methods/ConstantpHEnsemble.hpp:26
src
core
reaction_methods
ReactionEnsemble.hpp
Generated on Sat Apr 26 2025 01:17:01 for ESPResSo by
1.9.8