ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
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
) {}
45
};
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 Fri Nov 22 2024 02:13:54 for ESPResSo by
1.9.8