16 #define _CRTDBG_MAP_ALLOC
17 #define _CRT_SECURE_NO_WARNINGS
35 static const double n[]={
58 static const double d[]={
81 static const double t[]={
104 static const double c[]={
127 static const double a0[]={
136 static const double n0[]={
146 std::vector<double> a0_v(a0,a0+
sizeof(a0)/
sizeof(
double));
147 std::vector<double> n0_v(n0,n0+
sizeof(n0)/
sizeof(
double));
165 params.ptriple = 0.0480073825051;
166 params.accentricfactor = 0.2769;
175 EOSReference.assign(
"Tillner-Roth, R. and Yokozeki, A.,"
176 " \"An international standard equation of state for difluoromethane (R-32)"
177 " for temperatures from the triple point at 136.34 K to 435 K and pressures"
179 " J. Phys. Chem. Ref. Data, 26(6):1273-1328, 1997.");
180 TransportReference.assign(
"Surface Tension: R. Heide, \"The surface tension of HFC refrigerants and mixtures\", Int J. Refrig. Vol. 20, No. 7, pp. 496-503, 1997");
193 const double ti[]={0,1,1.5,2.3,3.6,5.2,7.3};
194 const double Ni[]={0,-7.4655606703362523, 1.804181047910655, -1.5910694825428875, -0.72617761983564866, -3.0701624093185873, 1.4422289706087676};
195 double summer=0,theta;
200 summer=summer+Ni[i]*pow(theta,ti[i]);
211 return 424.0+434.55*pow(theta,1.0/4.0)+1296.53*pow(theta,2.0/3.0)-777.49*theta+366.84*pow(theta,5.0/3.0);
215 const double ti[]={0,0.30280531791334198, 0.7420002747530019, 3.8727512808619684};
216 const double Ni[]={0,-1.6156590624508722, -3.8438826469427365, -4.429417770439076};
217 double summer=0,theta;
222 summer=summer+Ni[i]*pow(theta,ti[i]);
228 return 0.7954+5.426580e-2*rhor;
232 return 0.000436654+0.00000178134*T;
236 return 1.2942-0.0924549*rhor;
246 return 0.07147*pow(1-T/
reduce.
T,1.246);
std::vector< phi_BC * > phirlist
struct FluidLimits limits
std::string ECSReferenceFluid
A list of aliases of names for the Fluid, each element is a std::string instance. ...
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.
struct CriticalStruct reduce
A pointer to the point that is used to reduce the T and rho for EOS.
double surface_tension_T(double T)
double ECS_f_int(double T)
std::string EOSReference
The critical qd parameter for the Olchowy-Sengers cross-over term.
std::string ECS_LENNARD_JONES
std::string SURFACE_TENSION
struct CriticalStruct crit
void ECSParams(double *e_k, double *sigma)
BibTeXKeysStruct BibTeXKeys
double ECS_chi_conductivity(double rhor)
std::vector< phi_BC * > phi0list
A vector of instances of the phi_BC classes for the residual Helmholtz energy contribution.
double ECS_psi_viscosity(double rhor)