13 #ifndef CT_NASAPOLY2_H
14 #define CT_NASAPOLY2_H
75 NasaPoly2(
size_t n, doublereal tlow, doublereal thigh, doublereal pref,
76 const doublereal* coeffs) :
80 mnp_low(n, tlow, coeffs[0], pref, coeffs +1),
81 mnp_high(n, tlow, thigh, pref, coeffs + 8),
85 std::copy(coeffs, coeffs + 15,
m_coeff.begin());
184 doublereal* cp_R, doublereal* h_RT, doublereal* s_R)
const {
213 doublereal* s_R)
const {
236 doublereal& tlow, doublereal& thigh,
238 doublereal*
const coeffs)
const {
244 for (
int i = 0; i < 15; i++) {
249 #ifdef H298MODIFY_CAPABILITY
251 doublereal reportHf298(doublereal*
const h298 = 0)
const {
264 void modifyOneHf298(
const int k,
const doublereal Hf298New) {
269 doublereal h298now = reportHf298(0);
270 doublereal delH = Hf298New - h298now;
271 double h =
mnp_low.reportHf298(0);
272 double hnew = h + delH;
273 mnp_low.modifyOneHf298(k, hnew);