26 const doublereal* coeffs) :
30 std::copy(coeffs, coeffs + 9,
m_coeff.begin());
45 SpeciesThermoInterpType::operator=(b);
65 doublereal* cp_R, doublereal* h_RT,
66 doublereal* s_R)
const
69 doublereal ct0 =
m_coeff[0] * tt[5];
70 doublereal ct1 =
m_coeff[1] * tt[4];
72 doublereal ct3 =
m_coeff[3] * tt[0];
73 doublereal ct4 =
m_coeff[4] * tt[1];
74 doublereal ct5 =
m_coeff[5] * tt[2];
75 doublereal ct6 =
m_coeff[6] * tt[3];
78 doublereal cpdivR = ct0 + ct1 + ct2 + ct3 + ct4 + ct5 + ct6;
79 doublereal hdivRT = -ct0 + tt[6]*ct1 + ct2 + 0.5*ct3 +
OneThird*ct4
80 + 0.25*ct5 + 0.2*ct6 +
m_coeff[7] * tt[4];
81 doublereal sdivR = -0.5*ct0 - ct1 + tt[6]*ct2 + ct3 + 0.5*ct4
94 doublereal* cp_R, doublereal* h_RT,
95 doublereal* s_R)
const
99 tPoly[1] = temp * temp;
100 tPoly[2] = tPoly[1] * temp;
101 tPoly[3] = tPoly[2] * temp;
102 tPoly[4] = 1.0 / temp;
103 tPoly[5] = tPoly[4] / temp;
104 tPoly[6] = std::log(temp);
109 doublereal& tlow, doublereal& thigh,
111 doublereal*
const coeffs)
const
122 for (
int i = 0; i < 9; i++) {
130 for (
int i = 0; i < 9; i++) {
Nasa9Poly1()
Empty constructor.
virtual void modifyParameters(doublereal *coeffs)
Modify parameters for the standard state.
virtual void reportParameters(size_t &n, int &type, doublereal &tlow, doublereal &thigh, doublereal &pref, doublereal *const coeffs) const
This utility function reports back the type of parameterization and all of the parameters for the spe...
Pure Virtual Base class for the thermodynamic manager for an individual species' reference state...
Header for a single-species standard state object derived from SpeciesThermoInterpType based on the N...
size_t m_index
species index
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual int reportType() const
Returns an integer representing the type of parameterization.
virtual SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType() const
duplicator
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
#define NASA9
9 coefficient NASA Polynomials This is implemented in the class Nasa9Poly1 in Nasa9Poly1.h
const doublereal OneThird
1/3
doublereal m_highT
Highest valid temperature.
doublereal m_lowT
lowest valid temperature
Nasa9Poly1 & operator=(const Nasa9Poly1 &b)
assignment operator
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void updateProperties(const doublereal *tt, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Update the properties for this species, given a temperature polynomial.
The NASA 9 polynomial parameterization for one temperature range.
doublereal m_Pref
Reference state pressure.
vector_fp m_coeff
array of polynomial coefficients