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
GERG2008ReducingFunction Class Reference

#include <Mixtures.h>

Inheritance diagram for GERG2008ReducingFunction:
ReducingFunction LemmonAirHFCReducingFunction

Public Member Functions

 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)
 
Set the coefficients based on
reducing parameters loaded
from JSON 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...
 
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

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

The Reducing parameter model used by the GERG-2008 formulation to yield the reducing parameters \( \bar\rho_r \) and \( T_r \) and derivatives thereof

Definition at line 62 of file Mixtures.h.

Constructor & Destructor Documentation

GERG2008ReducingFunction::GERG2008ReducingFunction ( std::vector< Fluid * >  pFluids,
STLMatrix  beta_v,
STLMatrix  gamma_v,
STLMatrix  beta_T,
STLMatrix  gamma_T 
)
inline

Definition at line 73 of file Mixtures.h.

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

Definition at line 82 of file Mixtures.h.

Default destructor GERG2008ReducingFunction::~GERG2008ReducingFunction ( )
inline

Definition at line 103 of file Mixtures.h.

Member Function Documentation

double GERG2008ReducingFunction::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 
)

Definition at line 1716 of file Mixtures.cpp.

double GERG2008ReducingFunction::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 
)

Definition at line 1720 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2fYijdxidxj ( const std::vector< double > &  x,
int  i,
int  k,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1739 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2fYikdxi2__constxk ( const std::vector< double > &  x,
int  i,
int  k,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1729 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2fYkidxi2__constxk ( const std::vector< double > &  x,
int  k,
int  i,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1734 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2rhorbardxi2__constxj ( const std::vector< double > &  x,
int  i 
)
virtual

Implements ReducingFunction.

Definition at line 1675 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2rhorbardxidxj ( const std::vector< double > &  x,
int  i,
int  j 
)
virtual

Implements ReducingFunction.

Definition at line 1681 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2Trdxi2__constxj ( const std::vector< double > &  x,
int  i 
)
virtual

Implements ReducingFunction.

Definition at line 1603 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2Trdxidxj ( const std::vector< double > &  x,
int  i,
int  j 
)
virtual

Implements ReducingFunction.

Definition at line 1617 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2vrbardxi2__constxj ( const std::vector< double > &  x,
int  i 
)

Definition at line 1660 of file Mixtures.cpp.

double GERG2008ReducingFunction::d2vrbardxidxj ( const std::vector< double > &  x,
int  i,
int  j 
)

Definition at line 1645 of file Mixtures.cpp.

double GERG2008ReducingFunction::dfYikdxi__constxk ( const std::vector< double > &  x,
int  i,
int  k,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1711 of file Mixtures.cpp.

double GERG2008ReducingFunction::dfYkidxi__constxk ( const std::vector< double > &  x,
int  k,
int  i,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1706 of file Mixtures.cpp.

double GERG2008ReducingFunction::drhorbardxi__constxj ( const std::vector< double > &  x,
int  i 
)
virtual

Derivative of the molar reducing density with respect to component i mole fraction.

Implements ReducingFunction.

Definition at line 1656 of file Mixtures.cpp.

double GERG2008ReducingFunction::dTrdxi__constxj ( const std::vector< double > &  x,
int  i 
)
virtual

The derivative of reduced temperature with respect to component i mole fraction.

Implements ReducingFunction.

Definition at line 1588 of file Mixtures.cpp.

double GERG2008ReducingFunction::dvrbardxi__constxj ( const std::vector< double > &  x,
int  i 
)

Definition at line 1629 of file Mixtures.cpp.

double GERG2008ReducingFunction::f_Y_ij ( const std::vector< double > &  x,
int  i,
int  j,
std::vector< std::vector< double > > *  beta 
)

Definition at line 1724 of file Mixtures.cpp.

double GERG2008ReducingFunction::rhorbar ( const std::vector< double > &  x)
virtual

The molar reducing density.

Implements ReducingFunction.

Definition at line 1689 of file Mixtures.cpp.

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

Set the coefficients based on reducing parameters loaded from JSON.

Implements ReducingFunction.

Reimplemented in LemmonAirHFCReducingFunction.

Definition at line 1746 of file Mixtures.cpp.

double GERG2008ReducingFunction::Tr ( const std::vector< double > &  x)
virtual

The reduced temperature.

Implements ReducingFunction.

Definition at line 1570 of file Mixtures.cpp.

Member Data Documentation

STLMatrix GERG2008ReducingFunction::beta_T
protected

\( \beta_{T,ij} \) from GERG-2008

Definition at line 69 of file Mixtures.h.

STLMatrix GERG2008ReducingFunction::beta_v
protected

\( \beta_{v,ij} \) from GERG-2008

Definition at line 67 of file Mixtures.h.

STLMatrix GERG2008ReducingFunction::gamma_T
protected

\( \gamma_{T,ij} \) from GERG-2008

Definition at line 70 of file Mixtures.h.

STLMatrix GERG2008ReducingFunction::gamma_v
protected

\( \gamma_{v,ij} \) from GERG-2008

Definition at line 68 of file Mixtures.h.

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

List of pointers to fluids.

Definition at line 71 of file Mixtures.h.

STLMatrix GERG2008ReducingFunction::T_c
protected

Definition at line 66 of file Mixtures.h.

STLMatrix GERG2008ReducingFunction::v_c
protected

Definition at line 65 of file Mixtures.h.


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