mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
R23 conductivity hardcoded
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -613,6 +613,9 @@ protected:
|
||||
if (!target.compare("Water")){
|
||||
fluid.transport.hardcoded_conductivity = CoolProp::TransportPropertyData::CONDUCTIVITY_HARDCODED_WATER; return;
|
||||
}
|
||||
else if (!target.compare("R23")){
|
||||
fluid.transport.hardcoded_conductivity = CoolProp::TransportPropertyData::CONDUCTIVITY_HARDCODED_R23; return;
|
||||
}
|
||||
else{
|
||||
throw ValueError(format("hardcoded residual conductivity term [%s] is not understood for fluid %s",target.c_str(), fluid.name.c_str()));
|
||||
}
|
||||
|
||||
@@ -221,6 +221,8 @@ long double HelmholtzEOSMixtureBackend::calc_conductivity(void)
|
||||
{
|
||||
case CoolProp::TransportPropertyData::CONDUCTIVITY_HARDCODED_WATER:
|
||||
return TransportRoutines::conductivity_hardcoded_water(*this);
|
||||
case CoolProp::TransportPropertyData::CONDUCTIVITY_HARDCODED_R23:
|
||||
return TransportRoutines::conductivity_hardcoded_R23(*this);
|
||||
default:
|
||||
throw ValueError(format("hardcoded viscosity type [%d] is invalid for fluid %s", components[0]->transport.hardcoded_conductivity, name().c_str()));
|
||||
}
|
||||
|
||||
@@ -683,5 +683,31 @@ long double TransportRoutines::conductivity_hardcoded_water(HelmholtzEOSMixtureB
|
||||
return (lambdabar_0*lambdabar_1+lambdabar_2)*lambdastar;
|
||||
}
|
||||
|
||||
long double TransportRoutines::conductivity_hardcoded_R23(HelmholtzEOSMixtureBackend &HEOS){
|
||||
|
||||
double B1 = -2.5370, // [mW/m/K]
|
||||
B2 = 0.05366, // [mW/m/K^2]
|
||||
C1 = 0.94215, // [-]
|
||||
C2 = 0.14914, // [mW/m/K^2]
|
||||
DeltaGstar = 2508.58, //[J/mol]
|
||||
rhoL = 68.345, // [mol/dm^3] = [mol/L]
|
||||
rhocbar = 7.5114, // [mol/dm^3]
|
||||
DELTAlambda_max = 25, //[mW/m/K]
|
||||
Ru = 8.31451, // [J/mol/K]
|
||||
Tc = 299.2793, //[K]
|
||||
T = HEOS.T(); //[K]
|
||||
|
||||
double lambda_DG = B1 + B2*T;
|
||||
|
||||
double rhobar = HEOS.rhomolar()/1000; // [mol/L]
|
||||
double lambda_L = C2*(rhoL*rhoL)/(rhoL-rhobar)*sqrt(T)*exp(rhobar/(rhoL-rhobar)*DeltaGstar/(Ru*T));
|
||||
|
||||
double chi = rhobar - rhocbar;
|
||||
double tau = T - Tc;
|
||||
|
||||
double DELTAlambda_c = 4*DELTAlambda_max/((exp(chi)+exp(-chi))*(exp(tau)+exp(-tau)));
|
||||
|
||||
return (pow((rhoL-rhobar)/rhoL,C1)*lambda_DG+pow(rhobar/rhoL,C1)*lambda_L+DELTAlambda_c)/1e3;
|
||||
}
|
||||
|
||||
}; /* namespace CoolProp */
|
||||
@@ -167,7 +167,8 @@ public:
|
||||
static long double conductivity_residual_polynomial_and_exponential(HelmholtzEOSMixtureBackend &HEOS);
|
||||
|
||||
static long double conductivity_hardcoded_water(HelmholtzEOSMixtureBackend &HEOS);
|
||||
|
||||
static long double conductivity_hardcoded_R23(HelmholtzEOSMixtureBackend &HEOS);
|
||||
|
||||
|
||||
}; /* class TransportRoutines */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user