EquilibriumProblem.hpp
auto pressure() const -> double
Return the pressure for the equilibrium calculation (in units of Pa)
Definition: EquilibriumProblem.cpp:268
auto amount(double value, Index nspecies, Index ispecies) -> ChemicalScalarBase< double, decltype(tr(unit(nspecies, ispecies)))>
Return a ChemicalScalar representation of a mole amount of a species.
Definition: ChemicalScalar.hpp:233
A class to represent a system and its attributes and properties.
Definition: ChemicalSystem.hpp:38
Provides a computational representation of the state of a multiphase chemical system.
Definition: ChemicalState.hpp:61
auto system() const -> const ChemicalSystem &
Return a reference to the ChemicalSystem instance used to create this EquilibriumProblem instance.
Definition: EquilibriumProblem.cpp:253
A type that defines an equilibrium problem.
Definition: EquilibriumProblem.hpp:33
auto addCompound(std::string name, double amount, std::string unit) -> EquilibriumProblem &
Add a given amount of a compound to the equilibrium recipe.
Definition: EquilibriumProblem.cpp:184
auto setPartition(const Partition &partition) -> EquilibriumProblem &
Set the partition of the chemical system.
Definition: EquilibriumProblem.cpp:101
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto setElectricalCharge(double amount) -> EquilibriumProblem &
Set the mole amount of electrical charge.
Definition: EquilibriumProblem.cpp:167
auto setTemperature(double val) -> EquilibriumProblem &
Set the temperature for the equilibrium calculation.
Definition: EquilibriumProblem.cpp:107
virtual ~EquilibriumProblem()
Destroy this EquilibriumProblem instance.
Definition: EquilibriumProblem.cpp:92
auto addState(const ChemicalState &state) -> EquilibriumProblem &
Add the mole amounts of the equilibrium species in a ChemicalState instance to the equilibrium recipe...
Definition: EquilibriumProblem.cpp:246
auto elementAmounts() const -> VectorConstRef
Return the amounts of the elements for the equilibrium calculation (in units of mol)
Definition: EquilibriumProblem.cpp:273
auto setElementAmount(Index ielement, double amount) -> EquilibriumProblem &
Set the mole amount of an element for the equilibrium calculation (in units of mol)
Definition: EquilibriumProblem.cpp:148
auto setElementAmounts(VectorConstRef b) -> EquilibriumProblem &
Set the mole amounts of each element for the equilibrium calculation.
Definition: EquilibriumProblem.cpp:133
EquilibriumProblem(const ChemicalSystem &system)
Construct an EquilibriumProblem instance.
Definition: EquilibriumProblem.cpp:80
auto temperature() const -> double
Return the temperature for the equilibrium calculation (in units of K)
Definition: EquilibriumProblem.cpp:263
auto add(std::string name, double amount, std::string units) -> EquilibriumProblem &
Add a given amount of a compound or species to the equilibrium recipe.
Definition: EquilibriumProblem.cpp:172
auto partition() const -> const Partition &
Return a reference to the Partition instance used to create this EquilibriumProblem instance.
Definition: EquilibriumProblem.cpp:258
Provide a computational representation of the Partition of a chemical system.
Definition: Partition.hpp:56
auto operator=(EquilibriumProblem other) -> EquilibriumProblem &
Assign an EquilibriumProblem instance to this.
Definition: EquilibriumProblem.cpp:95
auto setPressure(double val) -> EquilibriumProblem &
Set the pressure for the equilibrium calculation.
Definition: EquilibriumProblem.cpp:120
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
auto unit(Index rows, Index i) -> decltype(Vector::Unit(rows, i))
Return an expression of a unit vector.
Definition: Matrix.hxx:47
auto addSpecies(std::string name, double amount, std::string unit) -> EquilibriumProblem &
Add a given amount of a species to the equilibrium recipe The species must be present in the chemical...
Definition: EquilibriumProblem.cpp:217