Interface.hpp
88 virtual auto properties(ChemicalModelResult& res, double T, double P, VectorConstRef n) -> void = 0;
virtual auto phaseName(Index iphase) const -> std::string=0
Return the name of a phase.
virtual auto elementStoichiometry(Index ispecies, Index ielement) const -> double=0
Return the stoichiometry of an element in a species.
virtual auto properties(ThermoModelResult &res, double T, double P) -> void=0
Return the thermodynamic properties of the phases and its species.
A class to represent a system and its attributes and properties.
Definition: ChemicalSystem.hpp:38
The result of a chemical model function that calculates the chemical properties of species.
Definition: ChemicalModel.hpp:30
Provides a computational representation of the state of a multiphase chemical system.
Definition: ChemicalState.hpp:61
auto indexSpecies(std::string species) const -> Index
Return the index of a species.
Definition: Interface.cpp:80
virtual auto speciesName(Index ispecies) const -> std::string=0
Return the name of a species.
virtual auto numElements() const -> unsigned=0
Return the number of elements.
virtual auto temperature() const -> double=0
Return the temperature (in units of K)
virtual auto pressure() const -> double=0
Return the pressure (in units of Pa)
virtual auto clone() const -> std::shared_ptr< Interface >=0
Return a clone of this Interface instance.
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 state(const ChemicalSystem &system) const -> ChemicalState
Return a ChemicalState instance created from an instance of a class derived from Interface.
Definition: Interface.cpp:191
virtual auto numSpecies() const -> unsigned=0
Return the number of species.
virtual auto elementMolarMass(Index ielement) const -> double=0
Return the molar mass of an element (in units of kg/mol)
auto formulaMatrix() const -> Matrix
Return the formula matrix of the species.
Definition: Interface.cpp:60
virtual auto numSpeciesInPhase(Index iphase) const -> unsigned=0
Return the number of species in a phase.
virtual auto numPhases() const -> unsigned=0
Return the number of phases.
auto indexFirstSpeciesInPhase(Index iphase) const -> Index
Return the index of the first species in a phase.
Definition: Interface.cpp:112
auto indexPhaseWithSpecies(Index ispecies) const -> Index
Return the index of the phase with a species.
Definition: Interface.cpp:98
auto indexPhase(std::string phase) const -> Index
Return the index of a phase.
Definition: Interface.cpp:89
auto system() const -> ChemicalSystem
Return a ChemicalSystem instance created from an instance of a class derived from Interface.
Definition: Interface.cpp:122
virtual auto speciesAmounts() const -> Vector=0
Return the amounts of the species (in units of mol)
virtual auto elementName(Index ielement) const -> std::string=0
Return the name of an element.
auto indexElement(std::string element) const -> Index
Return the index of an element.
Definition: Interface.cpp:71
virtual ~Interface()=0
Virtual destructor.
Definition: Interface.cpp:57
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31