22 #define _CRTDBG_MAP_ALLOC
23 #define _CRT_SECURE_NO_WARNINGS
39 static const double a[]={
48 static const double b[]={
57 static const double N[]={
83 static const double t[]={
109 static const int d[]={
135 static const int l[]={
161 std::vector<double> n_v(N,N+
sizeof(N)/
sizeof(
double));
162 std::vector<double> d_v(d,d+
sizeof(d)/
sizeof(
int));
163 std::vector<double> t_v(t,t+
sizeof(t)/
sizeof(
double));
164 std::vector<double> l_v(l,l+
sizeof(l)/
sizeof(
int));
165 std::vector<double> a0(a,a+
sizeof(a)/
sizeof(
double));
166 std::vector<double> n0(b,b+
sizeof(b)/
sizeof(
double));
186 phi0list.push_back(phi0_Planck_Einstein_);
195 params.molemass = 97.6038;
197 params.ptriple = 21.2656766151;
198 params.accentricfactor = 0.293;
208 EOSReference.assign(
"E.W. Lemmon, \"Pseudo-pure fluid Equations of State for the Refrigerant Blends R410A, R404A, R507C and R407C\""
209 ",Int. J. Thermophys. v. 24, n4, 2003");
210 TransportReference.assign(
"Viscosity: V. Geller, \"Viscosity of Mixed Refrigerants R404A,R407C,"
211 "R410A, and R507A\", 2000 Purdue Refrigeration conferences\n\n"
212 "Thermal Conductivity: V.Z. Geller, B.Z. Nemzer, and U.V. Cheremnykh \"Thermal Conductivity "
213 "of the Refrigerant mixtures R404A,R407C,R410A, and R507A\" "
214 "Int. J. Thermophysics, v. 22, n 4 2001\n\n"
215 "Surface Tension: R. Heide, \"The surface tension of HFC refrigerants and mixtures\", Int J. Refrig. Vol. 20, No. 7, pp. 496-503, 1997");
217 name.assign(
"R404A");
237 double a_0=-8.624e0,a_1=7.360e-2,b_1=3.222e-2,b_2=2.569e-5,b_3=-2.693e-8,b_4=2.007e-11;
239 return (a_0+a_1*T+b_1*rho+b_2*rho*rho+b_3*rho*rho*rho+b_4*rho*rho*rho*rho)/1.e3;
248 static const double Nbp[]={
256 static const double tbp[]={
267 sum+=Nbp[k]*pow(theta,tbp[k]);
278 static const double Ndp[]={
286 static const double tdp[]={
298 sum+=Ndp[k]*pow(theta,tdp[k]);
305 double THETA,a1,a2,a3,a4,a5,a6,a7,b1,b2,b3,b4,b5,b6,b7;
323 return exp(a1*pow(THETA,b1)+a2*pow(THETA,b2)+a3*pow(THETA,b3)+a4*pow(THETA,b4)+a5*pow(THETA,b5)+a6*pow(THETA,b6)+a7*pow(THETA,b7))*482.13;
328 double THETA,a1,a2,a3,a4,a5,a6,a7,b1,b2,b3,b4,b5,b6,b7;
346 return exp(a1*pow(THETA,b1)+a2*pow(THETA,b2)+a3*pow(THETA,b3)+a4*pow(THETA,b4)+a5*pow(THETA,b5)+a6*pow(THETA,b6)+a7*pow(THETA,b7))*482.163;
363 double a_0=9.766e-1,a_1=3.676e-2,a_2=2.938e-6,b_1=2.260e-3,b_2=1.786e-4,
364 b_3=-4.202e-7,b_4=8.489e-10,b_5=-8.670e-13,b_6=3.566e-16;
366 eta_microPa_s=a_0+a_1*T+a_2*T*T+b_1*rho+b_2*rho*rho+b_3*rho*rho*rho+b_4*rho*rho*rho*rho+b_5*rho*rho*rho*rho*rho+b_6*rho*rho*rho*rho*rho*
rho;
367 return eta_microPa_s/1e6;
371 return 0.0538534*pow(1-T/
reduce.
T,1.259);
std::vector< phi_BC * > phirlist
struct FluidLimits limits
std::string name
A container to hold the cache for residual Helmholtz derivatives.
std::string TransportReference
A std::string that contains a reference for thermo properties for the fluid.
std::vector< std::string > aliases
The REFPROP-compliant name if REFPROP-"name" is not a compatible fluid name. If not included...
struct CriticalStruct reduce
A pointer to the point that is used to reduce the T and rho for EOS.
std::string EOSReference
The critical qd parameter for the Olchowy-Sengers cross-over term.
bool isPure
A std::string that contains a reference for the transport properties of the fluid.
std::string SURFACE_TENSION
double surface_tension_T(double T)
struct CriticalStruct crit
BibTeXKeysStruct BibTeXKeys
virtual double viscosity_Trho(double, double)
virtual double conductivity_Trho(double, double)
std::vector< phi_BC * > phi0list
A vector of instances of the phi_BC classes for the residual Helmholtz energy contribution.
This is the abstract base class upon which each residual Helmholtz energy class is built...