Phase.hpp
137 auto properties(PhaseChemicalModelResult& res, double T, double P, VectorConstRef n) const -> void;
std::function< void(PhaseThermoModelResult &, Temperature, Pressure)> PhaseThermoModel
The signature of the chemical model function that calculates the thermodynamic properties of the spec...
Definition: PhaseThermoModel.hpp:59
auto numSpecies() const -> unsigned
Return the number of species in the phase.
Definition: Phase.cpp:109
auto index(const T &value, const std::vector< T > &values) -> Index
Find the index of a value in a container of values.
Definition: SetUtils.hxx:21
auto names(const NamedValues &values) -> std::vector< std::string >
Return the names of the entries in a container.
Definition: Utils.hxx:22
PhaseType
A type to define the possible state of matter of a phase.
Definition: Phase.hpp:34
The result of a chemical model function that calculates the chemical properties of species.
Definition: PhaseChemicalModel.hpp:33
auto name() const -> std::string
Return the name of the phase.
Definition: Phase.cpp:114
auto indexSpeciesAnyWithError(const std::vector< std::string > &names) const -> Index
Return the index of the first species in the phase with any of the given names.
Definition: Phase.cpp:188
auto setChemicalModel(const PhaseChemicalModel &model) -> void
Set the function that calculates the chemical properties of the phase.
Definition: Phase.cpp:99
auto setType(PhaseType type) -> void
Set the type of the phase.
Definition: Phase.cpp:82
auto elements() const -> const std::vector< Element > &
Return the elements of the phase.
Definition: Phase.cpp:124
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto indexSpeciesAny(const std::vector< std::string > &names) const -> Index
Return the index of the first species in the phase with any of the given names.
Definition: Phase.cpp:183
auto thermoModel() const -> const PhaseThermoModel &
Return the thermodynamic model function of the phase.
Definition: Phase.cpp:159
auto properties(PhaseThermoModelResult &res, double T, double P) const -> void
Calculate the standard thermodynamic properties of the species in the phase.
Definition: Phase.cpp:198
auto setName(std::string name) -> void
Set the name of the phase.
Definition: Phase.cpp:77
auto setSpecies(const std::vector< Species > &species) -> void
Set the species of the phase.
Definition: Phase.cpp:87
auto indexSpecies(std::string name) const -> Index
Return the index of a species in the phase.
Definition: Phase.cpp:169
auto isSolid() const -> bool
Return true if the phase type is solid.
Definition: Phase.cpp:154
auto indexSpeciesWithError(std::string name) const -> Index
Return the index of a species in the system.
Definition: Phase.cpp:174
auto isFluid() const -> bool
Return true if the state of matter of the phase is fluid, i.e., liquid, gas, or plasma.
Definition: Phase.cpp:149
std::function< void(PhaseChemicalModelResult &, Temperature, Pressure, VectorConstRef)> PhaseChemicalModel
The signature of the chemical model function that calculates the chemical properties of the species i...
Definition: PhaseChemicalModel.hpp:66
auto chemicalModel() const -> const PhaseChemicalModel &
Return the chemical model function of the phase.
Definition: Phase.cpp:164
The result of a thermodynamic model function that calculates the thermodynamic properties of species.
Definition: PhaseThermoModel.hpp:32
auto numElements() const -> unsigned
Return the number of elements in the phase.
Definition: Phase.cpp:104
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
auto type() const -> PhaseType
Return the type of the phase.
Definition: Phase.cpp:119
auto setThermoModel(const PhaseThermoModel &model) -> void
Set the function that calculates the standard thermodynamic properties of the phase.
Definition: Phase.cpp:94
auto species() const -> const std::vector< Species > &
Return the species of the phase.
Definition: Phase.cpp:134