CubicEOS.hpp
166 auto operator()(const ThermoScalar& T, const ThermoScalar& P, const ChemicalVector& x) -> Result;
auto setPhaseAsLiquid() -> void
Set the equation of state to compute properties for a liquid phase.
Definition: CubicEOS.cpp:600
Parameters to be passed to the Cubic Equation of State.
Definition: CubicEOS.hpp:69
ChemicalScalar molar_volume
The molar volume of the phase (in units of m3/mol).
Definition: CubicEOS.hpp:94
Class to define or store Binary Interaction Parameters (BIPs) from a calculation or input.
Definition: CubicEOS.hpp:52
virtual ~CubicEOS()
Destroy this CubicEOS instance.
Definition: CubicEOS.cpp:581
ChemicalVector ln_fugacity_coefficients
The fugacity coefficients of the species in the phase.
Definition: CubicEOS.hpp:118
ChemicalScalar residual_molar_heat_capacity_cv
The residual molar heat capacity at constant volume of the phase (in units of J/(mol*K)).
Definition: CubicEOS.hpp:106
auto setPhaseAsVapor() -> void
Set the equation of state to compute properties for a vapor phase.
Definition: CubicEOS.cpp:605
auto setModel(Model model) -> void
Set the type of the cubic equation of state (default: PengRobinson).
Definition: CubicEOS.cpp:595
auto setCriticalTemperatures(const std::vector< double > &values) -> void
Set the critical temperatures of the species (in units of K).
Definition: CubicEOS.cpp:610
Eigen::MatrixXd MatrixXd
Alias to Eigen type Eigen::MatrixXd.
Definition: Matrix.hpp:69
auto numSpecies() const -> unsigned
Return the number of species in the phase.
Definition: CubicEOS.cpp:590
CubicEOS(unsigned nspecies, Params params)
Construct a CubicEOS instance with given number of species.
Definition: CubicEOS.cpp:566
MatrixXd kTT
The derivative of each kT entry w.r.t T.
Definition: CubicEOS.hpp:60
InteractionParamsFunction binary_interaction_values
Wrapper function to calculate binary interaction parameters for mixture rules using a Cubic EOS.
Definition: CubicEOS.hpp:81
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
ChemicalScalar residual_molar_gibbs_energy
The residual molar Gibbs energy of the phase (in units of J/mol).
Definition: CubicEOS.hpp:97
ChemicalScalar residual_molar_enthalpy
The residual molar enthalpy of the phase (in units of J/mol).
Definition: CubicEOS.hpp:100
Result()
Construct a default Result instance.
Definition: CubicEOS.cpp:480
ChemicalVector residual_partial_molar_enthalpies
The residual partial molar enthalpies of the species in the phase (in units of J/mol).
Definition: CubicEOS.hpp:115
auto setAcentricFactors(const std::vector< double > &values) -> void
Set the acentric factors of the species.
Definition: CubicEOS.cpp:638
ChemicalVector residual_partial_molar_gibbs_energies
The residual partial molar Gibbs energies of the species in the phase (in units of J/mol).
Definition: CubicEOS.hpp:112
Defines a cubic equation of state and calculates thermodynamic properties of a fluid phase.
Definition: CubicEOS.hpp:41
PhaseIdentificationMethod
Defines the enumeration of available phase identification methods.
Definition: PhaseIdentification.hpp:30
auto operator=(CubicEOS other) -> CubicEOS &
Assign a CubicEOS instance to this.
Definition: CubicEOS.cpp:584
MatrixXd k
The BIPs matrix. The size must be (n, n), where n is the number of species.
Definition: CubicEOS.hpp:54
Model
Defines the enumeration of available cubic EOS models.
Definition: CubicEOS.hpp:45
std::function< InteractionParamsResult(const double &)> InteractionParamsFunction
Function wrapper to calculate (temperature-dependent) binary interaction parameters.
Definition: CubicEOS.hpp:65
auto setCriticalPressures(const std::vector< double > &values) -> void
Set the critical pressures of the species (in units of Pa).
Definition: CubicEOS.cpp:624
ChemicalVector partial_molar_volumes
The partial molar volumes of the species in the phase (in units of m3/mol).
Definition: CubicEOS.hpp:109
auto setInteractionParamsFunction(const InteractionParamsFunction &func) -> void
Set the function that calculates the interaction parameters kij (k) and its temperature derivatives (...
Definition: CubicEOS.cpp:648
PhaseIdentificationMethod phase_identification_method
If both Gaseous and Liquid phases are in the system, it is recommended to configure a robust phase id...
Definition: CubicEOS.hpp:75
MatrixXd kT
The derivative of each k entry w.r.t T.
Definition: CubicEOS.hpp:57
Definition: CubicEOS.hpp:85
ChemicalScalar residual_molar_heat_capacity_cp
The residual molar heat capacity at constant pressure of the phase (in units of J/(mol*K)).
Definition: CubicEOS.hpp:103