CoolProp  6.6.0
An open-source fluid property and humid air property database
Public Member Functions | Protected Attributes | List of all members
CoolProp::StabilityRoutines::StabilityEvaluationClass Class Reference

Detailed Description

Evaluate phase stability Based on the work of Gernert et al., J. Chem. Thermodyn., 2014 http://dx.doi.org/10.1016/j.fluid.2014.05.012.

Definition at line 584 of file VLERoutines.h.

#include <VLERoutines.h>

Public Member Functions

 StabilityEvaluationClass (HelmholtzEOSMixtureBackend &HEOS)
 
void set_TP (double T, double p)
 Specify T&P, otherwise they are loaded the HEOS instance. More...
 
void rho_TP_w_guesses ()
 Calculate the liquid and vapor phase densities based on the guess values. More...
 
void rho_TP_global ()
 Calculate the liquid and vapor phase densities using the global analysis. More...
 
void rho_TP_SRK_translated ()
 Calculate the liquid and vapor phase densities based on SRK, with Peneloux volume translation afterwards. More...
 
void trial_compositions ()
 Calculate trial compositions. More...
 
void successive_substitution (int num_steps)
 Successive substitution. More...
 
void check_stability ()
 Check stability. More...
 
bool is_stable ()
 Return best estimate for the stability of the point. More...
 
Accessor for liquid phase composition and density void get_liq (std::vector< double > &x, double &rhomolar)
 
Accessor for vapor phase composition and density void get_vap (std::vector< double > &y, double &rhomolar)
 

Protected Attributes

HelmholtzEOSMixtureBackendHEOS
 
std::vector< double > lnK
 
std::vector< double > K
 
std::vector< double > K0
 
std::vector< double > x
 
std::vector< double > y
 
std::vector< double > xL
 
std::vector< double > xH
 
const std::vector< double > & z
 
double rhomolar_liq
 
double rhomolar_vap
 
double beta
 
double tpd_liq
 
double tpd_vap
 
double DELTAG_nRT
 
double m_T
 The temperature to be used (if specified, otherwise that from HEOS) More...
 
double m_p
 The pressure to be used (if specified, otherwise that from HEOS) More...
 

Constructor & Destructor Documentation

◆ StabilityEvaluationClass()

CoolProp::StabilityRoutines::StabilityEvaluationClass::StabilityEvaluationClass ( HelmholtzEOSMixtureBackend HEOS)
inline

Definition at line 598 of file VLERoutines.h.

Member Function Documentation

◆ check_stability()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::check_stability ( )

Check stability.

  1. Check stability by looking at tpd', tpd'' and \( \Delta G/(nRT)\)
  2. Do a full TPD analysis

Definition at line 1776 of file VLERoutines.cpp.

◆ get_liq()

Accessor for liquid phase composition and density void CoolProp::StabilityRoutines::StabilityEvaluationClass::get_liq ( std::vector< double > &  x,
double &  rhomolar 
)
inline

Definition at line 647 of file VLERoutines.h.

◆ get_vap()

Accessor for vapor phase composition and density void CoolProp::StabilityRoutines::StabilityEvaluationClass::get_vap ( std::vector< double > &  y,
double &  rhomolar 
)
inline

Definition at line 652 of file VLERoutines.h.

◆ is_stable()

bool CoolProp::StabilityRoutines::StabilityEvaluationClass::is_stable ( )
inline

Return best estimate for the stability of the point.

Definition at line 640 of file VLERoutines.h.

◆ rho_TP_global()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::rho_TP_global ( )

Calculate the liquid and vapor phase densities using the global analysis.

Definition at line 1902 of file VLERoutines.cpp.

◆ rho_TP_SRK_translated()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::rho_TP_SRK_translated ( )

Calculate the liquid and vapor phase densities based on SRK, with Peneloux volume translation afterwards.

Definition at line 1932 of file VLERoutines.cpp.

◆ rho_TP_w_guesses()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::rho_TP_w_guesses ( )

Calculate the liquid and vapor phase densities based on the guess values.

Definition at line 1918 of file VLERoutines.cpp.

◆ set_TP()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::set_TP ( double  T,
double  p 
)
inline

Specify T&P, otherwise they are loaded the HEOS instance.

Definition at line 613 of file VLERoutines.h.

◆ successive_substitution()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::successive_substitution ( int  num_steps)

Successive substitution.

Definition at line 1726 of file VLERoutines.cpp.

◆ trial_compositions()

void CoolProp::StabilityRoutines::StabilityEvaluationClass::trial_compositions ( )

Calculate trial compositions.

Definition at line 1683 of file VLERoutines.cpp.

Member Data Documentation

◆ beta

double CoolProp::StabilityRoutines::StabilityEvaluationClass::beta
protected

Definition at line 590 of file VLERoutines.h.

◆ DELTAG_nRT

double CoolProp::StabilityRoutines::StabilityEvaluationClass::DELTAG_nRT
protected

Definition at line 590 of file VLERoutines.h.

◆ HEOS

HelmholtzEOSMixtureBackend& CoolProp::StabilityRoutines::StabilityEvaluationClass::HEOS
protected

Definition at line 587 of file VLERoutines.h.

◆ K

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::K
protected

Definition at line 588 of file VLERoutines.h.

◆ K0

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::K0
protected

Definition at line 588 of file VLERoutines.h.

◆ lnK

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::lnK
protected

Definition at line 588 of file VLERoutines.h.

◆ m_p

double CoolProp::StabilityRoutines::StabilityEvaluationClass::m_p
protected

The pressure to be used (if specified, otherwise that from HEOS)

Definition at line 592 of file VLERoutines.h.

◆ m_T

double CoolProp::StabilityRoutines::StabilityEvaluationClass::m_T
protected

The temperature to be used (if specified, otherwise that from HEOS)

Definition at line 591 of file VLERoutines.h.

◆ rhomolar_liq

double CoolProp::StabilityRoutines::StabilityEvaluationClass::rhomolar_liq
protected

Definition at line 590 of file VLERoutines.h.

◆ rhomolar_vap

double CoolProp::StabilityRoutines::StabilityEvaluationClass::rhomolar_vap
protected

Definition at line 590 of file VLERoutines.h.

◆ tpd_liq

double CoolProp::StabilityRoutines::StabilityEvaluationClass::tpd_liq
protected

Definition at line 590 of file VLERoutines.h.

◆ tpd_vap

double CoolProp::StabilityRoutines::StabilityEvaluationClass::tpd_vap
protected

Definition at line 590 of file VLERoutines.h.

◆ x

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::x
protected

Definition at line 588 of file VLERoutines.h.

◆ xH

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::xH
protected

Definition at line 588 of file VLERoutines.h.

◆ xL

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::xL
protected

Definition at line 588 of file VLERoutines.h.

◆ y

std::vector<double> CoolProp::StabilityRoutines::StabilityEvaluationClass::y
protected

Definition at line 588 of file VLERoutines.h.

◆ z

const std::vector<double>& CoolProp::StabilityRoutines::StabilityEvaluationClass::z
protected

Definition at line 589 of file VLERoutines.h.


The documentation for this class was generated from the following files: