3 #define _CRTDBG_MAP_ALLOC
4 #define _CRT_SECURE_NO_WARNINGS
21 static double a[]={0, 1.440000, 2.000227, 5.359371, 3.496132};
22 static double b[]={0, 0.256551293851, 696.9434/355.804, 1723.0916/355.804, 3874.9951/355.804};
25 static double N[]={0.5, 0.919875, -1.82678, -0.352996, 0.0588362, 0.000129927, 0.259443, 0.708701, 0.0179878, -0.305208, -0.0510867, -0.0910294, -0.0300902};
26 static double t[]={0, 0.25, 1.25, 1.5, 0.25, 0.875, 2.375, 2, 2.125, 3.5, 6.5, 4.75, 12.5};
27 static double d[]={0, 1, 1, 1, 3, 7, 1, 2, 5, 1, 1, 4, 2};
28 static double l[]={0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3};
33 params.accentricfactor = 0.360036864771;
51 params.HSReferenceState =
"IIR";
64 const double t[]={0, 1, 2, 3, 5, 9};
65 const double N[]={0, 0.18082710436189095, -7.7983091066218071, 2.0533745861071391, -2.1140573561077987, -2.3513695979484255};
66 double summer=0,theta;
68 for (
int i=1;i<=5;i++)
70 summer += N[i]*pow(theta,t[i]/2);
79 const double t[]={0, 1, 2, 4, 8};
80 const double N[]={0, -0.25845953186204634, -6.7270062079395379, 0.13564366673540645, -5.5138739927573255};
81 double summer=0,theta;
83 for (
int i=1;i<=4;i++)
85 summer += N[i]*pow(theta,t[i]/2);
94 const double t[] = {0, 0.16666666666666666, 0.3333333333333333, 0.5, 0.6666666666666666, 0.8333333333333334, 1.0, 1.1666666666666667, 1.5};
95 const double N[] = {0, -25.016336368491949, 275.16509661941035, -1282.9862444814557, 3317.3858644879506, -5014.0917140512256, 4290.9626091919372, -1709.960437659249, 151.99307236915118};
96 double summer=0,theta;
99 for (
int i=1; i<=8; i++)
101 summer += N[i]*pow(theta,t[i]);
111 const double t[] = {0, 0.16666666666666666, 0.3333333333333333, 0.5, 0.6666666666666666, 0.8333333333333334, 1.0, 1.1666666666666667, 1.5, 1.8333333333333333, 2.1666666666666665};
112 const double N[] = {0, 181.82633126699102, -2600.9978883137055, 15966.622688274818, -54675.956461439942, 112349.32219323577, -136062.35313491867, 81475.183272830909, -23041.320486947832, 7912.2244219331069, -1517.1758761518065};
113 double summer=0,theta;
116 for (
int i=1; i<=10; i++)
118 summer += N[i]*pow(theta,t[i]);
std::vector< phi_BC * > phirlist
struct FluidLimits limits
std::string name
A container to hold the cache for residual Helmholtz derivatives.
struct CriticalStruct reduce
A pointer to the point that is used to reduce the T and rho for EOS.
std::string REFPROPname
The name of the fluid.
bool isPure
A std::string that contains a reference for the transport properties of the fluid.
struct CriticalStruct crit
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.