Cantera
2.3.0
|
The NASA 9 polynomial parameterization for a single species encompassing multiple temperature regions. More...
#include <Nasa9PolyMultiTempRegion.h>
Public Member Functions | |
Nasa9PolyMultiTempRegion () | |
Empty constructor. More... | |
Nasa9PolyMultiTempRegion (std::vector< Nasa9Poly1 *> ®ionPts) | |
Constructor used in templated instantiations. More... | |
Nasa9PolyMultiTempRegion (const Nasa9PolyMultiTempRegion &b) | |
Nasa9PolyMultiTempRegion & | operator= (const Nasa9PolyMultiTempRegion &b) |
virtual SpeciesThermoInterpType * | duplMyselfAsSpeciesThermoInterpType () const |
virtual int | reportType () const |
Returns an integer representing the type of parameterization. More... | |
virtual size_t | temperaturePolySize () const |
Number of terms in the temperature polynomial for this parameterization. More... | |
virtual void | updateTemperaturePoly (double T, double *T_poly) const |
Given the temperature T, compute the terms of the temperature polynomial T_poly. More... | |
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. More... | |
virtual void | updatePropertiesTemp (const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const |
Compute the reference-state property of one species. More... | |
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 species, index. More... | |
virtual void | modifyParameters (doublereal *coeffs) |
Public Member Functions inherited from SpeciesThermoInterpType | |
SpeciesThermoInterpType (double tlow, double thigh, double pref) | |
SpeciesThermoInterpType (const SpeciesThermoInterpType &b) | |
SpeciesThermoInterpType & | operator= (const SpeciesThermoInterpType &b) |
virtual doublereal | minTemp () const |
Returns the minimum temperature that the thermo parameterization is valid. More... | |
virtual doublereal | maxTemp () const |
Returns the maximum temperature that the thermo parameterization is valid. More... | |
virtual doublereal | refPressure () const |
Returns the reference pressure (Pa) More... | |
virtual void | validate (const std::string &name) |
Check for problems with the parameterization, and generate warnings or throw and exception if any are found. More... | |
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) More... | |
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) More... | |
virtual void | resetHf298 () |
Restore the original heat of formation for this species. More... | |
Protected Attributes | |
vector_fp | m_lowerTempBounds |
Lower boundaries of each temperature regions. More... | |
std::vector< std::unique_ptr< Nasa9Poly1 > > | m_regionPts |
Individual temperature region objects. More... | |
int | m_currRegion |
current region More... | |
Protected Attributes inherited from SpeciesThermoInterpType | |
doublereal | m_lowT |
lowest valid temperature More... | |
doublereal | m_highT |
Highest valid temperature. More... | |
doublereal | m_Pref |
Reference state pressure. More... | |
The NASA 9 polynomial parameterization for a single species encompassing multiple temperature regions.
The parameterization used in each temperature range is described in the documentation for class Nasa9Poly1.
These NASA representations may have multiple temperature regions through the use of this Nasa9PolyMultiTempRegion object, which uses multiple copies of the Nasa9Poly1 object to handle multiple temperature regions.
Definition at line 36 of file Nasa9PolyMultiTempRegion.h.
Empty constructor.
Definition at line 24 of file Nasa9PolyMultiTempRegion.cpp.
References Cantera::warn_deprecated().
Referenced by Nasa9PolyMultiTempRegion::duplMyselfAsSpeciesThermoInterpType().
Nasa9PolyMultiTempRegion | ( | std::vector< Nasa9Poly1 *> & | regionPts | ) |
Constructor used in templated instantiations.
regionPts | Vector of pointers to Nasa9Poly1 objects. These objects all refer to the temperature regions for the same species. The vector must be in increasing temperature region format. Together they represent the reference temperature parameterization for a single species. |
Note, after the constructor, we will own the underlying Nasa9Poly1 objects and be responsible for owning them.
Definition at line 31 of file Nasa9PolyMultiTempRegion.cpp.
References SpeciesThermoInterpType::m_highT, Nasa9PolyMultiTempRegion::m_lowerTempBounds, SpeciesThermoInterpType::m_lowT, SpeciesThermoInterpType::m_Pref, Nasa9PolyMultiTempRegion::m_regionPts, SpeciesThermoInterpType::maxTemp(), and SpeciesThermoInterpType::refPressure().
|
virtual |
Implements SpeciesThermoInterpType.
Definition at line 92 of file Nasa9PolyMultiTempRegion.cpp.
References Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion().
|
virtual |
Returns an integer representing the type of parameterization.
Implements SpeciesThermoInterpType.
Definition at line 97 of file Nasa9PolyMultiTempRegion.cpp.
References NASA9MULTITEMP.
|
inlinevirtual |
Number of terms in the temperature polynomial for this parameterization.
Reimplemented from SpeciesThermoInterpType.
Definition at line 65 of file Nasa9PolyMultiTempRegion.h.
|
virtual |
Given the temperature T, compute the terms of the temperature polynomial T_poly.
Reimplemented from SpeciesThermoInterpType.
Definition at line 102 of file Nasa9PolyMultiTempRegion.cpp.
|
virtual |
Update the properties for this species, given a temperature polynomial.
This method is called with a pointer to an array containing the functions of temperature needed by this parameterization, and three pointers to arrays where the computed property values should be written. This method updates only one value in each array.
The form and length of the Temperature Polynomial may vary depending on the parameterization.
tt | vector of evaluated temperature functions |
cp_R | Vector of Dimensionless heat capacities. (length m_kk). |
h_RT | Vector of Dimensionless enthalpies. (length m_kk). |
s_R | Vector of Dimensionless entropies. (length m_kk). |
Temperature Polynomial:
Reimplemented from SpeciesThermoInterpType.
Definition at line 113 of file Nasa9PolyMultiTempRegion.cpp.
References Nasa9PolyMultiTempRegion::m_currRegion, Nasa9PolyMultiTempRegion::m_lowerTempBounds, and Nasa9PolyMultiTempRegion::m_regionPts.
|
virtual |
Compute the reference-state property of one species.
Given temperature T in K, this method updates the values of the non- dimensional heat capacity at constant pressure, enthalpy, and entropy, at the reference pressure, of the species.
temp | Temperature (Kelvin) |
cp_R | Vector of Dimensionless heat capacities. (length m_kk). |
h_RT | Vector of Dimensionless enthalpies. (length m_kk). |
s_R | Vector of Dimensionless entropies. (length m_kk). |
Implements SpeciesThermoInterpType.
Definition at line 129 of file Nasa9PolyMultiTempRegion.cpp.
References Nasa9PolyMultiTempRegion::m_currRegion, Nasa9PolyMultiTempRegion::m_lowerTempBounds, and Nasa9PolyMultiTempRegion::m_regionPts.
|
virtual |
This utility function reports back the type of parameterization and all of the parameters for the species, index.
All parameters are output variables
n | Species index |
type | Integer type of the standard type |
tlow | output - Minimum temperature |
thigh | output - Maximum temperature |
pref | output - reference pressure (Pa). |
coeffs | Vector of coefficients used to set the parameters for the standard state. There are 1 + 11*nzones coefficients. coeffs[0] is equal to nTempZones. index = 1 for each zone: coeffs[index] = minTempZone coeffs[index+1] = maxTempZone coeffs[index+2+i] from i =0,9 are the coefficients themselves |
Implements SpeciesThermoInterpType.
Definition at line 145 of file Nasa9PolyMultiTempRegion.cpp.
|
virtual |
Use MultiSpeciesThermo::modifySpecies instead.
Reimplemented from SpeciesThermoInterpType.
Definition at line 172 of file Nasa9PolyMultiTempRegion.cpp.
References Nasa9PolyMultiTempRegion::m_regionPts, and Cantera::warn_deprecated().
|
protected |
Lower boundaries of each temperature regions.
Definition at line 107 of file Nasa9PolyMultiTempRegion.h.
Referenced by Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion(), Nasa9PolyMultiTempRegion::updateProperties(), and Nasa9PolyMultiTempRegion::updatePropertiesTemp().
|
protected |
Individual temperature region objects.
Definition at line 110 of file Nasa9PolyMultiTempRegion.h.
Referenced by Nasa9PolyMultiTempRegion::modifyParameters(), Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion(), Nasa9PolyMultiTempRegion::updateProperties(), and Nasa9PolyMultiTempRegion::updatePropertiesTemp().
|
mutableprotected |
current region
Definition at line 113 of file Nasa9PolyMultiTempRegion.h.
Referenced by Nasa9PolyMultiTempRegion::updateProperties(), and Nasa9PolyMultiTempRegion::updatePropertiesTemp().