ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Classes | |
class | ConstantpHEnsemble |
Constant-pH Ensemble, for derivation see [35]. More... | |
class | ReactionAlgorithm |
Base class for reaction ensemble methods. More... | |
class | ReactionEnsemble |
Reaction ensemble method. More... | |
struct | SingleReaction |
class | WidomInsertion |
Widom insertion method. More... | |
Functions | |
double | factorial_Ni0_divided_by_factorial_Ni0_plus_nu_i (int Ni0, int nu_i) |
Calculates the factorial expression which occurs in the reaction ensemble acceptance probability. | |
double | calculate_factorial_expression (SingleReaction const &reaction, std::unordered_map< int, int > const &particle_numbers) |
Calculates the whole product of factorial expressions which occur in the reaction ensemble acceptance probability. | |
double | calculate_factorial_expression_cpH (SingleReaction const &reaction, std::unordered_map< int, int > const &particle_numbers) |
Calculates the factorial expression which occurs in the constant pH method with symmetric proposal probability. | |
double ReactionMethods::calculate_factorial_expression | ( | SingleReaction const & | reaction, |
std::unordered_map< int, int > const & | particle_numbers | ||
) |
Calculates the whole product of factorial expressions which occur in the reaction ensemble acceptance probability.
See [37].
Definition at line 46 of file utils.cpp.
References factorial_Ni0_divided_by_factorial_Ni0_plus_nu_i(), ReactionMethods::SingleReaction::product_coefficients, ReactionMethods::SingleReaction::product_types, ReactionMethods::SingleReaction::reactant_coefficients, and ReactionMethods::SingleReaction::reactant_types.
double ReactionMethods::calculate_factorial_expression_cpH | ( | SingleReaction const & | reaction, |
std::unordered_map< int, int > const & | particle_numbers | ||
) |
Calculates the factorial expression which occurs in the constant pH method with symmetric proposal probability.
See [26] for details. zeta = 1 (see [37]) since we only perform one reaction at one call of the function.
Definition at line 65 of file utils.cpp.
References factorial_Ni0_divided_by_factorial_Ni0_plus_nu_i(), ReactionMethods::SingleReaction::product_coefficients, ReactionMethods::SingleReaction::product_types, ReactionMethods::SingleReaction::reactant_coefficients, and ReactionMethods::SingleReaction::reactant_types.
double ReactionMethods::factorial_Ni0_divided_by_factorial_Ni0_plus_nu_i | ( | int | Ni0, |
int | nu_i | ||
) |
Calculates the factorial expression which occurs in the reaction ensemble acceptance probability.
Definition at line 29 of file utils.cpp.
Referenced by calculate_factorial_expression(), and calculate_factorial_expression_cpH().