12 #define _CRTDBG_MAP_ALLOC
13 #define _CRT_SECURE_NO_WARNINGS
29 static const double n[]={
48 static const double d[]={
67 static const double t[]={
86 static const double c[]={
100 static const double alpha[]={
119 static const double beta[]={
138 static const double gamma[]={
157 static const double epsilon[]={
176 static const double v0[]={
183 static const double u0[]={
192 std::vector<double> u0_v(u0,u0+
sizeof(u0)/
sizeof(
double));
193 std::vector<double> v0_v(v0,v0+
sizeof(v0)/
sizeof(
double));
209 params.molemass = 114.0415928;
211 params.ptriple = 31.5093083629;
212 params.accentricfactor = 0.276;
221 EOSReference.assign(
"Richter, M. and M.O. McLinden and E.W. Lemmon, \"Thermodynamic Properties of 2,3,3,3-Tetrafluoroprop-1-ene"
222 "(R1234yf): Vapor Pressure and p-rho-T Measurements and an Equation of State\""
223 ", J. Chem. Eng. Data, v. 56, 2011, pp 3254-3264");
224 TransportReference.assign(
"Surface Tension: Katsuyuki Tanaka, Yukihiro Higashi, \"Thermodynamic properties of HFO-1234yf (2,3,3,3-tetrafluoropropene)\", International Journal of Refrigeration 33 (2010) 474-479");
226 name.assign(
"R1234yf");
237 const double ti[]={0,1.0,1.5,2.3,3.6,5.2,7.3};
238 const double Ni[]={0,-7.4299777557954254, 1.9583865741838868, -2.4230509106877167, 1.4167726905491065, -9.6120250676570098, 15.003017622880735 };
239 double summer=0,theta;
244 summer=summer+Ni[i]*pow(theta,ti[i]);
251 const double Ni[]={0,1.4756519570309901, -0.57454181759520018, 0.76682587551792647, -0.510882068727329, 0.66112133039760046};
252 const double ti[]={0,0.31104118625261612, 1.1997863650360587, 1.8936812371106437, 3.0633279469212082, 6.4584770277609298};
259 summer+=Ni[i]*pow(theta,ti[i]);
266 const double Ni[]={0,-2.4937203841988023, -4.0958221912377883, 2.598118460659435, -4.9686143098130451, -4.0779557647493059};
267 const double ti[]={0,0.36409300811029677, 0.99593569215609024, 1.8193545503400304, 3.0060054082610717, 7.955467733338411};
268 double summer=0,theta;
273 summer=summer+Ni[i]*pow(theta,ti[i]);
280 return 0.06274*pow(1-T/
reduce.
T,1.394);
285 double A[] = {-0.0102778, 0.0291098, 0.000860643};
286 double B1[] = {0, -0.0368219, 0.0883226, -0.0705909, 0.0259026, -0.00322950};
287 double B2[] = {0, 0.0397166, -0.0772390, 0.0664707, -0.0249071, 0.00336228};
291 for (
int i = 1; i <= 5; i++)
295 double lambda_r = sumresid;
299 return lambda_0+lambda_r+lambda_c;
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.
double conductivity_critical(double T, double rho, double qd=2e9, double GAMMA=0.0496, double zeta0=1.94e-10)
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.
std::string SURFACE_TENSION
struct CriticalStruct crit
BibTeXKeysStruct BibTeXKeys
double conductivity_Trho(double T, double rho)
std::vector< phi_BC * > phi0list
A vector of instances of the phi_BC classes for the residual Helmholtz energy contribution.
double surface_tension_T(double T)