ThermoPropsPhase.hpp
109 using ThermoPropsPhaseFn = Fn<void(ThermoPropsPhaseDataRef, const real&, const real&, ArrayXrConstRef)>;
269 return mdata.G0 - mdata.P * mdata.V0; // from A0 = U0 - T*S0 = (H0 - P*V0) + (G0 - H0) = G0 - P*V0
281 return mdata.Cp0 + mdata.T * mdata.VT0 * mdata.VT0 / mdata.VP0; // from Cv0 = Cp0 + T*VT0*VT0/VP0
The class used to serialize/deserialize data using array.
Definition: ArrayStream.hpp:28
auto to(Args &... args) const
Transfer this ArrayStream object data to given list of scalars and/or arrays.
Definition: ArrayStream.hpp:54
The base type for standard thermodynamic properties of a phase and its species.
Definition: ThermoPropsPhase.hpp:114
auto temperature() const -> real
Return the temperature of the phase (in K).
Definition: ThermoPropsPhase.hpp:213
auto speciesStandardVolumesT() const -> ArrayXrConstRef
Return the temperature derivative of the standard partial molar volumes of the species in the phase (...
Definition: ThermoPropsPhase.hpp:231
auto pressure() const -> real
Return the pressure of the phase (in Pa).
Definition: ThermoPropsPhase.hpp:219
auto update(const real &T, const real &P)
Update the standard thermodynamic properties of the phase.
Definition: ThermoPropsPhase.hpp:150
ThermoPropsPhaseBase(const Phase &phase, const ThermoPropsPhaseBaseData< TypeOp > &data)
Construct a ThermoPropsPhaseBase instance.
Definition: ThermoPropsPhase.hpp:131
auto speciesStandardInternalEnergies() const -> ArrayXr
Return the standard partial molar internal energies of formation of the species in the phase (in J/mo...
Definition: ThermoPropsPhase.hpp:261
auto update(const real &T, const real &P, Wrt< real & > wrtvar)
Update the standard thermodynamic properties of the phase.
Definition: ThermoPropsPhase.hpp:193
auto speciesStandardHeatCapacitiesConstP() const -> ArrayXrConstRef
Return the standard partial molar isobaric heat capacities of the species in the phase (in J/(mol·K))...
Definition: ThermoPropsPhase.hpp:273
auto speciesStandardEntropies() const -> ArrayXr
Return the standard partial molar entropies of formation of the species in the phase (in J/(mol·K)).
Definition: ThermoPropsPhase.hpp:255
auto speciesStandardGibbsEnergies() const -> ArrayXrConstRef
Return the standard partial molar Gibbs energies of formation of the species in the phase (in J/mol).
Definition: ThermoPropsPhase.hpp:243
auto speciesStandardEnthalpies() const -> ArrayXrConstRef
Return the standard partial molar enthalpies of formation of the species in the phase (in J/mol).
Definition: ThermoPropsPhase.hpp:249
ThermoPropsPhaseBase(const ThermoPropsPhaseBase< OtherTypeOp > &other)
Construct a ThermoPropsPhaseBase instance.
Definition: ThermoPropsPhase.hpp:143
auto phase() const -> const Phase &
Return the underlying Phase object.
Definition: ThermoPropsPhase.hpp:201
auto speciesStandardVolumes() const -> ArrayXrConstRef
Return the standard partial molar volumes of the species in the phase (in m³/mol).
Definition: ThermoPropsPhase.hpp:225
ThermoPropsPhaseBase(const Phase &phase)
Construct a ThermoPropsPhaseBase instance.
Definition: ThermoPropsPhase.hpp:117
auto data() const -> const ThermoPropsPhaseBaseData< TypeOp > &
Return the primary standard thermodynamic property data of the phase from which others are calculated...
Definition: ThermoPropsPhase.hpp:207
auto speciesStandardVolumesP() const -> ArrayXrConstRef
Return the pressure derivative of the standard partial molar volumes of the species in the phase (in ...
Definition: ThermoPropsPhase.hpp:237
auto operator=(const ArrayStream< real > &array)
Assign the given array data to this ThermoPropsPhaseBase object.
Definition: ThermoPropsPhase.hpp:285
ThermoPropsPhaseBase(ThermoPropsPhaseBase< OtherTypeOp > &other)
Construct a ThermoPropsPhaseBase instance.
Definition: ThermoPropsPhase.hpp:137
auto speciesStandardHelmholtzEnergies() const -> ArrayXr
Return the standard partial molar Helmholtz energies of formation of the species in the phase (in J/m...
Definition: ThermoPropsPhase.hpp:267
auto speciesStandardHeatCapacitiesConstV() const -> ArrayXrConstRef
Return the standard partial molar isochoric heat capacities of the species in the phase (in J/(mol·K)...
Definition: ThermoPropsPhase.hpp:279
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
Fn< void(ThermoPropsPhaseDataRef, const real &, const real &, ArrayXrConstRef)> ThermoPropsPhaseFn
The type of functions that computes the primary standard thermodynamic property data of a phase.
Definition: ThermoPropsPhase.hpp:109
std::function< F > Fn
Convenient alias for std::function<R(Args...)>.
Definition: Types.hpp:110
Eigen::Ref< const ArrayXr > ArrayXrConstRef
Convenient alias to Eigen type.
Definition: Matrix.hpp:89
autodiff::ArrayXreal ArrayXr
Convenient alias to Eigen type.
Definition: Matrix.hpp:87
The primary standard thermodynamic properties of a chemical species.
Definition: StandardThermoProps.hpp:27
real VP0
The pressure derivative of the standard molar volume of the species (in m³/(mol·Pa)).
Definition: StandardThermoProps.hpp:44
real VT0
The temperature derivative of the standard molar volume of the species (in m³/(mol·K)).
Definition: StandardThermoProps.hpp:41
real H0
The standard molar enthalpy of formation of the species (in J/mol).
Definition: StandardThermoProps.hpp:32
real G0
The standard molar Gibbs energy of formation of the species (in J/mol).
Definition: StandardThermoProps.hpp:29
real V0
The standard molar volume of the species (in m³/mol).
Definition: StandardThermoProps.hpp:35
real Cp0
The standard molar isobaric heat capacity of the species (in J/(mol·K)).
Definition: StandardThermoProps.hpp:38
The base type for primary standard thermodynamic property data of a phase from which others are compu...
Definition: ThermoPropsPhase.hpp:31
TypeOp< real > P
The pressure of the phase (in Pa).
Definition: ThermoPropsPhase.hpp:36
auto operator=(const ThermoPropsPhaseBaseData< OtherTypeOp > &other)
Assign a ThermoPropsPhaseBaseData object to this.
Definition: ThermoPropsPhase.hpp:58
TypeOp< ArrayXr > G0
The standard molar Gibbs energies of formation of the species in the phase (in J/mol)
Definition: ThermoPropsPhase.hpp:39
TypeOp< ArrayXr > V0
The standard molar volumes of the species in the phase (in m³/mol)
Definition: ThermoPropsPhase.hpp:45
TypeOp< ArrayXr > Cp0
The standard molar isobaric heat capacities of the species in the phase (in J/(mol·K))
Definition: ThermoPropsPhase.hpp:54
TypeOp< ArrayXr > VP0
The pressure derivative of the standard molar volumes of the species in the phase (in m³/(mol·Pa)).
Definition: ThermoPropsPhase.hpp:51
TypeOp< ArrayXr > H0
The standard molar enthalpies of formation of the species in the phase (in J/mol)
Definition: ThermoPropsPhase.hpp:42
TypeOp< ArrayXr > VT0
The temperature derivative of the standard molar volumes of the species in the phase (in m³/(mol·K)).
Definition: ThermoPropsPhase.hpp:48
auto operator=(const ArrayStream< real > &array)
Assign the given array data to this ThermoPropsPhaseBaseData object.
Definition: ThermoPropsPhase.hpp:86
TypeOp< real > T
The temperature of the phase (in K).
Definition: ThermoPropsPhase.hpp:33