EquilibriumRestrictions.hpp
33 //=================================================================================================
37 //=================================================================================================
87 //=================================================================================================
91 //=================================================================================================
117 //=================================================================================================
121 //=================================================================================================
The class used to represent a chemical system and its attributes and properties.
Definition: ChemicalSystem.hpp:70
The class used to define reactivity restrictions in a chemical equilibrium calculation.
Definition: EquilibriumRestrictions.hpp:28
EquilibriumRestrictions(ChemicalSystem const &system)
Construct an EquilibriumRestrictions object.
auto canIncreaseFreely(String species) -> void
Remove any previously set increase restriction on the amount of a species.
auto cannotDecrease(String species) -> void
Prevent the amount of a species from decreasing during the chemical equilibrium calculation.
auto canDecreaseFreely(String species) -> void
Remove any previously set decrease restriction on the amount of a species.
auto cannotReact(Index ispecies) -> void
Prevent the amount of a species from changing during the chemical equilibrium calculation.
auto speciesCannotDecreaseBelow() const -> Map< Index, double > const &
Return the indices of the species whose amounts cannot decrease below a given value.
auto speciesCannotDecrease() const -> Set< Index > const &
Return the indices of the species whose amounts cannot decrease.
auto cannotDecreaseBelow(Index ispecies, double value, Chars unit="mol") -> void
Prevent the amount/mass of a species from decreasing below a value during the chemical equilibrium ca...
auto canIncreaseFreely(Index ispecies) -> void
Remove any previously set increase restriction on the amount of a species.
auto cannotDecrease(Index ispecies) -> void
Prevent the amount of a species from decreasing during the chemical equilibrium calculation.
auto canReactFreely(String species) -> void
Remove any previously set increase/decrease restriction on the amount of a species.
auto canDecreaseFreely(Index ispecies) -> void
Remove any previously set decrease restriction on the amount of a species.
auto cannotIncreaseAbove(String species, double value, Chars unit="mol") -> void
Prevent the amount/mass of a species from increasing above a value during the chemical equilibrium ca...
auto system() const -> ChemicalSystem const &
Return the chemical system associated with the equilibrium conditions.
auto cannotReact(String species) -> void
Prevent the amount of a species from changing during the chemical equilibrium calculation.
auto cannotDecreaseBelow(String species, double value, Chars unit="mol") -> void
Prevent the amount/mass of a species from decreasing below a value during the chemical equilibrium ca...
auto cannotIncreaseAbove(Index ispecies, double value, Chars unit="mol") -> void
Prevent the amount/mass of a species from increasing above a value during the chemical equilibrium ca...
auto cannotIncrease(Index ispecies) -> void
Prevent the amount of a species from increasing during the chemical equilibrium calculation.
auto speciesCannotIncrease() const -> Set< Index > const &
Return the indices of the species whose amounts cannot increase.
auto canReactFreely(Index ispecies) -> void
Remove any previously set increase/decrease restriction on the amount of a species.
auto speciesCannotIncreaseAbove() const -> Map< Index, double > const &
Return the indices of the species whose amounts cannot increase above a given value.
auto cannotIncrease(String species) -> void
Prevent the amount of a species from increasing during the chemical equilibrium calculation.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto unit(Index rows, Index i) -> decltype(VectorXd::Unit(rows, i))
Return an expression of a unit vector.
Definition: Matrix.hpp:546
std::unordered_map< Key, T > Map
Convenient alias for std::unordered_map<Key, T>.
Definition: Types.hpp:74