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 | Protected Attributes | List of all members
LemmonAirHFCReducingFunction Class Reference

#include <Mixtures.h>

Inheritance diagram for LemmonAirHFCReducingFunction:
GERG2008ReducingFunction ReducingFunction

Public Member Functions

 LemmonAirHFCReducingFunction (std::vector< Fluid * > pFluids)
 
void set_coeffs_from_map (int i, int j, std::map< std::string, double >)
 Set the coefficients based on reducing parameters loaded from JSON. More...
 
- Public Member Functions inherited from GERG2008ReducingFunction
 GERG2008ReducingFunction (std::vector< Fluid * > pFluids, STLMatrix beta_v, STLMatrix gamma_v, STLMatrix beta_T, STLMatrix gamma_T)
 
 GERG2008ReducingFunction (std::vector< Fluid * > pFluids)
 
Default destructor ~GERG2008ReducingFunction ()
 
The reduced temperature double Tr (const std::vector< double > &x)
 The reduced temperature. More...
 
The derivative of reduced
temperature with respect to
component i mole fraction
double 
dTrdxi__constxj (const std::vector< double > &x, int i)
 The derivative of reduced temperature with respect to component i mole fraction. More...
 
The molar reducing density double rhorbar (const std::vector< double > &x)
 The molar reducing density. More...
 
Derivative of the molar
reducing density with respect
to component i mole fraction
double 
drhorbardxi__constxj (const std::vector< double > &x, int i)
 Derivative of the molar reducing density with respect to component i mole fraction. More...
 
double dvrbardxi__constxj (const std::vector< double > &x, int i)
 
double d2vrbardxi2__constxj (const std::vector< double > &x, int i)
 
double d2rhorbardxi2__constxj (const std::vector< double > &x, int i)
 
double d2vrbardxidxj (const std::vector< double > &x, int i, int j)
 
double d2rhorbardxidxj (const std::vector< double > &x, int i, int j)
 
double d2Trdxi2__constxj (const std::vector< double > &x, int i)
 
double d2Trdxidxj (const std::vector< double > &x, int i, int j)
 
double c_Y_ij (int i, int j, std::vector< std::vector< double > > *beta, std::vector< std::vector< double > > *gamma, std::vector< std::vector< double > > *Y_c)
 
double c_Y_ji (int j, int i, std::vector< std::vector< double > > *beta, std::vector< std::vector< double > > *gamma, std::vector< std::vector< double > > *Y_c)
 
double f_Y_ij (const std::vector< double > &x, int i, int j, std::vector< std::vector< double > > *beta)
 
double dfYkidxi__constxk (const std::vector< double > &x, int k, int i, std::vector< std::vector< double > > *beta)
 
double dfYikdxi__constxk (const std::vector< double > &x, int i, int k, std::vector< std::vector< double > > *beta)
 
double d2fYkidxi2__constxk (const std::vector< double > &x, int k, int i, std::vector< std::vector< double > > *beta)
 
double d2fYikdxi2__constxk (const std::vector< double > &x, int i, int k, std::vector< std::vector< double > > *beta)
 
double d2fYijdxidxj (const std::vector< double > &x, int i, int k, std::vector< std::vector< double > > *beta)
 
- Public Member Functions inherited from ReducingFunction
 ReducingFunction ()
 
virtual ~ReducingFunction ()
 
double d_ndTrdni_dxj__constxi (const std::vector< double > &x, int i, int j)
 
double d_ndrhorbardni_dxj__constxi (const std::vector< double > &x, int i, int j)
 
double ndrhorbardni__constnj (const std::vector< double > &x, int i)
 
double ndTrdni__constnj (const std::vector< double > &x, int i)
 

Protected Attributes

std::vector< Fluid * > pFluids
 List of pointers to fluids. More...
 
- Protected Attributes inherited from GERG2008ReducingFunction
STLMatrix v_c
 
STLMatrix T_c
 
STLMatrix beta_v
 \( \beta_{v,ij} \) from GERG-2008 More...
 
STLMatrix gamma_v
 \( \gamma_{v,ij} \) from GERG-2008 More...
 
STLMatrix beta_T
 \( \beta_{T,ij} \) from GERG-2008 More...
 
STLMatrix gamma_T
 \( \gamma_{T,ij} \) from GERG-2008 More...
 
std::vector< Fluid * > pFluids
 List of pointers to fluids. More...
 
- Protected Attributes inherited from ReducingFunction
unsigned int N
 

Detailed Description

From Lemmon, JPCRD, 2000 for the properties of Dry Air, and also from Lemmon, JPCRD, 2004 for the properties of R404A, R410A, etc.

\[ \rho_r(\bar x) = \left[ \sum_{i=1}^m\frac{x_i}{\rho_{c_i}}+\sum_{i=1}^{m-1}\sum_{j=i+1}^{m}x_ix_j\zeta_{ij}\right]^{-1} \]

\[ T_r(\bar x) = \sum_{i=1}^mx_iT_{c_i}+\sum_{i=1}^{m-1}\sum_{j=i+1}^mx_ix_j\xi_{ij} \]

These can be converted to the form of GERG by the following equations:

\[ \beta_T = 1\ \ \ \ \beta_v = 1 \]

and

\[ \boxed{\gamma_T = \dfrac{T_{c0}+T_{c1}+\xi_{01}}{2\sqrt{T_{c0}T_{c1}}}} \]

and

\[ \boxed{\gamma_v = \dfrac{v_{c0}+v_{c1}+\zeta_{01}}{\frac{1}{4}\left(\frac{1}{\rho_{c,i}^{1/3}}+\frac{1}{\rho_{c,j}^{1/3}}\right)^{3}}} \]

Definition at line 156 of file Mixtures.h.

Constructor & Destructor Documentation

LemmonAirHFCReducingFunction::LemmonAirHFCReducingFunction ( std::vector< Fluid * >  pFluids)
inline

Definition at line 161 of file Mixtures.h.

Member Function Documentation

void LemmonAirHFCReducingFunction::set_coeffs_from_map ( int  i,
int  j,
std::map< std::string, double >  m 
)
virtual

Set the coefficients based on reducing parameters loaded from JSON.

Reimplemented from GERG2008ReducingFunction.

Definition at line 2062 of file Mixtures.cpp.

Member Data Documentation

std::vector<Fluid *> LemmonAirHFCReducingFunction::pFluids
protected

List of pointers to fluids.

Definition at line 159 of file Mixtures.h.


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