CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
WilsonK_resid Class Reference
Inheritance diagram for WilsonK_resid:
FuncWrapper1D

Public Member Functions

 WilsonK_resid (Mixture *Mix, double beta, double p, std::vector< double > const &z)
 
double call (double T)
 
- Public Member Functions inherited from FuncWrapper1D
 FuncWrapper1D ()
 
virtual ~FuncWrapper1D ()
 
virtual double deriv (double)
 

Public Attributes

double p
 
double beta
 
const std::vector< double > * z
 
std::vector< double > K
 
MixtureMix
 

Detailed Description

A wrapper function around the residual to find the initial guess for the bubble point temperature

\[ r = \sum_i \frac{z_i(K_i-1)}{1-beta+beta*K_i} \]

Definition at line 1308 of file Mixtures.cpp.

Constructor & Destructor Documentation

WilsonK_resid::WilsonK_resid ( Mixture Mix,
double  beta,
double  p,
std::vector< double > const &  z 
)
inline

Definition at line 1316 of file Mixtures.cpp.

Member Function Documentation

double WilsonK_resid::call ( double  T)
inlinevirtual

Implements FuncWrapper1D.

Definition at line 1320 of file Mixtures.cpp.

Member Data Documentation

double WilsonK_resid::beta

Definition at line 1311 of file Mixtures.cpp.

std::vector<double> WilsonK_resid::K

Definition at line 1313 of file Mixtures.cpp.

Mixture* WilsonK_resid::Mix

Definition at line 1314 of file Mixtures.cpp.

double WilsonK_resid::p

Definition at line 1311 of file Mixtures.cpp.

const std::vector<double>* WilsonK_resid::z

Definition at line 1312 of file Mixtures.cpp.


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