CoolProp 8.0.0
An open-source fluid property and humid air property database
Classes | Namespaces | Enumerations | Functions
VLERoutines.h File Reference
#include "HelmholtzEOSMixtureBackend.h"

Go to the source code of this file.

Classes

struct  CoolProp::SaturationSolvers::saturation_T_pure_Akasaka_options
 
struct  CoolProp::SaturationSolvers::saturation_T_pure_options
 
struct  CoolProp::SaturationSolvers::saturation_D_pure_options
 
struct  CoolProp::SaturationSolvers::mixture_VLE_IO
 
struct  CoolProp::SaturationSolvers::saturation_PHSU_pure_options
 
class  CoolProp::SaturationSolvers::WilsonK_resid
 
struct  CoolProp::SaturationSolvers::SuccessiveSubstitutionStep
 
struct  CoolProp::SaturationSolvers::newton_raphson_twophase_options
 
class  CoolProp::SaturationSolvers::newton_raphson_twophase
 A class to do newton raphson solver for mixture VLE for p,Q or T,Q. More...
 
struct  CoolProp::SaturationSolvers::newton_raphson_saturation_options
 
class  CoolProp::SaturationSolvers::newton_raphson_saturation
 A class to do newton raphson solver for mixture bubble point and dew point calculations. More...
 
struct  CoolProp::SaturationSolvers::PTflash_twophase_options
 Options and results for the PT flash two-phase solver. More...
 
class  CoolProp::SaturationSolvers::PTflash_twophase
 Isothermal-Isobaric (PT) two-phase flash solver. More...
 
class  CoolProp::StabilityRoutines::StabilityEvaluationClass
 Evaluate phase stability. More...
 

Namespaces

namespace  CoolProp
 
namespace  CoolProp::SaturationSolvers
 
namespace  CoolProp::StabilityRoutines
 

Enumerations

enum  CoolProp::SaturationSolvers::sstype_enum { CoolProp::SaturationSolvers::imposed_T , CoolProp::SaturationSolvers::imposed_p }
 

Functions

void CoolProp::SaturationSolvers::saturation_D_pure (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl rhomolar, saturation_D_pure_options &options)
 
void CoolProp::SaturationSolvers::saturation_T_pure (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl T, saturation_T_pure_options &options)
 
void CoolProp::SaturationSolvers::saturation_T_pure_Akasaka (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl T, saturation_T_pure_Akasaka_options &options)
 
void CoolProp::SaturationSolvers::saturation_T_pure_Maxwell (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl T, saturation_T_pure_Akasaka_options &options)
 
void CoolProp::SaturationSolvers::saturation_PHSU_pure (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl specified_value, saturation_PHSU_pure_options &options)
 
void CoolProp::SaturationSolvers::saturation_P_pure_1D_T (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl p, saturation_PHSU_pure_options &options)
 
void CoolProp::SaturationSolvers::saturation_T_pure_1D_P (HelmholtzEOSMixtureBackend &HEOS, CoolPropDbl T, saturation_T_pure_options &options)
 
void CoolProp::SaturationSolvers::saturation_critical (HelmholtzEOSMixtureBackend &HEOS, CoolProp::parameters ykey, CoolPropDbl y)
 
void CoolProp::SaturationSolvers::successive_substitution (HelmholtzEOSMixtureBackend &HEOS, const CoolPropDbl beta, CoolPropDbl T, CoolPropDbl p, const std::vector< CoolPropDbl > &z, std::vector< CoolPropDbl > &K, mixture_VLE_IO &options)
 
void CoolProp::SaturationSolvers::x_and_y_from_K (CoolPropDbl beta, const std::vector< CoolPropDbl > &K, const std::vector< CoolPropDbl > &z, std::vector< CoolPropDbl > &x, std::vector< CoolPropDbl > &y)
 Extract the mole fractions of liquid (x) and vapor (y) given the bulk composition (z), vapor mole fraction and K-factors. More...
 
void CoolProp::SaturationSolvers::successive_substitution_guessrho (HelmholtzEOSMixtureBackend &HEOS, std::vector< CoolPropDbl > &x, std::vector< CoolPropDbl > &y, CoolPropDbl &rhomolar_liq, CoolPropDbl &rhomolar_vap, const std::vector< CoolPropDbl > &z, int num_steps, double tol=1e-6)
 Refine a two-phase guess (x, y, rhomolar_liq, rhomolar_vap) in place by successive substitution at fixed (T, p): re-solve each phase density near its current guess, recompute the K-factors from the fugacity-coefficient ratio, and re-split via Rachford-Rice. Stops early when max |Δln K| across components falls below tol. Used to seed the second-order (Michelsen) PT phase-split solver from a cheap estimate. (Adapted from jakobreichert's PR #2720.) More...
 
bool CoolProp::SaturationSolvers::guess_split_from_wilson (HelmholtzEOSMixtureBackend &HEOS, std::vector< CoolPropDbl > &x, std::vector< CoolPropDbl > &y, CoolPropDbl &rhomolar_liq, CoolPropDbl &rhomolar_vap, const std::vector< CoolPropDbl > &z, CoolPropDbl T, CoolPropDbl p, int num_steps, bool require_bracket=true)
 Seed a two-phase guess (x, y, rhomolar_liq, rhomolar_vap) from the ideal (Wilson) K-factor estimate at fixed (T, p) and refine it by successive substitution. The liquid phase is seeded at the incipient (heavy-rich) composition rather than the feed, so the split does not collapse to the trivial solution near the dew point. Returns false when the Wilson estimate places the feed outside its bubble/dew points (no two-phase Rachford-Rice root) or a phase density cannot be obtained. Used to recover a two-phase state that the TPD stability test reported as single-phase (CoolProp-zgpy). More...
 
double CoolProp::SaturationSolvers::saturation_preconditioner (HelmholtzEOSMixtureBackend &HEOS, double input_value, sstype_enum input_type, const std::vector< CoolPropDbl > &z)
 
double CoolProp::SaturationSolvers::saturation_Wilson (HelmholtzEOSMixtureBackend &HEOS, double beta, double input_value, sstype_enum input_type, const std::vector< CoolPropDbl > &z, double guess)