|
RASPA3 3.0.13
A molecular simulation code for computing adsorption and diffusion in nanoporous materials
|
Represents a chemical reaction within the simulation. More...

Public Member Functions | |
| Reaction () | |
| Default constructor for the Reaction struct. | |
| Reaction (std::size_t id, std::vector< std::size_t > reactantStoichiometry, std::vector< std::size_t > productStoichiometry) | |
| Constructs a Reaction with specified parameters. | |
| bool | operator== (Reaction const &) const =default |
| std::string | printStatus () const |
| Returns a string representation of the Reaction status. | |
| nlohmann::json | jsonStatus () const |
| Returns a JSON representation of the Reaction status. | |
Public Attributes | |
| std::uint64_t | versionNumber {1} |
| Version number of the Reaction struct. | |
| std::size_t | id |
| Unique identifier for the reaction. | |
| std::vector< std::size_t > | reactantStoichiometry |
| Stoichiometry of reactants. | |
| std::vector< std::size_t > | productStoichiometry |
| Stoichiometry of products. | |
| PropertyLambdaProbabilityHistogram | lambda |
| Histogram for lambda probabilities. | |
Friends | |
| Archive< std::ofstream > & | operator<< (Archive< std::ofstream > &archive, const Reaction &r) |
| Archive< std::ifstream > & | operator>> (Archive< std::ifstream > &archive, Reaction &r) |
Represents a chemical reaction within the simulation.
The Reaction struct encapsulates the properties and behaviors of a chemical reaction, including its unique identifier, stoichiometry of reactants and products, a histogram for lambda probabilities, and methods for printing and serialization.
|
inline |
|
inline |
Constructs a Reaction with specified parameters.
Initializes a Reaction with the provided identifier and stoichiometry for reactants and products.
| id | The unique identifier for the reaction. |
| reactantStoichiometry | A vector containing the stoichiometry of reactants. |
| productStoichiometry | A vector containing the stoichiometry of products. |
| nlohmann::json Reaction::jsonStatus | ( | ) | const |
| std::string Reaction::printStatus | ( | ) | const |