FormationReaction.hpp
85 auto withReactionStandardThermoModel(const ReactionStandardThermoModel& fn) const -> FormationReaction;
A class to represent a formation reaction of a chemical species.
Definition: FormationReaction.hpp:33
auto initialized() const -> bool
Return true if this FormationReaction object has been initialized with reactants and a reaction therm...
auto withProductStandardVolume(real const &V0p) const -> FormationReaction
Return a duplicate of this FormationReaction object with new standard molar volume function for the p...
auto clone() const -> FormationReaction
Return a deep copy of this FormationReaction object.
auto productStandardVolumeModel() const -> const Model< real(real, real)> &
Return the standard molar volume function of the product species.
auto withReactants(Pairs< Species, double > const &reactants) const -> FormationReaction
Return a duplicate of this FormationReaction object with new reactant species in the formation reacti...
FormationReaction()
Construct a default FormationReaction object.
auto createStandardThermoModel() const -> StandardThermoModel
Construct the standard thermodynamic model function of the product species.
auto withReactionStandardThermoModel(const ReactionStandardThermoModel &fn) const -> FormationReaction
Return a duplicate of this FormationReaction object with a new reaction standard thermodynamic model ...
auto reactionThermoModel() const -> const ReactionStandardThermoModel &
Return the reaction thermodynamic model function of the formation reaction.
auto stoichiometry(String reactant) const -> double
Return the stoichiometric coefficient of a reactant with given name in the formation reaction.
auto withEquilibriumConstant(real const &lgK0) const -> FormationReaction
Return a duplicate of this FormationReaction object with new reaction thermodynamic model function.
auto reactants() const -> const Pairs< Species, double > &
Return the reactant species in the formation reaction.
auto withProductStandardVolumeModel(Model< real(real, real)> fn) const -> FormationReaction
Return a duplicate of this FormationReaction object with new standard molar volume function for the p...
Definition: Model.hpp:30
A type used to represent a chemical species and its attributes.
Definition: Species.hpp:35
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Vec< Pair< T, U > > Pairs
Convenient alias for std::vector<std::pair<T, U>>.
Definition: Types.hpp:90
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26