CoolProp
Static Public Member Functions | List of all members
CoolProp::MixtureDerivatives Class Reference

Detailed Description

This class is a friend class of HelmholtzEOSMixtureBackend, therefore the static methods contained in it have access to the private and protected variables in the HelmholtzEOSMixtureBackend instance.

In this way the derivative routines can be kept in their own separate file and not pollute the HelmholtzEOSMixtureBackend namespace

#include <MixtureDerivatives.h>

Static Public Member Functions

static CoolPropDbl ndpdV__constT_n (HelmholtzEOSMixtureBackend &HEOS)
 GERG 2004 Monograph equation 7.62. More...
 
static CoolPropDbl dpdT__constV_n (HelmholtzEOSMixtureBackend &HEOS)
 GERG 2004 Monograph equation 7.61. More...
 
static CoolPropDbl dpdrho__constT_n (HelmholtzEOSMixtureBackend &HEOS)
 
static CoolPropDbl ndpdni__constT_V_nj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph equation 7.63. More...
 
static CoolPropDbl partial_molar_volume (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 monograph Eqn. More...
 
static CoolPropDbl fugacity_i (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Fugacity of the i-th component. More...
 
static CoolPropDbl ln_fugacity_coefficient (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Natural logarithm of the fugacity coefficient. More...
 
static CoolPropDbl dln_fugacity_i_dT__constrho_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Derivative of the natural logarithm of the fugacity with respect to T. More...
 
static CoolPropDbl dln_fugacity_i_drho__constT_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Derivative of the natural logarithm of the fugacity with respect to T. More...
 
static CoolPropDbl dln_fugacity_coefficient_dT__constp_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph Eqn. More...
 
static CoolPropDbl dln_fugacity_i_dT__constp_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dln_fugacity_i_dp__constT_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dln_fugacity_dxj__constT_p_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dln_fugacity_i_dtau__constdelta_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dln_fugacity_i_ddelta__consttau_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dln_fugacity_dxj__constT_rho_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl ndln_fugacity_i_dnj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndln_fugacity_i_dnj_dtau__constdelta_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndln_fugacity_i_dnj_dtau2__constdelta_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndln_fugacity_i_dnj_ddelta_dtau__constx (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndln_fugacity_i_dnj_ddelta2__consttau_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndln_fugacity_i_dnj_ddelta__consttau_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndln_fugacity_i_dnj_ddxk__consttau_delta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndln_fugacity_i_dnj_dxk_dTau__constdelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndln_fugacity_i_dnj_dxk_dDelta__consttau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl nd_ndln_fugacity_i_dnj_dnk__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl nAij (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl n2Aijk (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nAij_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nAij_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nAij_dX (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag, parameters WRT)
 
static CoolPropDbl d_n2Aijk_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_n2Aijk_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_n2Aijk_dX (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag, parameters WRT)
 
static Eigen::MatrixXd Lstar (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag)
 
static Eigen::MatrixXd dLstar_dX (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag, parameters WRT)
 
static Eigen::MatrixXd d2Lstar_dX2 (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag, parameters WRT1, parameters WRT2)
 
static Eigen::MatrixXd Mstar (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag, Eigen::MatrixXd &L)
 
static Eigen::MatrixXd dMstar_dX (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag, parameters WRT, Eigen::MatrixXd &L, Eigen::MatrixXd &dL_dX)
 
static CoolPropDbl ndalphar_dni__constT_V_nj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Table B4, Kunz, JCED, 2012 for the original term and the subsequent substitutions. More...
 
static CoolPropDbl dnalphar_dni__constT_V_nj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG Equation 7.42.
 
static CoolPropDbl dln_fugacity_coefficient_dp__constT_n (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph Eqn. More...
 
static CoolPropDbl ndln_fugacity_coefficient_dnj__constT_p (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph Equation 7.31. More...
 
static CoolPropDbl dln_fugacity_coefficient_dxj__constT_p_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.115. More...
 
static CoolPropDbl dpdxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.130. More...
 
static CoolPropDbl d2nalphar_dxj_dni__constT_V (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, std::size_t i, x_N_dependency_flag xN_flag)
 Gernert Equation 3.117. More...
 
static CoolPropDbl dalphar_dxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.119 Catch test provided.
 
static CoolPropDbl d_ndalphardni_dxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.118 Catch test provided.
 
static CoolPropDbl d_dalpharddelta_dxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.134 Catch test provided.
 
static CoolPropDbl ddelta_dxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.121 Catch test provided.
 
static CoolPropDbl dtau_dxj__constT_V_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t j, x_N_dependency_flag xN_flag)
 Gernert Equation 3.122 Catch test provided.
 
static CoolPropDbl d2nalphar_dni_dT (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph, equations 7.44 and 7.51. More...
 
static CoolPropDbl d_ndalphardni_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph Equation 7.51 and Table B4, Kunz, JCED, 2012. More...
 
static CoolPropDbl d2_ndalphardni_dTau2 (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 \(\tau\) derivartive of GERG 2004 Monograph Equation 7.51 More...
 
static CoolPropDbl d3_ndalphardni_dTau3 (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndalphardni_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph Equation 7.50 and Table B4, Kunz, JCED, 2012. More...
 
static CoolPropDbl d2_ndalphardni_dDelta2 (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 \(\delta\) derivative of GERG 2004 Monograph Equation 7.50 More...
 
static CoolPropDbl d3_ndalphardni_dDelta3 (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndalphardni_dDelta_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 \(\tau\) derivative of GERG 2004 Monograph Equation 7.50 More...
 
static CoolPropDbl d3_ndalphardni_dDelta2_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3_ndalphardni_dDelta_dTau2 (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndalphardni_dxj_dDelta__consttau_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 \(x_j\) derivative of GERG 2004 Monograph Equation 7.50 More...
 
static CoolPropDbl d2_ndalphardni_dxj_dTau__constdelta_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 \(x_j\) derivative of GERG 2004 Monograph Equation 7.51 More...
 
static CoolPropDbl d3_ndalphardni_dxj_dTau2__constdelta_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3_ndalphardni_dxj_dDelta2__consttau_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3_ndalphardni_dxj_dDelta_dTau__constxi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl nd2nalphardnidnj__constT_V (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph equation 7.41. More...
 
static CoolPropDbl nd_ndalphardni_dnj__constT_V (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nd_ndalphardni_dnj_dTau__constdelta_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nd_ndalphardni_dnj_dTau2__constdelta_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nd_ndalphardni_dnj_dDelta2__consttau_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nd_ndalphardni_dnj_dDelta_dTau__constx (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nd_ndalphardni_dnj_dDelta__consttau_x (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nd_ndalphardni_dnj_dxk__consttau_delta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nd_ndalphardni_dnj_dxk_dTau__constdelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nd_ndalphardni_dnj_dxk_dDelta__consttau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl nddeltadni__constT_V_nj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph equation 7.48. More...
 
static CoolPropDbl d_nddeltadni_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_nddeltadni_dxj__constdelta_tau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_nddeltadni_dxj_dDelta__consttau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl ndtaudni__constT_V_nj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph equation 7.49. More...
 
static CoolPropDbl d_ndtaudni_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndtaudni_dxj__constdelta_tau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndtaudni_dxj_dTau__constdelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndalphardni_dxj__constdelta_tau_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 GERG 2004 Monograph equation 7.52. More...
 
static CoolPropDbl d2_ndalphardni_dxj_dxk__constdelta_tau_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3_ndalphardni_dxj_dxk_dTau__constdelta_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3_ndalphardni_dxj_dxk_dDelta__consttau_xi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, x_N_dependency_flag xN_flag)
 
static CoolPropDbl dalpha0_dxi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alpha0_dxi_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alpha0_dxi_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alpha0dxidxj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 
static CoolPropDbl psi (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the Helmholtz energy density \(\psi = \rho a\).
 
static CoolPropDbl dpsi_dDelta (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the first partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\delta\).
 
static CoolPropDbl dpsi_dTau (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the first partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\tau\).
 
static CoolPropDbl dpsir_dTau (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the first partial of residual Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(\tau\). More...
 
static CoolPropDbl dpsi_dxi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Return the first partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(x_i\).
 
static CoolPropDbl dpsir_dxi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Return the first partial of Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(x_i\).
 
static CoolPropDbl d_rhorTr_dxi (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 Return the first partial of the product \(\rho_{\rm r}T_{\rm r}\) with respect to \(x_i\).
 
static CoolPropDbl d2_rhorTr_dxidxj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag)
 Return the second partial of the product \(\rho_{\rm r}T_{\rm r}\) with respect to \(x_i\) and \(x_j\).
 
static CoolPropDbl d2psi_dDelta2 (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\delta\).
 
static CoolPropDbl d2psi_dDelta_dTau (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second cross partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\delta\) and \(\tau\).
 
static CoolPropDbl d2psir_dDelta_dTau (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second cross partial of Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r} \) with respect to \(\delta\) and \(\tau\).
 
static CoolPropDbl d2psi_dTau2 (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\tau\).
 
static CoolPropDbl d2psir_dTau2 (HelmholtzEOSMixtureBackend &HEOS, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of residual Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(\tau\).
 
static CoolPropDbl d2psi_dxi_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\tau\) and \(x_i\).
 
static CoolPropDbl d2psir_dxi_dTau (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of residual Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(\tau\) and \(x_i\).
 
static CoolPropDbl d2psi_dxi_dDelta (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\delta\) and \(x_i\).
 
static CoolPropDbl d2psi_dxi_dxj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(x_i\) and \(x_j\).
 
static CoolPropDbl d2psir_dxi_dxj (HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 Return the second partial of residual Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(x_i\) and \(x_j\).
 
static CoolPropDbl PSI_rho (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 


Shim functions for testing of derivatives




(these are needed because this class is a friend of HelmholtzEOSMixtureBackend and therefore has access to class private variables)

 
static CoolPropDbl d_PSI_rho_dxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_PSI_rho_dxj_dxk (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl PSI_T (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_PSI_T_dxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_PSI_T_dxj_dxk (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl alpha0 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl alphar (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalphar_dxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alphar_dxi_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphar_dxi_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dTau3 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alphar_dxi_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphar_dxi_dDelta2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dDelta3 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphar_dxi_dDelta_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dDelta2_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dDelta_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alphardxidxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dxj_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dxj_dDelta2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d4alphar_dxi_dxj_dDelta_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphar_dxi_dxj_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphar_dxi_dxj_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3alphardxidxjdxk (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl tau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl Tr (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl dTrdxi__constxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2Trdxi2__constxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2Trdxidxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3Trdxidxjdxk (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl ndTrdni__constnj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndTrdni_dxj__constxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndTrdni_dxj_dxk__constxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl dTr_dgammaT (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl dTr_dbetaT (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2Tr_dxidgammaT (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2Tr_dxidbetaT (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl delta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl rhormolar (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl drhormolardxi__constxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2rhormolardxidxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d3rhormolardxidxjdxk (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl drhormolar_dgammaV (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl drhormolar_dbetaV (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2rhormolar_dxidgammaV (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2rhormolar_dxidbetaV (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, x_N_dependency_flag xN_flag)
 
static CoolPropDbl ndrhorbardni__constnj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d_ndrhorbardni_dxj__constxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2_ndrhorbardni_dxj_dxk__constxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, std::size_t k, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl p (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl dalpha0_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alpha0_dDelta2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalpha0_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alpha0_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalphar_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alphar_dDelta2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alphar_dDelta_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalphar_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alphar_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl alpha (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalpha_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalpha_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alpha_dDelta2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alpha_dDelta_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl d2alpha_dTau2 (CoolProp::HelmholtzEOSMixtureBackend &HEOS, CoolProp::x_N_dependency_flag xN_flag=XN_INDEPENDENT)
 
static CoolPropDbl dalpha_dxi (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alpha_dxi_dDelta (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alpha_dxi_dTau (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl d2alphadxidxj (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, std::size_t j, CoolProp::x_N_dependency_flag xN_flag)
 
static CoolPropDbl ln_fugacity (CoolProp::HelmholtzEOSMixtureBackend &HEOS, std::size_t i, CoolProp::x_N_dependency_flag xN_flag)
 

Member Function Documentation

§ d2_ndalphardni_dDelta2()

CoolPropDbl CoolProp::MixtureDerivatives::d2_ndalphardni_dDelta2 ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

\(\delta\) derivative of GERG 2004 Monograph Equation 7.50

The derivative term

\[ \begin{array}{ccl} \left(\dfrac{\partial^2 }{\partial \delta^2} \left( n\left(\dfrac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right)\right)_{\tau,\bar x} &=& (2\alpha_{\delta\delta}^r+\delta\alpha_{\delta\delta\delta}^r)\Psi_{\rho} +\tau\alpha^r_{\delta\delta\tau}\Psi_T+\alpha^r_{\delta\delta x_i}-\sum_{k=1}^{N}x_k\alpha^r_{\delta\delta x_k} \end{array} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2_ndalphardni_dDelta_dTau()

CoolPropDbl CoolProp::MixtureDerivatives::d2_ndalphardni_dDelta_dTau ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

\(\tau\) derivative of GERG 2004 Monograph Equation 7.50

The derivative term

\[ \begin{array}{ccl} \left(\dfrac{\partial^2 }{\partial \delta\partial \tau} \left( n\left(\dfrac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right)\right)_{\bar x} &=& (\alpha_{\delta\tau}^r+\delta\alpha_{\delta\delta\tau}^r)\Psi_{\rho} +(\tau\alpha^r_{\delta\tau\tau} + \alpha^r_{\delta\tau})\Psi_T +\alpha^r_{\delta\tau x_i}-\sum_{k=1}^{N}x_k\alpha^r_{\delta\tau x_k} \end{array} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2_ndalphardni_dTau2()

CoolPropDbl CoolProp::MixtureDerivatives::d2_ndalphardni_dTau2 ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

\(\tau\) derivartive of GERG 2004 Monograph Equation 7.51

The derivative term

\[ \dfrac{\partial^2 }{\partial \tau^2} \left( n\left(\dfrac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right) = \delta \alpha^r_{\delta\tau\tau}\Psi_{\rho}+ (2\alpha^r_{\tau\tau}+\tau\alpha^r_{\tau\tau\tau})\Psi_T+\alpha^r_{x_i\tau\tau}-\sum_{k=1}^{N}x_k\alpha^r_{x_k\tau\tau} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2_ndalphardni_dxj_dDelta__consttau_xi()

CoolPropDbl CoolProp::MixtureDerivatives::d2_ndalphardni_dxj_dDelta__consttau_xi ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

\(x_j\) derivative of GERG 2004 Monograph Equation 7.50

The derivative term

\[ \begin{array}{ccl} \dfrac{\partial}{\partial x_j}\left(\dfrac{\partial }{\partial \delta} \left( n\left(\dfrac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right)_{\tau,\bar x}\right)_{\tau, \delta, x_i} &=& (\alpha_{\delta}^r+\delta\alpha_{\delta\delta}^r)\dfrac{\partial\Psi_{\rho}}{\partial x_j} + (\alpha_{\delta x_j}^r+\delta\alpha_{\delta\delta x_j}^r)\Psi_{\rho}\\ &+&\tau\alpha^r_{\delta\tau}\dfrac{\partial\Psi_{T}}{\partial x_j} + \tau\alpha^r_{\delta\tau x_j}\Psi_T\\ &+&\alpha^r_{\delta x_i x_j}-\sum_{k=1}^{N}\left[x_k\alpha^r_{\delta x_k x_j} + \dfrac{d x_k}{d x_j}\alpha^r_{\delta x_k}\right] \end{array} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2_ndalphardni_dxj_dTau__constdelta_xi()

CoolPropDbl CoolProp::MixtureDerivatives::d2_ndalphardni_dxj_dTau__constdelta_xi ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

\(x_j\) derivative of GERG 2004 Monograph Equation 7.51

The derivative term

\[ \begin{array}{ccl} \dfrac{\partial}{\partial x_j}\left(\dfrac{\partial }{\partial \tau} \left( n\left(\dfrac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right)\right)_{\tau,\delta,x_i} &=& \delta \alpha^r_{\delta\tau}\dfrac{\partial \Psi_{\rho}}{\partial x_j} + \delta \alpha^r_{\delta\tau x_j}\Psi_{\rho}\\ &+& (\tau \alpha^r_{\tau\tau}+\alpha^r_{\tau})\dfrac{\partial \Psi_T}{\partial x_j}+ \left(\tau \alpha^r_{\tau\tau x_j} +\alpha^r_{\tau x_j}\right)\Psi_T\\ &+&\alpha^r_{\tau x_i x_j}-\sum_{k=1}^{N}\left[x_k\alpha^r_{\tau x_k x_j} + \dfrac{d x_k}{d x_j}\alpha^r_{\tau x_k}\right] \end{array} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2nalphar_dni_dT()

CoolPropDbl CoolProp::MixtureDerivatives::d2nalphar_dni_dT ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph, equations 7.44 and 7.51.

The derivative term

\[ \left(\frac{\partial^2n\alpha^r}{\partial T\partial n_i} \right)_{V,n_j} = \left( \frac{\partial}{\partial T}\left(\frac{\partial n \alpha^r}{\partial n_i}\right)_{T,V,n_j} \right)_{V,\bar n} \]

\[ \left(\frac{\partial^2n\alpha^r}{\partial T\partial n_i} \right)_{V,n_j} = -\frac{\tau}{T}\left[\alpha_{\tau}^r +\left( \frac{\partial}{\partial \tau}\left(n\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\delta,\bar x}\right] \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d2nalphar_dxj_dni__constT_V()

static CoolPropDbl CoolProp::MixtureDerivatives::d2nalphar_dxj_dni__constT_V ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  j,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
inlinestatic

Gernert Equation 3.117.

The derivative term

\[ \left(\frac{\partial^2n\alpha^r}{\partial x_j\partial n_i} \right)_{T,V} = \left(\frac{\partial}{\partial x_j}\left(n\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_{j\neq i}}\right)\right)_{T,V,x_{k\neq j}} +\left(\frac{\partial \alpha^r}{\partial x_j}\right)_{T,V,x_{k\neq j}} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
jThe first index of interest
iThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d_ndalphardni_dDelta()

CoolPropDbl CoolProp::MixtureDerivatives::d_ndalphardni_dDelta ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph Equation 7.50 and Table B4, Kunz, JCED, 2012.

The derivative term

\begin{eqnarray*} \left(\frac{\partial }{\partial \delta} \left( n\left(\frac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right)\right)_{\tau,\bar x} &=& (\alpha_{\delta}^r+\delta\alpha_{\delta\delta}^r)\left[1-\frac{1}{\rho_r}\cdot n\left(\frac{\partial \rho_r}{\partial n_i}\right)_{n_j} \right] \\ &+&\tau\alpha^r_{\delta\tau}\frac{1}{T_r}\cdot n\left(\frac{\partial T_r}{\partial n_i}\right)_{n_j}\\ &+&\alpha^r_{\delta x_i}-\sum_{k=1}^{N}x_k\alpha^r_{\delta x_k} \end{eqnarray*}

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d_ndalphardni_dTau()

CoolPropDbl CoolProp::MixtureDerivatives::d_ndalphardni_dTau ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph Equation 7.51 and Table B4, Kunz, JCED, 2012.

The derivative term

\begin{eqnarray*} \frac{\partial }{\partial \tau} \left( n\left(\frac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \right) &=& \delta \alpha^r_{\delta\tau}\left[ 1-\frac{1}{\rho_r}\left[\left(\frac{\partial \rho_r}{\partial x_i}\right)_{x_j} - \sum_{k=1}^N x_k\left(\frac{\partial \rho_r}{\partial x_k}\right)_{x_j} \right]\right]\\ && +(\tau \alpha^r_{\tau\tau}+\alpha^r_{\tau})\frac{1}{T_r}\left[\left(\frac{\partial T_r}{\partial x_i}\right)_{x_j} - \sum_{k=1}^N x_k\left(\frac{\partial T_r}{\partial x_k}\right)_{x_j} \right]\\ && +\alpha^r_{x_i\tau}-\sum_{k=1}^{N}x_k\alpha^r_{x_k\tau} \end{eqnarray*}

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ d_ndalphardni_dxj__constdelta_tau_xi()

CoolPropDbl CoolProp::MixtureDerivatives::d_ndalphardni_dxj__constdelta_tau_xi ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph equation 7.52.

The derivative term

\begin{eqnarray*} \left( \frac{\partial}{\partial x_j}\left(n\left(\frac{\partial\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\delta,\tau,x_i} &=& \delta\alpha_{\delta x_j}^{r}\left[ 1-\frac{1}{\rho_r}\cdot n\left(\frac{\partial \rho_r}{\partial n_i}\right)_{n_j}\right] \\ &-& \delta\alpha_{\delta}^{r}\frac{1}{\rho_r}\left[ \left(\frac{\partial}{\partial x_j}\left(n\left(\frac{\partial \rho_r}{\partial n_i}\right)_{n_j}\right)\right)_{x_i}-\frac{1}{\rho_r}\left(\frac{\partial \rho_r}{\partial x_j}\right)_{x_i}\cdot n\left(\frac{\partial \rho_r}{\partial n_i}\right)_{n_j}\right] \\ &+& \tau\alpha_{\tau x_j}^r\frac{1}{T_r}\cdot n\left(\frac{\partial T_r}{\partial n_i}\right)_{n_j}\\ &+& \tau\alpha_{\tau}^{r}\frac{1}{T_r}\left[ \left(\frac{\partial}{\partial x_j}\left(n\left(\frac{\partial T_r}{\partial n_i}\right)_{n_j}\right)\right)_{x_i}-\frac{1}{T_r}\left(\frac{\partial T_r}{\partial x_j}\right)_{x_i}\cdot n\left(\frac{\partial T_r}{\partial n_i}\right)_{n_j}\right] \\ &+& \alpha_{x_ix_j}^r-\alpha_{x_j}^r-\sum_{m=1}^Nx_m\alpha_{x_jx_m}^r \end{eqnarray*}

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
jThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dln_fugacity_coefficient_dp__constT_n()

CoolPropDbl CoolProp::MixtureDerivatives::dln_fugacity_coefficient_dp__constT_n ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph Eqn.

7.30

The derivative term

\[ \left(\frac{\partial \ln \phi_i}{\partial p} \right)_{T,\bar n} = \frac{\hat v_i}{RT}-\frac{1}{p} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dln_fugacity_coefficient_dT__constp_n()

CoolPropDbl CoolProp::MixtureDerivatives::dln_fugacity_coefficient_dT__constp_n ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph Eqn.

7.29

The derivative term

\[ \left(\frac{\partial \ln \phi_i}{\partial T} \right)_{p,\bar n} = \left(\frac{\partial^2n\alpha^r}{\partial T\partial n_i} \right)_{V,n_j} + \frac{1}{T}-\frac{\hat v}{RT}\left(\frac{\partial p}{\partial T}\right)_{V,\bar n} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dln_fugacity_coefficient_dxj__constT_p_xi()

CoolPropDbl CoolProp::MixtureDerivatives::dln_fugacity_coefficient_dxj__constT_p_xi ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

Gernert Equation 3.115.

The derivative term

\[ \left(\frac{\partial \ln \phi_i}{\partial x_j}\right)_{T,p,x_{k\neq j}} = \left(\frac{\partial^2n\alpha^r}{\partial x_j \partial n_i} \right)_{T,V}+\frac{1}{RT}\frac{\left(\frac{\partial p}{\partial n_i}\right)_{T,V,n_{k\neq i}}\left(\frac{\partial p}{\partial x_j}\right)_{T,V,x_{k\neq j}}}{\left(\frac{\partial p}{\partial V}\right)_{T,\bar n}} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe first index of interest
jThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dln_fugacity_i_drho__constT_n()

CoolPropDbl CoolProp::MixtureDerivatives::dln_fugacity_i_drho__constT_n ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

Derivative of the natural logarithm of the fugacity with respect to T.

From Witzke, Eqn. 3.15

\[ \left(\frac{\partial \ln(f_i)}{\partial \rho} \right)_{T, x} = \frac{1}{\rho}\left(1+\delta\alpha^r_{\delta}+\delta n\left(\frac{\partial\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_j}}{\partial \delta}\right)_{\tau,\bar x} \right) \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dln_fugacity_i_dT__constrho_n()

CoolPropDbl CoolProp::MixtureDerivatives::dln_fugacity_i_dT__constrho_n ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

Derivative of the natural logarithm of the fugacity with respect to T.

From Witzke, Eqn. 3.14

\[ \left(\frac{\partial \ln(f_i)}{\partial T} \right)_{\rho,x} = -\frac{1}{T}\left(1-\tau\alpha^r_{\tau}-\tau n\left(\frac{\partial\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_j}}{\partial \tau}\right)_{\delta,\bar x} \right) \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dpdT__constV_n()

CoolPropDbl CoolProp::MixtureDerivatives::dpdT__constV_n ( HelmholtzEOSMixtureBackend HEOS)
static

GERG 2004 Monograph equation 7.61.

The derivative term

\[ \left(\frac{\partial p}{\partial T} \right)_{V,\bar n} = \rho R(1+\delta \alpha_{\delta}^r-\delta \tau \alpha^r_{\delta\tau}) \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used

§ dpdxj__constT_V_xi()

CoolPropDbl CoolProp::MixtureDerivatives::dpdxj__constT_V_xi ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

Gernert Equation 3.130.

The derivative term

\[ \left(\frac{\partial p}{\partial x_j} \right)_{T,V,x_{k\neq j}} = \rho RT\left(-\frac{1}{\rho_r}\left(\frac{\partial \rho_r}{\partial x_j}\right)_{x_{k\neq j}} \delta\alpha_{\delta}^r + \delta\left(\frac{\partial}{\partial x_j}\left(\left( \frac{\partial \alpha^r}{\partial \delta}\right)_{\tau,\bar x}\right)\right)_{T,V,x_{k\neq j}}\right) \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
jThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ dpsir_dTau()

CoolPropDbl CoolProp::MixtureDerivatives::dpsir_dTau ( HelmholtzEOSMixtureBackend HEOS,
x_N_dependency_flag  xN_flag = XN_INDEPENDENT 
)
static

Return the first partial of residual Helmholtz energy density \(\psi^{\rm r} = \rho a^{\rm r}\) with respect to \(\tau\).

Return the first partial of Helmholtz energy density \(\psi = \rho a\) with respect to \(\tau\).

§ fugacity_i()

CoolPropDbl CoolProp::MixtureDerivatives::fugacity_i ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

Fugacity of the i-th component.

Given by the equation

\[ f_i(\delta, \tau, \bar x) = x_i\rho R T \exp\left(\frac{\partial n\alpha^r}{\partial n_i}\right)_{T,V,n_{j \neq i}} \]

§ ln_fugacity_coefficient()

CoolPropDbl CoolProp::MixtureDerivatives::ln_fugacity_coefficient ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

Natural logarithm of the fugacity coefficient.

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ nd2nalphardnidnj__constT_V()

CoolPropDbl CoolProp::MixtureDerivatives::nd2nalphardnidnj__constT_V ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph equation 7.41.

The derivative term

\[ n\left(\frac{\partial^2n\alpha^r}{\partial n_i \partial n_j} \right)_{T,V} = n\left( \frac{\partial}{\partial n_j}\left(\frac{\partial n\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)_{T,V,n_i} \]

and GERG 2004 Monograph equation 7.46:

\[ n\left( \frac{\partial}{\partial n_j}\left(\frac{\partial n\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)_{T,V,n_i} = n\left( \frac{\partial \alpha^r}{\partial n_j}\right)_{T,V,n_i} + n\left( \frac{\partial}{\partial n_j}\left(n\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_j} \right) \right)_{T,V,n_i} \]

GERG 2004 Monograph equation 7.47:

\begin{eqnarray*} n\left( \frac{\partial}{\partial n_j}\left(n\left(\frac{\partial \alpha^r}{\partial n_i}\right)_{T,V,n_j} \right) \right)_{T,V,n_i} &=& \left( \frac{\partial}{\partial \delta}\left(n\left(\frac{\partial\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\tau,\bar x}\cdot n\left(\frac{\partial\delta}{\partial n_j}\right)_{T,V,n_i}\\ &+& \left( \frac{\partial}{\partial \tau}\left(n\left(\frac{\partial\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\tau,\bar x}\cdot n\left(\frac{\partial\tau}{\partial n_j}\right)_{T,V,n_i}\\ &+& \left( \frac{\partial}{\partial x_j}\left(n\left(\frac{\partial\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\delta,\tau,x_i}-\sum_{k=1}^{N}x_k \left( \frac{\partial}{\partial x_k}\left(n\left(\frac{\partial\alpha^r}{\partial n_i}\right)_{T,V,n_j}\right)\right)_{\delta,\tau,x_i}\\ \end{eqnarray*}

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
jThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ ndalphar_dni__constT_V_nj()

CoolPropDbl CoolProp::MixtureDerivatives::ndalphar_dni__constT_V_nj ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

Table B4, Kunz, JCED, 2012 for the original term and the subsequent substitutions.

The derivative term

\[ n\left(\frac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} \]

which is equal to

\begin{eqnarray*} n\left(\frac{\partial \alpha^r}{\partial n_i} \right)_{T,V,n_j} &=& \delta \alpha^r_{\delta}\left[ 1-\frac{1}{\rho_r}\left[\left(\frac{\partial \rho_r}{\partial x_i}\right)_{x_j} - \sum_{k=1}^N x_k\left(\frac{\partial \rho_r}{\partial x_k}\right)_{x_j} \right]\right]\\ && +\tau \alpha^r_{\tau}\frac{1}{T_r}\left[\left(\frac{\partial T_r}{\partial x_i}\right)_{x_j} - \sum_{k=1}^N x_k\left(\frac{\partial T_r}{\partial x_k}\right)_{x_j} \right]\\ && +\alpha^r_{x_i}-\sum_{k=1}^{N}x_k\alpha^r_{x_k} \end{eqnarray*}

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ nddeltadni__constT_V_nj()

CoolPropDbl CoolProp::MixtureDerivatives::nddeltadni__constT_V_nj ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph equation 7.48.

The derivative term

\[ n\left(\frac{\partial \delta}{\partial n_i} \right)_{T,V,n_j} = \delta - \frac{\delta}{\rho_r}\cdot n\left(\frac{\partial \rho_r}{\partial n_i} \right)_{n_j} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ ndln_fugacity_coefficient_dnj__constT_p()

CoolPropDbl CoolProp::MixtureDerivatives::ndln_fugacity_coefficient_dnj__constT_p ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
std::size_t  j,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph Equation 7.31.

The derivative term

\[ n\left(\frac{\partial \ln \phi_i}{\partial n_j}\right)_{T,p} = n\left(\frac{\partial^2n\alpha^r}{\partial n_j \partial n_i} \right)_{T,V}+1+\frac{n}{RT}\frac{\left(\frac{\partial p}{\partial n_j}\right)_{T,V,n_i}\left(\frac{\partial p}{\partial n_i}\right)_{T,V,n_j}}{\left(\frac{\partial p}{\partial V}\right)_{T,\bar n}} \]

which is also equal to

\[ n\left(\frac{\partial \ln \phi_i}{\partial n_j}\right)_{T,p} = n\left(\frac{\partial^2n\alpha^r}{\partial n_j \partial n_i} \right)_{T,V}+1-\frac{\hat v_i}{RT}\left[n\left(\frac{\partial p}{\partial n_j}\right)_{T,V,n_i}\right] \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
jThe second index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ ndpdni__constT_V_nj()

CoolPropDbl CoolProp::MixtureDerivatives::ndpdni__constT_V_nj ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph equation 7.63.

The derivative term

\[ n\left(\frac{\partial p}{\partial n_i} \right)_{T,V,n_j} = \rho RT\left[1+\delta\alpha_{\delta}^r\left[2- \frac{1}{\rho_r}\cdot n\left( \frac{\partial \rho_r}{\partial n_i}\right)_{n_j}\right] +\delta\cdot n\left(\frac{\partial\alpha_{\delta}^r}{\partial n_i}\right)_{T,V,n_j}\right] \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ ndpdV__constT_n()

CoolPropDbl CoolProp::MixtureDerivatives::ndpdV__constT_n ( HelmholtzEOSMixtureBackend HEOS)
static

GERG 2004 Monograph equation 7.62.

The derivative term

\[ n\left(\frac{\partial p}{\partial V} \right)_{T,\bar n} = -\rho^2 RT(1+2\delta \alpha_{\delta}^r+\delta^2\alpha^r_{\delta\delta}) \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used

§ ndtaudni__constT_V_nj()

CoolPropDbl CoolProp::MixtureDerivatives::ndtaudni__constT_V_nj ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 Monograph equation 7.49.

The derivative term

\[ n\left(\frac{\partial \tau}{\partial n_i} \right)_{T,V,n_j} = \frac{\tau}{T_r}\cdot n\left(\frac{\partial T_r}{\partial n_i} \right)_{n_j} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

§ partial_molar_volume()

CoolPropDbl CoolProp::MixtureDerivatives::partial_molar_volume ( HelmholtzEOSMixtureBackend HEOS,
std::size_t  i,
x_N_dependency_flag  xN_flag 
)
static

GERG 2004 monograph Eqn.

7.32

The partial molar volume

\[ \hat v_i = \left( \frac{\partial V}{\partial n_i}\right)_{T,p,n_j} = \frac{-\left(\dfrac{\partial p}{\partial n_i}\right)_{T,V,n_j}}{\left(\dfrac{\partial p}{\partial V}\right)_{T,\bar n}} \]

Parameters
HEOSThe HelmholtzEOSMixtureBackend to be used
iThe index of interest
xN_flagA flag specifying whether the all mole fractions are independent or only the first N-1

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