Gems.hpp
auto setOptions(const GemsOptions &options) -> void
Set the options of the Gems instance.
Definition: Gems.cpp:350
virtual auto numPhases() const -> unsigned
Return the number of phases.
Definition: Gems.cpp:201
auto equilibrate(double T, double P, VectorConstRef b) -> void
Calculate the equilibrium state of the system.
Definition: Gems.cpp:355
The result of a chemical model function that calculates the chemical properties of species.
Definition: ChemicalModel.hpp:30
auto converged() const -> bool
Return the convergence result of the equilibrium calculation.
Definition: Gems.cpp:376
virtual auto elementName(Index ielement) const -> std::string
Return the name of an element.
Definition: Gems.cpp:211
virtual auto temperature() const -> double
Return the temperature (in units of K)
Definition: Gems.cpp:173
virtual auto pressure() const -> double
Return the pressure (in units of Pa)
Definition: Gems.cpp:178
virtual auto clone() const -> std::shared_ptr< Interface >
Return a clone of this Gems instance.
Definition: Gems.cpp:318
The result of a thermodynamic model function that calculates standard thermodynamic properties of spe...
Definition: ThermoModel.hpp:30
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto node() const -> std::shared_ptr< TNode >
Return a shared pointer to the TNode instance of Gems.
Definition: Gems.cpp:392
bool warmstart
The flag that indicates if smart start initial approximation is used.
Definition: Gems.hpp:32
virtual auto elementMolarMass(Index ielement) const -> double
Return the molar mass of an element (in units of kg/mol)
Definition: Gems.cpp:218
auto set(double T, double P) -> void
Set the temperature and pressure of the Gems instance.
Definition: Gems.cpp:323
virtual auto numSpeciesInPhase(Index iphase) const -> unsigned
Return the number of species in a phase.
Definition: Gems.cpp:206
virtual auto phaseName(Index iphase) const -> std::string
Return the name of a phase.
Definition: Gems.cpp:233
virtual auto properties(ThermoModelResult &res, double T, double P) -> void
Return the thermodynamic properties of the phases and its species.
Definition: Gems.cpp:238
virtual auto elementStoichiometry(Index ispecies, Index ielement) const -> double
Return the stoichiometry of an element in a species.
Definition: Gems.cpp:223
auto numIterations() const -> unsigned
Return the number of iterations of the equilibrium calculation.
Definition: Gems.cpp:382
virtual auto speciesName(Index ispecies) const -> std::string
Return the name of a species.
Definition: Gems.cpp:228
virtual auto numSpecies() const -> unsigned
Return the number of species.
Definition: Gems.cpp:196
virtual auto speciesAmounts() const -> Vector
Return the amounts of the species (in units of mol)
Definition: Gems.cpp:183
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
auto elapsedTime() const -> double
Return the wall time of the equilibrium calculation (in units of s)
Definition: Gems.cpp:387
virtual auto numElements() const -> unsigned
Return the number of elements.
Definition: Gems.cpp:191