66 : m_lowT(0.0), m_highT(0.0),
67 m_Pref(1.0E5), m_index(0), m_coeff(
vector_fp(9)) {}
81 const doublereal* coeffs) :
88 std::copy(coeffs, coeffs + 9,
m_coeff.begin());
195 doublereal* cp_R, doublereal* h_RT,
196 doublereal* s_R)
const
199 doublereal ct0 =
m_coeff[0] * tt[5];
200 doublereal ct1 =
m_coeff[1] * tt[4];
202 doublereal ct3 =
m_coeff[3] * tt[0];
203 doublereal ct4 =
m_coeff[4] * tt[1];
204 doublereal ct5 =
m_coeff[5] * tt[2];
205 doublereal ct6 =
m_coeff[6] * tt[3];
208 doublereal cpdivR = ct0 + ct1 + ct2 + ct3 + ct4 + ct5 + ct6;
209 doublereal hdivRT = -ct0 + tt[6]*ct1 + ct2 + 0.5*ct3 +
OneThird*ct4
210 + 0.25*ct5 + 0.2*ct6 +
m_coeff[7] * tt[4];
211 doublereal sdivR = -0.5*ct0 - ct1 + tt[6]*ct2 + ct3 + 0.5*ct4
250 doublereal* cp_R, doublereal* h_RT,
251 doublereal* s_R)
const
255 tPoly[1] = temp * temp;
256 tPoly[2] = tPoly[1] * temp;
257 tPoly[3] = tPoly[2] * temp;
258 tPoly[4] = 1.0 / temp;
259 tPoly[5] = tPoly[4] / temp;
260 tPoly[6] = std::log(temp);
279 doublereal& tlow, doublereal& thigh,
281 doublereal*
const coeffs)
const
291 for (
int i = 0; i < 9; i++) {
304 for (
int i = 0; i < 9; i++) {