14 #ifndef CT_NASAPOLY2_H 15 #define CT_NASAPOLY2_H 57 "Default constructor to be removed after Cantera 2.3.");
70 NasaPoly2(doublereal tlow, doublereal thigh, doublereal pref,
71 const doublereal* coeffs) :
74 mnp_low(tlow, coeffs[0], pref, coeffs + 8),
75 mnp_high(coeffs[0], thigh, pref, coeffs + 1),
97 doublereal* cp_R, doublereal* h_RT, doublereal* s_R)
const {
108 doublereal* s_R)
const {
117 doublereal& tlow, doublereal& thigh,
119 doublereal*
const coeffs)
const {
125 for (
int i = 0; i < 15; i++) {
150 doublereal delH = Hf298New - h298now;
152 double hnew = h + delH;
159 void validate(
const std::string& name);
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...
void modifyOneHf298(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1) ...
virtual void modifyOneHf298(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1) ...
Abstract Base class for the thermodynamic manager for an individual species' reference state...
void validate(const std::string &name)
Check for problems with the parameterization, and generate warnings or throw and exception if any are...
The NASA polynomial parameterization for two temperature ranges.
#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.
virtual void updateTemperaturePoly(double T, double *T_poly) const
Given the temperature T, compute the terms of the temperature polynomial T_poly.
virtual void updateTemperaturePoly(double T, double *T_poly) const
Given the temperature T, compute the terms of the temperature polynomial T_poly.
Pure Virtual Base class for individual species reference state thermodynamic managers and text for th...
virtual void resetHf298()
Restore the original heat of formation for this species.
virtual int reportType() const
Returns an integer representing the type of parameterization.
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
virtual SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType() const
vector_fp m_coeff
array of polynomial coefficients
NasaPoly1 mnp_high
NasaPoly1 object for the high temperature region.
NasaPoly2(doublereal tlow, doublereal thigh, doublereal pref, const doublereal *coeffs)
Full Constructor.
doublereal m_highT
Highest valid temperature.
Header for a single-species standard state object derived from SpeciesThermoInterpType based on the N...
void resetHf298()
Restore the original heat of formation for this species.
virtual doublereal reportHf298(doublereal *const h298=0) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) ...
doublereal m_lowT
lowest valid temperature
doublereal m_midT
Midrange temperature.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual size_t temperaturePolySize() const
Number of terms in the temperature polynomial for this parameterization.
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.
NasaPoly2()
Empty constructor.
void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
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 polynomial parameterization for one temperature range.
doublereal m_Pref
Reference state pressure.
Namespace for the Cantera kernel.
NasaPoly1 mnp_low
NasaPoly1 object for the low temperature region.
doublereal reportHf298(doublereal *const h298=0) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) ...