12 #ifndef CT_NASAPOLY2_H
13 #define CT_NASAPOLY2_H
66 NasaPoly2(
size_t n, doublereal tlow, doublereal thigh, doublereal pref,
67 const doublereal* coeffs) :
69 mnp_low(n, tlow, coeffs[0], pref, coeffs +1),
70 mnp_high(n, tlow, thigh, pref, coeffs + 8),
72 std::copy(coeffs, coeffs + 15,
m_coeff.begin());
94 SpeciesThermoInterpType::operator=(b);
134 doublereal* cp_R, doublereal* h_RT, doublereal* s_R)
const {
146 doublereal* s_R)
const {
156 doublereal& tlow, doublereal& thigh,
158 doublereal*
const coeffs)
const {
165 for (
int i = 0; i < 15; i++) {
170 #ifdef H298MODIFY_CAPABILITY
172 doublereal reportHf298(doublereal*
const h298 = 0)
const {
185 void modifyOneHf298(
const size_t& k,
const doublereal Hf298New) {
190 doublereal h298now = reportHf298(0);
191 doublereal delH = Hf298New - h298now;
192 double h =
mnp_low.reportHf298(0);
193 double hnew = h + delH;
194 mnp_low.modifyOneHf298(k, hnew);
Pure Virtual Base class for the thermodynamic manager for an individual species' reference state...
The NASA polynomial parameterization for two temperature ranges.
void reportParameters(size_t &n, int &type, doublereal &tlow, doublereal &thigh, doublereal &pref, doublereal *const coeffs) const
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.
size_t m_index
species index
#define NASA2
Two regions of 7 coefficient NASA Polynomials This is implemented in the class NasaPoly2 in NasaPoly2...
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
Pure Virtual Base class for individual species reference state thermodynamic managers and text for th...
virtual SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType() const
duplicator
vector_fp m_coeff
array of polynomial coefficients
NasaPoly1 mnp_high
NasaPoly1 object for the high temperature region.
doublereal m_highT
Highest valid temperature.
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
Header for a single-species standard state object derived from SpeciesThermoInterpType based on the N...
doublereal m_lowT
lowest valid temperature
virtual int reportType() const
Returns an integer representing the type of parameterization.
doublereal m_midT
Midrange temperature.
NasaPoly2(size_t n, doublereal tlow, doublereal thigh, doublereal pref, const doublereal *coeffs)
Full Constructor.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
NasaPoly2()
Empty constructor.
NasaPoly2 & operator=(const NasaPoly2 &b)
Assignment operator.
The NASA polynomial parameterization for one temperature range.
doublereal m_Pref
Reference state pressure.
NasaPoly2(const NasaPoly2 &b)
Copy Constructor.
NasaPoly1 mnp_low
NasaPoly1 object for the low temperature region.
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.