Cantera  2.1.2
Public Member Functions | Protected Attributes | List of all members
SpeciesThermoInterpType Class Referenceabstract

Pure Virtual Base class for the thermodynamic manager for an individual species' reference state. More...

#include <SpeciesThermoInterpType.h>

Inheritance diagram for SpeciesThermoInterpType:
[legend]

Public Member Functions

 SpeciesThermoInterpType ()
 Constructor. More...
 
 SpeciesThermoInterpType (size_t n, doublereal tlow, doublereal thigh, doublereal pref)
 Constructor. More...
 
virtual ~SpeciesThermoInterpType ()
 Destructor. More...
 
virtual SpeciesThermoInterpTypeduplMyselfAsSpeciesThermoInterpType () const =0
 duplicator More...
 
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 int reportType () const =0
 Returns an integer representing the type of parameterization. More...
 
virtual size_t speciesIndex () const
 Returns an integer representing the species index. More...
 
virtual void updateProperties (const doublereal *tempPoly, 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 =0
 Compute the reference-state property of one species. More...
 
virtual void reportParameters (size_t &index, int &type, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure, doublereal *const coeffs) const =0
 This utility function reports back the type of parameterization and all of the parameters for the species, index. More...
 
virtual void modifyParameters (doublereal *coeffs)
 Modify parameters for the standard state. More...
 

Protected Attributes

doublereal m_lowT
 lowest valid temperature More...
 
doublereal m_highT
 Highest valid temperature. More...
 
doublereal m_Pref
 Reference state pressure. More...
 
size_t m_index
 species index More...
 

Detailed Description

Pure Virtual Base class for the thermodynamic manager for an individual species' reference state.

This differs from the SpeciesThermo virtual base class in the sense that this class is meant to handle only one species. The speciesThermo class is meant to handle the calculation of all the species (or a large subset) in a phase.

One key feature is that the update routines use the same form as the update routines in the speciesThermo class. They update into a vector of cp_R, s_R, and H_R that spans all of the species in a phase. Therefore, this class must carry along a species index into that vector.

These routine may be templated. A key requirement of the template is that there is a constructor with the following form:

SpeciesThermoInterpType(int index, doublereal tlow, doublereal thigh,
doublereal pref, const doublereal* coeffs)

Definition at line 157 of file SpeciesThermoInterpType.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 16 of file SpeciesThermoInterpType.cpp.

SpeciesThermoInterpType ( size_t  n,
doublereal  tlow,
doublereal  thigh,
doublereal  pref 
)
inline

Constructor.

Definition at line 165 of file SpeciesThermoInterpType.h.

Destructor.

Definition at line 24 of file SpeciesThermoInterpType.cpp.

Member Function Documentation

virtual SpeciesThermoInterpType* duplMyselfAsSpeciesThermoInterpType ( ) const
pure virtual
virtual doublereal minTemp ( ) const
inlinevirtual

Returns the minimum temperature that the thermo parameterization is valid.

Reimplemented in STITbyPDSS.

Definition at line 181 of file SpeciesThermoInterpType.h.

References SpeciesThermoInterpType::m_lowT.

Referenced by GeneralSpeciesThermo::install_STIT(), GeneralSpeciesThermo::minTemp(), and Nasa9PolyMultiTempRegion::updateProperties().

virtual doublereal maxTemp ( ) const
inlinevirtual
virtual doublereal refPressure ( ) const
inlinevirtual

Returns the reference pressure (Pa)

Reimplemented in STITbyPDSS.

Definition at line 192 of file SpeciesThermoInterpType.h.

References SpeciesThermoInterpType::m_Pref.

Referenced by Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion(), and GeneralSpeciesThermo::refPressure().

virtual int reportType ( ) const
pure virtual

Returns an integer representing the type of parameterization.

Implemented in ShomatePoly2, STITbyPDSS, ShomatePoly, Mu0Poly, NasaPoly2, Nasa9PolyMultiTempRegion, NasaPoly1, Nasa9Poly1, Adsorbate, ConstCpPoly, and StatMech.

Referenced by GeneralSpeciesThermo::reportType().

virtual size_t speciesIndex ( ) const
inlinevirtual

Returns an integer representing the species index.

Definition at line 200 of file SpeciesThermoInterpType.h.

References SpeciesThermoInterpType::m_index.

Referenced by GeneralSpeciesThermo::install_STIT(), and Nasa9PolyMultiTempRegion::Nasa9PolyMultiTempRegion().

void updateProperties ( const doublereal *  tempPoly,
doublereal *  cp_R,
doublereal *  h_RT,
doublereal *  s_R 
) const
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.

Parameters
tempPolyvector of temperature polynomials
cp_RVector of Dimensionless heat capacities. (length m_kk).
h_RTVector of Dimensionless enthalpies. (length m_kk).
s_RVector of Dimensionless entropies. (length m_kk).

Reimplemented in ShomatePoly2, STITbyPDSS, ShomatePoly, Mu0Poly, NasaPoly2, Nasa9PolyMultiTempRegion, NasaPoly1, Nasa9Poly1, ConstCpPoly, and StatMech.

Definition at line 28 of file SpeciesThermoInterpType.cpp.

References SpeciesThermoInterpType::updatePropertiesTemp().

virtual void updatePropertiesTemp ( const doublereal  temp,
doublereal *  cp_R,
doublereal *  h_RT,
doublereal *  s_R 
) const
pure 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, Pref of one of the species. The species index is used to reference into the cp_R, h_RT, and s_R arrays.

Parameters
tempTemperature (Kelvin)
cp_RVector of Dimensionless heat capacities. (length m_kk).
h_RTVector of Dimensionless enthalpies. (length m_kk).
s_RVector of Dimensionless entropies. (length m_kk).

Implemented in ShomatePoly2, STITbyPDSS, ShomatePoly, Nasa9PolyMultiTempRegion, NasaPoly1, Nasa9Poly1, NasaPoly2, Mu0Poly, StatMech, ConstCpPoly, and Adsorbate.

Referenced by GeneralSpeciesThermo::update(), GeneralSpeciesThermo::update_one(), and SpeciesThermoInterpType::updateProperties().

virtual void reportParameters ( size_t &  index,
int &  type,
doublereal &  minTemp,
doublereal &  maxTemp,
doublereal &  refPressure,
doublereal *const  coeffs 
) const
pure virtual

This utility function reports back the type of parameterization and all of the parameters for the species, index.

All parameters are output variables

Parameters
indexSpecies index
typeInteger type of the standard type
minTempoutput - Minimum temperature
maxTempoutput - Maximum temperature
refPressureoutput - reference pressure (Pa).
coeffsVector of coefficients used to set the parameters for the standard state.
Deprecated:

Implemented in ShomatePoly2, STITbyPDSS, ShomatePoly, Nasa9PolyMultiTempRegion, Nasa9Poly1, NasaPoly1, NasaPoly2, Mu0Poly, StatMech, ConstCpPoly, and Adsorbate.

Referenced by GeneralSpeciesThermo::reportParams().

virtual void modifyParameters ( doublereal *  coeffs)
inlinevirtual

Modify parameters for the standard state.

Parameters
coeffsVector of coefficients used to set the parameters for the standard state.
Deprecated:

Reimplemented in ShomatePoly2, STITbyPDSS, ShomatePoly, Nasa9PolyMultiTempRegion, NasaPoly1, Nasa9Poly1, Mu0Poly, StatMech, and ConstCpPoly.

Definition at line 267 of file SpeciesThermoInterpType.h.

Member Data Documentation

doublereal m_lowT
protected
doublereal m_highT
protected
doublereal m_Pref
protected
size_t m_index
protected

The documentation for this class was generated from the following files: