16 #define _CRTDBG_MAP_ALLOC
17 #define _CRT_SECURE_NO_WARNINGS
34 static const double n[]={0,
72 static const double d[]={0,
110 static const double t[]={0,
148 static const double l[]={0,
186 static const double B[]={0,
200 std::vector<double> B_v(B,B+
sizeof(B)/
sizeof(
double));
201 std::vector<double> b_v(10,1.0);
216 delta0=rho0/523.84216696;
221 c=-S0/R_u-1+log(tau0/delta0);
226 for (
unsigned int i=1; i<=9; i++){B_v[i]/=Tc;}
236 phi0list.push_back(phi0_cp0_constant_);
245 params.ptriple = 0.00037947;
246 params.accentricfactor = 0.22082;
261 EOSReference.assign(
"Kamei, A., and S. W. Beyerlein, and R. T Jacobsen "
262 "\"Application of Nonlinear Regression in the "
263 "Development of a Wide Range Formulation "
265 "International Journal of Thermophysics, Vol 16, No. 5, 1995 ");
277 const double ti[]={0,0.31192915101182356, 2.8946435869795102, 0.67246871922761298};
278 const double Ni[]={0,1.483021299160145, 0.080969023427476514, -0.20168767717342609};
279 double summer=0,theta;
284 summer=summer+Ni[i]*pow(theta,ti[i]);
290 const double ti[]={0,0.34946619849137917, 0.85911512967423576, 4.0559379494670686};
291 const double Ni[]={0,-2.1778924368532797, -3.1490525869084243, -4.5796870359311495};
292 double summer=0,theta;
297 summer=summer+Ni[i]*pow(theta,ti[i]);
303 const double ti[]={0,1,1.5,2.3,3.6,5.2,7.3};
304 const double Ni[]={0,-7.0751284116491497, 1.6540574277960167, -1.6991342890871426, -0.28422811006931187, -3.5966160189328447, 1.217643375964375};
305 double summer=0,theta;
310 summer=summer+Ni[i]*pow(theta,ti[i]);
317 return 7.7817e-4+1.2636e-6*T;
322 return 1.0750-0.0385740*rhor;
326 return 1.0272423-0.0198493*rhor;
std::vector< phi_BC * > phirlist
double ECS_chi_conductivity(double rhor)
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.
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 ECS_LENNARD_JONES
void ECSParams(double *e_k, double *sigma)
std::string SURFACE_TENSION
struct CriticalStruct crit
double ECS_psi_viscosity(double rhor)
BibTeXKeysStruct BibTeXKeys
Term in the ideal-gas specific heat equation that is polynomial term.
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...
Term in the ideal-gas specific heat equation that is constant.
double ECS_f_int(double T)