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

Detailed Description

A constant reducing function that does not vary with composition. Think for instance the reducing function for the cubic EOS.

Yields the reducing parameters \( \rho_r \) and \( T_r \)

Definition at line 546 of file ReducingFunctions.h.

#include <ReducingFunctions.h>

Inheritance diagram for CoolProp::ConstantReducingFunction:
CoolProp::ReducingFunction

Public Member Functions

 ConstantReducingFunction (const double T_c, const double rhomolar_c)
 
ReducingFunctioncopy ()
 
void set_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string &parameter, double value)
 
double get_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string &parameter) const
 
CoolPropDbl Tr (const std::vector< CoolPropDbl > &x) const
 The reducing temperature. More...
 
CoolPropDbl dTrdxi__constxj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 The derivative of reducing temperature with respect to component i mole fraction. More...
 
CoolPropDbl d2Trdxi2__constxj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 The second derivative of reducing temperature with respect to component i mole fraction. More...
 
CoolPropDbl d2Trdxidxj (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 The second derivative of reducing temperature with respect to component i and j mole fractions. More...
 
CoolPropDbl d3Trdxidxjdxk (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 The third derivative of reducing temperature with respect to component i, j and k mole fractions. More...
 
CoolPropDbl rhormolar (const std::vector< CoolPropDbl > &x) const
 The molar reducing density. More...
 
CoolPropDbl drhormolardxi__constxj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 Derivative of the molar reducing density with respect to component i mole fraction. More...
 
CoolPropDbl d2rhormolardxi2__constxj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 Derivative of the molar reducing density with respect to component i mole fraction. More...
 
CoolPropDbl d2rhormolardxidxj (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 Derivative of the molar reducing density with respect to component i and j mole fractions. More...
 
CoolPropDbl d3rhormolardxidxjdxk (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 Derivative of the molar reducing density with respect to component i, j, and k mole fractions. More...
 
CoolPropDbl dTr_dgammaT (const std::vector< CoolPropDbl > &x) const
 
CoolPropDbl dTr_dbetaT (const std::vector< CoolPropDbl > &x) const
 
CoolPropDbl drhormolar_dgammaV (const std::vector< CoolPropDbl > &x) const
 
CoolPropDbl drhormolar_dbetaV (const std::vector< CoolPropDbl > &x) const
 
CoolPropDbl d2Tr_dxidgammaT (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
CoolPropDbl d2Tr_dxidbetaT (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
CoolPropDbl d2rhormolar_dxidgammaV (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
CoolPropDbl d2rhormolar_dxidbetaV (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl PSI_rho (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 Note: this one is one, not zero. More...
 
virtual CoolPropDbl d_PSI_rho_dxj (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl d2_PSI_rho_dxj_dxk (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl PSI_T (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl d_PSI_T_dxj (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl d2_PSI_T_dxj_dxk (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 
- Public Member Functions inherited from CoolProp::ReducingFunction
 ReducingFunction ()
 
virtual ~ReducingFunction ()
 
virtual CoolPropDbl d_ndTrdni_dxj__constxi (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 GERG 2004 Monograph equation 7.56: More...
 
virtual CoolPropDbl d2_ndTrdni_dxj_dxk__constxi (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl d_ndrhorbardni_dxj__constxi (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag) const
 GERG 2004 Monograph equation 7.55: If the \(x_i\) are all independent. More...
 
virtual CoolPropDbl d2_ndrhorbardni_dxj_dxk__constxi (const std::vector< CoolPropDbl > &x, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl ndrhorbardni__constnj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 
virtual CoolPropDbl ndTrdni__constnj (const std::vector< CoolPropDbl > &x, std::size_t i, x_N_dependency_flag xN_flag) const
 

Additional Inherited Members

- Static Public Member Functions inherited from CoolProp::ReducingFunction
static shared_ptr< ReducingFunctionfactory (const std::vector< CoolPropFluid * > &components, STLMatrix &F)
 A factory function to generate the required reducing function. More...
 
- Protected Attributes inherited from CoolProp::ReducingFunction
std::size_t N
 

Constructor & Destructor Documentation

◆ ConstantReducingFunction()

CoolProp::ConstantReducingFunction::ConstantReducingFunction ( const double  T_c,
const double  rhomolar_c 
)
inline

Definition at line 553 of file ReducingFunctions.h.

Member Function Documentation

◆ copy()

ReducingFunction* CoolProp::ConstantReducingFunction::copy ( )
inlinevirtual

Implements CoolProp::ReducingFunction.

Definition at line 555 of file ReducingFunctions.h.

◆ d2_PSI_rho_dxj_dxk()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::d2_PSI_rho_dxj_dxk ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
std::size_t  k,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 649 of file ReducingFunctions.h.

◆ d2_PSI_T_dxj_dxk()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::d2_PSI_T_dxj_dxk ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
std::size_t  k,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 659 of file ReducingFunctions.h.

◆ d2rhormolar_dxidbetaV()

CoolPropDbl CoolProp::ConstantReducingFunction::d2rhormolar_dxidbetaV ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 631 of file ReducingFunctions.h.

◆ d2rhormolar_dxidgammaV()

CoolPropDbl CoolProp::ConstantReducingFunction::d2rhormolar_dxidgammaV ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 628 of file ReducingFunctions.h.

◆ d2rhormolardxi2__constxj()

CoolPropDbl CoolProp::ConstantReducingFunction::d2rhormolardxi2__constxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

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

Implements CoolProp::ReducingFunction.

Definition at line 596 of file ReducingFunctions.h.

◆ d2rhormolardxidxj()

CoolPropDbl CoolProp::ConstantReducingFunction::d2rhormolardxidxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Derivative of the molar reducing density with respect to component i and j mole fractions.

Implements CoolProp::ReducingFunction.

Definition at line 600 of file ReducingFunctions.h.

◆ d2Tr_dxidbetaT()

CoolPropDbl CoolProp::ConstantReducingFunction::d2Tr_dxidbetaT ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 625 of file ReducingFunctions.h.

◆ d2Tr_dxidgammaT()

CoolPropDbl CoolProp::ConstantReducingFunction::d2Tr_dxidgammaT ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 622 of file ReducingFunctions.h.

◆ d2Trdxi2__constxj()

CoolPropDbl CoolProp::ConstantReducingFunction::d2Trdxi2__constxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

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

Implements CoolProp::ReducingFunction.

Definition at line 575 of file ReducingFunctions.h.

◆ d2Trdxidxj()

CoolPropDbl CoolProp::ConstantReducingFunction::d2Trdxidxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

The second derivative of reducing temperature with respect to component i and j mole fractions.

Implements CoolProp::ReducingFunction.

Definition at line 579 of file ReducingFunctions.h.

◆ d3rhormolardxidxjdxk()

CoolPropDbl CoolProp::ConstantReducingFunction::d3rhormolardxidxjdxk ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
std::size_t  k,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Derivative of the molar reducing density with respect to component i, j, and k mole fractions.

Implements CoolProp::ReducingFunction.

Definition at line 604 of file ReducingFunctions.h.

◆ d3Trdxidxjdxk()

CoolPropDbl CoolProp::ConstantReducingFunction::d3Trdxidxjdxk ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
std::size_t  k,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

The third derivative of reducing temperature with respect to component i, j and k mole fractions.

Implements CoolProp::ReducingFunction.

Definition at line 583 of file ReducingFunctions.h.

◆ d_PSI_rho_dxj()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::d_PSI_rho_dxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 646 of file ReducingFunctions.h.

◆ d_PSI_T_dxj()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::d_PSI_T_dxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 656 of file ReducingFunctions.h.

◆ drhormolar_dbetaV()

CoolPropDbl CoolProp::ConstantReducingFunction::drhormolar_dbetaV ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 618 of file ReducingFunctions.h.

◆ drhormolar_dgammaV()

CoolPropDbl CoolProp::ConstantReducingFunction::drhormolar_dgammaV ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 615 of file ReducingFunctions.h.

◆ drhormolardxi__constxj()

CoolPropDbl CoolProp::ConstantReducingFunction::drhormolardxi__constxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

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

Implements CoolProp::ReducingFunction.

Definition at line 592 of file ReducingFunctions.h.

◆ dTr_dbetaT()

CoolPropDbl CoolProp::ConstantReducingFunction::dTr_dbetaT ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 612 of file ReducingFunctions.h.

◆ dTr_dgammaT()

CoolPropDbl CoolProp::ConstantReducingFunction::dTr_dgammaT ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 609 of file ReducingFunctions.h.

◆ dTrdxi__constxj()

CoolPropDbl CoolProp::ConstantReducingFunction::dTrdxi__constxj ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

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

Implements CoolProp::ReducingFunction.

Definition at line 571 of file ReducingFunctions.h.

◆ get_binary_interaction_double()

double CoolProp::ConstantReducingFunction::get_binary_interaction_double ( const std::size_t  i,
const std::size_t  j,
const std::string &  parameter 
) const
inlinevirtual

Implements CoolProp::ReducingFunction.

Definition at line 562 of file ReducingFunctions.h.

◆ PSI_rho()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::PSI_rho ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Note: this one is one, not zero.

Reimplemented from CoolProp::ReducingFunction.

Definition at line 643 of file ReducingFunctions.h.

◆ PSI_T()

virtual CoolPropDbl CoolProp::ConstantReducingFunction::PSI_T ( const std::vector< CoolPropDbl > &  x,
std::size_t  i,
x_N_dependency_flag  xN_flag 
) const
inlinevirtual

Reimplemented from CoolProp::ReducingFunction.

Definition at line 653 of file ReducingFunctions.h.

◆ rhormolar()

CoolPropDbl CoolProp::ConstantReducingFunction::rhormolar ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

The molar reducing density.

Implements CoolProp::ReducingFunction.

Definition at line 588 of file ReducingFunctions.h.

◆ set_binary_interaction_double()

void CoolProp::ConstantReducingFunction::set_binary_interaction_double ( const std::size_t  i,
const std::size_t  j,
const std::string &  parameter,
double  value 
)
inlinevirtual

Implements CoolProp::ReducingFunction.

Definition at line 559 of file ReducingFunctions.h.

◆ Tr()

CoolPropDbl CoolProp::ConstantReducingFunction::Tr ( const std::vector< CoolPropDbl > &  x) const
inlinevirtual

The reducing temperature.

Implements CoolProp::ReducingFunction.

Definition at line 567 of file ReducingFunctions.h.


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