23 Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion() :
46 throw CanteraError(
"Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion",
47 "m_index inconsistency");
50 throw CanteraError(
"Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion",
51 "refPressure inconsistency");
55 throw CanteraError(
"Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion",
56 "minTemp bounds inconsistency");
59 throw CanteraError(
"Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion",
60 "Temp bounds inconsistency");
69 m_numTempRegions(b.m_numTempRegions),
70 m_lowerTempBounds(b.m_lowerTempBounds),
71 m_currRegion(b.m_currRegion)
84 SpeciesThermoInterpType::operator=(b);
122 doublereal* s_R)
const
130 throw CanteraError(
"Nasa9PolyMultiTempRegion::updateProperties",
136 throw CanteraError(
"Nasa9PolyMultiTempRegion::updateProperties",
145 doublereal* cp_R, doublereal* h_RT,
146 doublereal* s_R)
const
150 tPoly[1] = temp * temp;
151 tPoly[2] = tPoly[1] * temp;
152 tPoly[3] = tPoly[2] * temp;
153 tPoly[4] = 1.0 / temp;
154 tPoly[5] = tPoly[4] / temp;
155 tPoly[6] = std::log(temp);
169 doublereal& tlow, doublereal& thigh,
171 doublereal*
const coeffs)
const
184 double pref_tmp = 0.0;
186 m_regionPts[iReg]->reportParameters(n_tmp, type_tmp,
187 coeffs[index], coeffs[index+1],
189 for (
int i = 0; i < 9; i++) {
190 coeffs[index+2+i] = ctmp[3+i];
202 m_regionPts[iReg]->modifyParameters(coeffs + index);
size_t m_numTempRegions
Number of temperature regions.
Pure Virtual Base class for the thermodynamic manager for an individual species' reference state...
Nasa9PolyMultiTempRegion()
Empty constructor.
size_t m_index
species index
virtual size_t speciesIndex() const
Returns an integer representing the species index.
Header for a single-species standard state object derived from SpeciesThermoInterpType based on the N...
vector_fp m_lowerTempBounds
Lower boundaries of each temperature regions.
virtual int reportType() const
Returns an integer representing the type of parameterization.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
int m_currRegion
current region
virtual doublereal refPressure() const
Returns the reference pressure (Pa)
virtual doublereal maxTemp() const
Returns the maximum temperature that the thermo parameterization is valid.
#define NASA9MULTITEMP
9 coefficient NASA Polynomials in multiple temperature regions This is implemented in the class Nasa9...
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.
virtual SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType() const
duplicator
doublereal m_highT
Highest valid temperature.
Base class for exceptions thrown by Cantera classes.
doublereal m_lowT
lowest valid temperature
virtual doublereal minTemp() const
Returns the minimum temperature that the thermo parameterization is valid.
The NASA 9 polynomial parameterization for one temperature range.
Nasa9PolyMultiTempRegion & operator=(const Nasa9PolyMultiTempRegion &b)
Assignment operator.
virtual ~Nasa9PolyMultiTempRegion()
Destructor.
doublereal m_Pref
Reference state pressure.
The NASA 9 polynomial parameterization for a single species encompassing multiple temperature regions...
virtual void modifyParameters(doublereal *coeffs)
Modify parameters for the standard state.
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
std::vector< Nasa9Poly1 * > m_regionPts
pointers to the objects
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
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...