ChemicalModel.hpp
55 auto phaseProperties(Index iphase, Index ispecies, Index nspecies) const -> PhaseChemicalModelResultConst;
61 inline auto lnActivityCoefficients() const -> ChemicalVectorConstRef { return ln_activity_coefficients; }
73 inline auto partialMolarVolumes() const -> ChemicalVectorConstRef { return partial_molar_volumes; }
82 inline auto phaseResidualMolarGibbsEnergies() -> ChemicalVectorRef { return phase_residual_molar_gibbs_energies; }
85 inline auto phaseResidualMolarGibbsEnergies() const -> ChemicalVectorConstRef { return phase_residual_molar_gibbs_energies; }
88 inline auto phaseResidualMolarEnthalpies() -> ChemicalVectorRef { return phase_residual_molar_enthalpies; }
91 inline auto phaseResidualMolarEnthalpies() const -> ChemicalVectorConstRef { return phase_residual_molar_enthalpies; }
94 inline auto phaseResidualMolarHeatCapacitiesCp() -> ChemicalVectorRef { return phase_residual_molar_heat_capacities_cp; }
97 inline auto phaseResidualMolarHeatCapacitiesCp() const -> ChemicalVectorConstRef { return phase_residual_molar_heat_capacities_cp; }
100 inline auto phaseResidualMolarHeatCapacitiesCv() -> ChemicalVectorRef { return phase_residual_molar_heat_capacities_cv; }
103 inline auto phaseResidualMolarHeatCapacitiesCv() const -> ChemicalVectorConstRef { return phase_residual_molar_heat_capacities_cv; }
132 using ChemicalModel = std::function<void(ChemicalModelResult&, Temperature, Pressure, VectorConstRef)>;
std::function< void(ChemicalModelResult &, Temperature, Pressure, VectorConstRef)> ChemicalModel
The signature of the chemical model function that calculates the chemical properties of the species i...
Definition: ChemicalModel.hpp:132
auto phaseResidualMolarHeatCapacitiesCv() -> ChemicalVectorRef
Return the residual molar isochoric heat capacities of the phases w.r.t. to its ideal state (in units...
Definition: ChemicalModel.hpp:100
auto phaseResidualMolarHeatCapacitiesCp() -> ChemicalVectorRef
Return the residual molar isobaric heat capacities of the phases w.r.t. to its ideal state (in units ...
Definition: ChemicalModel.hpp:94
auto phaseMolarVolumes() -> ChemicalVectorRef
Return the molar volumes of the phases (in units of m3/mol).
Definition: ChemicalModel.hpp:76
The result of a chemical model function that calculates the chemical properties of species.
Definition: ChemicalModel.hpp:30
auto resize(Index nphases, Index nspecies) -> void
Resize this ChemicalModelResultBase with a given number of species.
Definition: ChemicalModel.cpp:36
auto lnActivityCoefficients() const -> ChemicalVectorConstRef
Return the natural log of the activity coefficients of the species.
Definition: ChemicalModel.hpp:61
auto partialMolarVolumes() const -> ChemicalVectorConstRef
Return the partial molar volume of species each phase (in units of m3/mol).
Definition: ChemicalModel.hpp:73
ChemicalModelResult()
Construct a default ChemicalModelResultBase instance.
Definition: ChemicalModel.cpp:22
auto phaseResidualMolarGibbsEnergies() -> ChemicalVectorRef
Return the residual molar Gibbs energies of the phases w.r.t. to its ideal state (in units of J/mol).
Definition: ChemicalModel.hpp:82
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
PhaseChemicalModelResultBase< ChemicalScalarConstRef, ChemicalVectorConstRef > PhaseChemicalModelResultConst
The chemical properties of the species in a phase (constant).
Definition: PhaseChemicalModel.hpp:63
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
auto phaseMolarVolumes() const -> ChemicalVectorConstRef
Return the molar volumes of the phases (in units of m3/mol).
Definition: ChemicalModel.hpp:79
auto lnActivityCoefficients() -> ChemicalVectorRef
Return the natural log of the activity coefficients of the species.
Definition: ChemicalModel.hpp:58
auto partialMolarVolumes() -> ChemicalVectorRef
Return the partial molar volume of species each phase (in units of m3/mol).
Definition: ChemicalModel.hpp:70
auto phaseResidualMolarHeatCapacitiesCp() const -> ChemicalVectorConstRef
Return the residual molar isobaric heat capacities of the phases w.r.t. to its ideal state (in units ...
Definition: ChemicalModel.hpp:97
auto phaseResidualMolarEnthalpies() const -> ChemicalVectorConstRef
Return the residual molar enthalpies of the phases w.r.t. to its ideal state (in units of J/mol).
Definition: ChemicalModel.hpp:91
auto phaseProperties(Index iphase, Index ispecies, Index nspecies) -> PhaseChemicalModelResult
Return a view of the chemical properties of a phase.
Definition: ChemicalModel.cpp:48
PhaseChemicalModelResultBase< ChemicalScalarRef, ChemicalVectorRef > PhaseChemicalModelResult
The chemical properties of the species in a phase.
Definition: PhaseChemicalModel.hpp:60
auto phaseResidualMolarHeatCapacitiesCv() const -> ChemicalVectorConstRef
Return the residual molar isochoric heat capacities of the phases w.r.t. to its ideal state (in units...
Definition: ChemicalModel.hpp:103
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
< Alias to Eigen type Ref<VectorXd>.
Definition: Matrix.hpp:31
A template base class to represent a vector of chemical properties and their partial derivatives.
Definition: ChemicalVector.hpp:51
auto phaseResidualMolarGibbsEnergies() const -> ChemicalVectorConstRef
Return the residual molar Gibbs energies of the phases w.r.t. to its ideal state (in units of J/mol).
Definition: ChemicalModel.hpp:85
auto phaseResidualMolarEnthalpies() -> ChemicalVectorRef
Return the residual molar enthalpies of the phases w.r.t. to its ideal state (in units of J/mol).
Definition: ChemicalModel.hpp:88
auto lnActivities() -> ChemicalVectorRef
Return the natural log of the activities of the species.
Definition: ChemicalModel.hpp:64
auto lnActivities() const -> ChemicalVectorConstRef
Return the natural log of the activities of the species.
Definition: ChemicalModel.hpp:67