ReactionSystem.hpp
auto stoichiometricMatrix() const -> MatrixConstRef
Return the stoichiometric matrix of the reaction system.
Definition: ReactionSystem.cpp:125
auto lnReactionQuotients(const ChemicalProperties &properties) const -> ChemicalVector
Calculate the reaction quotients of the reactions.
Definition: ReactionSystem.cpp:144
auto indexReaction(std::string name) const -> Index
Return the index of the reaction with given name.
Definition: ReactionSystem.cpp:84
auto index(const T &value, const std::vector< T > &values) -> Index
Find the index of a value in a container of values.
Definition: SetUtils.hxx:21
A class to represent a system and its attributes and properties.
Definition: ChemicalSystem.hpp:38
auto reactions() const -> const std::vector< Reaction > &
Return the reactions in the reaction system.
Definition: ReactionSystem.cpp:98
auto lnEquilibriumConstants(const ChemicalProperties &properties) const -> ThermoVector
Calculate the equilibrium constants of the reactions.
Definition: ReactionSystem.cpp:135
ThermoVectorBase< Vector, Vector, Vector > ThermoVector
A type that defines a vector of thermodynamic properties.
Definition: ScalarTypes.hpp:41
auto reaction(Index index) const -> const Reaction &
Return the reaction in the reaction system with given index.
Definition: ReactionSystem.cpp:103
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
virtual ~ReactionSystem()
Destroy this ReactionSystem instance.
Definition: ReactionSystem.cpp:76
auto system() const -> const ChemicalSystem &
Return the chemical system instance.
Definition: ReactionSystem.cpp:130
A class for querying thermodynamic and chemical properties of a chemical system.
Definition: ChemicalProperties.hpp:33
auto indexReactionWithError(std::string name) const -> Index
Return the index of the reaction with given name.
Definition: ReactionSystem.cpp:89
A class that represents a system of chemical reactions.
Definition: ReactionSystem.hpp:42
ReactionSystem()
Construct a default ReactionSystem instances.
Definition: ReactionSystem.cpp:68
Provide a computational representation of a chemical reaction.
Definition: Reaction.hpp:60
auto rates(const ChemicalProperties &properties) const -> ChemicalVector
Calculate the kinetic rates of the reactions.
Definition: ReactionSystem.cpp:154
ChemicalVectorBase< Vector, Vector, Vector, Matrix > ChemicalVector
A type that represents a vector of chemical properties and their derivatives.
Definition: ChemicalVector.hpp:39
Eigen::Ref< const Eigen::MatrixXd > MatrixConstRef
Alias to Eigen type Ref<const MatrixXd>.
Definition: Matrix.hpp:44
auto numReactions() const -> unsigned
Return the number of reactions in the reaction system.
Definition: ReactionSystem.cpp:79