CoolProp
|
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 \)
#include <ReducingFunctions.h>
Public Member Functions | |
ConstantReducingFunction (const double T_c, const double rhomolar_c) | |
ReducingFunction * | copy () |
void | set_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string ¶meter, double value) |
double | get_binary_interaction_double (const std::size_t i, const std::size_t j, const std::string ¶meter) const |
CoolPropDbl | Tr (const std::vector< CoolPropDbl > &x) const |
The reducing temperature. | |
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. | |
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. | |
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. | |
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. | |
CoolPropDbl | rhormolar (const std::vector< CoolPropDbl > &x) const |
The molar reducing density. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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 | |
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 \[ \left(\frac{\partial}{\partial x_j}\left(n\left(\frac{\partial \rho_r}{\partial n_i} \right)_{n_j}\right)\right)_{x_i} = \left(\frac{\partial^2\rho_r}{\partial x_j \partial x_i}\right)-\left(\frac{\partial \rho_r}{\partial x_j}\right)_{x_i}-\sum_{k=0}^{N-1}x_k\left(\frac{\partial^2\rho_r}{\partial x_j \partial x_k}\right) \] Gernert, JPCRD, 2014, A28 If \(x_N = 1-\sum x_i\): \[ \left(\frac{\partial}{\partial x_j}\left(n\left(\frac{\partial \rho_r}{\partial n_i} \right)_{n_j}\right)\right)_{x_i} = \left(\frac{\partial^2\rho_r}{\partial x_j \partial x_i}\right)-\left(\frac{\partial \rho_r}{\partial x_j}\right)_{x_i}-\sum_{k=0}^{N-2}x_k\left(\frac{\partial^2\rho_r}{\partial x_j \partial x_k}\right) \] . | |
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< ReducingFunction > | factory (const std::vector< CoolPropFluid *> &components, STLMatrix &F) |
A factory function to generate the required reducing function. | |
Protected Attributes inherited from CoolProp::ReducingFunction | |
std::size_t | N |