27 if (t <= s.maxTemps[i]) {
32 cpc = s.region_coeffs[ireg];
33 const vector_fp& c = *cpc;
34 double cp0r = c[0]/(t*t) + c[1]/t + c[2] + c[3]*t + c[4]*t*t
35 + c[5]*t*t*t + c[6]*t*t*t*t;
44 const vector_fp& c = *cpc;
45 double cp0r = c[0] + c[1]*t + c[2]*t*t + c[3]*t*t*t + c[4]*t*t*t*t;
61 if (t <= s.maxTemps[i]) {
66 cpc = s.region_coeffs[ireg];
67 const vector_fp& c = *cpc;
68 double h0rt = -c[0]/(t*t) + c[1]*log(t)/t
69 + c[2] + 0.5*c[3]*t + c[4]*t*t/3.0 + 0.25*c[5]*t*t*t
70 + 0.2*c[6]*t*t*t*t + c[7]/t;
79 const vector_fp& c = *
cp;
80 double h0rt = c[0] + 0.5*c[1]*t + c[2]*t*t/3.0 + 0.25*c[3]*t*t*t
81 + 0.2*c[4]*t*t*t*t + c[5]/t;
96 if (t <= s.maxTemps[i]) {
101 cpc = s.region_coeffs[ireg];
102 const vector_fp& c = *cpc;
103 double s0r = -0.5*c[0]/(t*t) - c[1]/t
104 + c[2]*log(t) + c[3]*t + 0.5*c[4]*t*t + c[5]*t*t*t/3.0
105 + 0.25*c[6]*t*t*t*t + c[8];
114 const vector_fp& c = *
cp;
115 double s0r = c[0]*log(t) + c[1]*t + 0.5*c[2]*t*t + c[3]*t*t*t/3.0
116 + 0.25*c[4]*t*t*t*t + c[6];
129 return (h0r - s0r * t);
137 const vector_fp& c = *
cp;
138 double h0rt = c[0] + 0.5*c[1]*t + c[2]*t*t/3.0 + 0.25*c[3]*t*t*t
139 + 0.2*c[4]*t*t*t*t + c[5]/t;
140 double s0r = c[0]*log(t) + c[1]*t + 0.5*c[2]*t*t + c[3]*t*t*t/3.0
141 + 0.25*c[4]*t*t*t*t + c[6];
142 return t*(h0rt - s0r);