EquilibriumProblem.hpp
The class used to represent a chemical system and its attributes and properties.
Definition: ChemicalSystem.hpp:70
The class used to define conditions to be satisfied at chemical equilibrium.
Definition: EquilibriumConditions.hpp:32
The class used to define chemical equilibrium problems.
Definition: EquilibriumProblem.hpp:33
auto initialTemperature() const -> real
Return the initial temperature of the system in the equilibrium calculation (in K).
EquilibriumProblem(const EquilibriumSpecs &specs)
Construct an EquilibriumProblem object with given specifications.
EquilibriumProblem(const ChemicalSystem &system)
Construct an EquilibriumProblem object with given chemical system.
auto startWith(Index ispecies, real value, Chars unit) -> void
Specify an initial condition for the abundance of a chemical species.
auto startWithTemperature(real value, Chars unit) -> void
Specify an initial temperature condition for the chemical system.
auto startWith(String species, real value, Chars unit) -> void
auto initialSpeciesAmounts() const -> ArrayXrConstRef
Return the initial amounts of the species in the equilibrium calculation (in mol).
auto startWithPressure(real value) -> void
Specify an initial pressure condition for the chemical system.
auto startWithPressure(real value, Chars unit) -> void
Specify an initial pressure condition for the chemical system.
auto startWithState(const ChemicalState &state) -> void
Specify an initial condition for temperature, pressure, and species amounts with a given chemical sta...
auto startWithTemperature(real value) -> void
Specify an initial temperature condition for the chemical system (in K).
auto startWithComponentAmounts(ArrayXrConstRef b) -> void
Specify the initial condition for the amounts of the conservative components.
auto system() const -> ChemicalSystem const &
Get the chemical system associated with the equilibrium conditions.
auto startWithSpeciesAmounts(ArrayXrConstRef n) -> void
Specify an initial condition for the species amounts.
auto initialPressure() const -> real
Return the initial pressure of the system in the equilibrium calculation (in Pa).
auto initialComponentAmounts() const -> ArrayXr
Return the initial amounts of the conservative components in the equilibrium calculation (in mol).
The class used to define reactivity restrictions in a chemical equilibrium calculation.
Definition: EquilibriumRestrictions.hpp:28
The class used to define conditions to be satisfied at chemical equilibrium.
Definition: EquilibriumSpecs.hpp:291
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
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
Eigen::Ref< const ArrayXr > ArrayXrConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:89
autodiff::ArrayXreal ArrayXr
Convenient alias to Eigen type.
Definition: Matrix.hpp:87