Cantera
2.1.2
|
This species thermo manager requires that all species have one of two parameterizations. More...
#include <SpeciesThermoMgr.h>
Public Member Functions | |
SpeciesThermoDuo () | |
Constructor. More... | |
SpeciesThermoDuo (const SpeciesThermoDuo &right) | |
copy constructor More... | |
SpeciesThermoDuo & | operator= (const SpeciesThermoDuo &right) |
Assignment operator. More... | |
virtual SpeciesThermo * | duplMyselfAsSpeciesThermo () const |
Duplication routine for objects derived from SpeciesThermo. More... | |
virtual void | install (const std::string &name, size_t sp, int type, const doublereal *c, doublereal minTemp, doublereal maxTemp, doublereal refPressure) |
Install a new species thermodynamic property parameterization for one species. More... | |
virtual void | install_STIT (SpeciesThermoInterpType *stit_ptr) |
Install a new species thermodynamic property parameterization for one species. More... | |
virtual void | update (doublereal t, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const |
Compute the reference-state properties for all species. More... | |
virtual doublereal | minTemp (size_t k=npos) const |
Minimum temperature. More... | |
virtual doublereal | maxTemp (size_t k=npos) const |
Maximum temperature. More... | |
virtual doublereal | refPressure (size_t k=npos) const |
The reference-state pressure for species k. More... | |
virtual int | reportType (size_t k) const |
This utility function reports the type of parameterization used for the species with index number index. More... | |
virtual void | reportParams (size_t index, int &type, doublereal *const c, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure) const |
Public Member Functions inherited from SpeciesThermo | |
SpeciesThermo () | |
Constructor. More... | |
virtual | ~SpeciesThermo () |
Destructor. More... | |
SpeciesThermo (const SpeciesThermo &right) | |
Copy Constructor for the SpeciesThermo object. More... | |
SpeciesThermo & | operator= (const SpeciesThermo &right) |
Assignment operator for the SpeciesThermo object. More... | |
virtual void | update_one (size_t k, doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const |
Like update(), but only updates the single species k. More... | |
Private Attributes | |
T1 | m_thermo1 |
Thermo Type 1. More... | |
T2 | m_thermo2 |
Thermo Type 2. More... | |
doublereal | m_p0 |
Reference pressure. More... | |
std::map< size_t, int > | speciesToType |
map from species to type More... | |
Additional Inherited Members | |
Public Attributes inherited from SpeciesThermo | |
bool | m_allow_discontinuities |
This species thermo manager requires that all species have one of two parameterizations.
Note this seems to be a slow way to do things, and it may be on its way out.
Definition at line 56 of file SpeciesThermoMgr.h.
|
inline |
Constructor.
Definition at line 60 of file SpeciesThermoMgr.h.
|
inline |
copy constructor
right | Object to be copied |
Definition at line 66 of file SpeciesThermoMgr.h.
References SpeciesThermoDuo< T1, T2 >::operator=().
SpeciesThermoDuo< T1, T2 > & operator= | ( | const SpeciesThermoDuo< T1, T2 > & | right | ) |
Assignment operator.
right | Object to be copied |
Definition at line 142 of file SpeciesThermoMgr.h.
References SpeciesThermoDuo< T1, T2 >::m_p0, SpeciesThermoDuo< T1, T2 >::m_thermo1, SpeciesThermoDuo< T1, T2 >::m_thermo2, and SpeciesThermoDuo< T1, T2 >::speciesToType.
Referenced by SpeciesThermoDuo< T1, T2 >::SpeciesThermoDuo().
|
virtual |
Duplication routine for objects derived from SpeciesThermo.
This function can be used to duplicate objects derived from SpeciesThermo even if the application only has a pointer to SpeciesThermo to work with.
Implements SpeciesThermo.
Definition at line 158 of file SpeciesThermoMgr.h.
|
virtual |
Install a new species thermodynamic property parameterization for one species.
name | Name of the species |
index | The 'update' method will update the property values for this species at position i index in the property arrays. |
type | int flag specifying the type of parameterization to be installed. |
c | vector of coefficients for the parameterization. This vector is simply passed through to the parameterization constructor. |
minTemp | minimum temperature for which this parameterization is valid. |
maxTemp | maximum temperature for which this parameterization is valid. |
refPressure | standard-state pressure for this parameterization. |
Implements SpeciesThermo.
Definition at line 165 of file SpeciesThermoMgr.h.
|
inlinevirtual |
Install a new species thermodynamic property parameterization for one species.
stit_ptr | Pointer to the SpeciesThermoInterpType object This will set up the thermo for one species |
Implements SpeciesThermo.
Definition at line 83 of file SpeciesThermoMgr.h.
|
virtual |
Compute the reference-state properties for all 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 each of the standard states.
T | 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 SpeciesThermo.
Definition at line 187 of file SpeciesThermoMgr.h.
|
inlinevirtual |
Minimum temperature.
If no argument is supplied, this method returns the minimum temperature for which all parameterizations are valid. If an integer index k is supplied, then the value returned is the minimum temperature for species k in the phase.
k | Species index |
Implements SpeciesThermo.
Definition at line 90 of file SpeciesThermoMgr.h.
References SpeciesThermoDuo< T1, T2 >::m_thermo1, and SpeciesThermoDuo< T1, T2 >::m_thermo2.
|
inlinevirtual |
Maximum temperature.
If no argument is supplied, this method returns the maximum temperature for which all parameterizations are valid. If an integer index k is supplied, then the value returned is the maximum temperature for parameterization k.
k | Species Index |
Implements SpeciesThermo.
Definition at line 94 of file SpeciesThermoMgr.h.
References SpeciesThermoDuo< T1, T2 >::m_thermo1, and SpeciesThermoDuo< T1, T2 >::m_thermo2.
|
inlinevirtual |
The reference-state pressure for species k.
Returns the reference state pressure in Pascals for species k. If k is left out of the argument list, it returns the reference state pressure for the first species. Note that some SpeciesThermo implementations, such as those for ideal gases, require that all species in the same phase have the same reference state pressures.
k | Species Index |
Implements SpeciesThermo.
Definition at line 98 of file SpeciesThermoMgr.h.
References SpeciesThermoDuo< T1, T2 >::m_p0.
|
virtual |
This utility function reports the type of parameterization used for the species with index number index.
index | Species index |
Implements SpeciesThermo.
Definition at line 196 of file SpeciesThermoMgr.h.
|
virtual |
|
private |
Thermo Type 1.
Definition at line 126 of file SpeciesThermoMgr.h.
Referenced by SpeciesThermoDuo< T1, T2 >::maxTemp(), SpeciesThermoDuo< T1, T2 >::minTemp(), and SpeciesThermoDuo< T1, T2 >::operator=().
|
private |
Thermo Type 2.
Definition at line 128 of file SpeciesThermoMgr.h.
Referenced by SpeciesThermoDuo< T1, T2 >::maxTemp(), SpeciesThermoDuo< T1, T2 >::minTemp(), and SpeciesThermoDuo< T1, T2 >::operator=().
|
private |
Reference pressure.
Definition at line 130 of file SpeciesThermoMgr.h.
Referenced by SpeciesThermoDuo< T1, T2 >::operator=(), and SpeciesThermoDuo< T1, T2 >::refPressure().
|
private |
map from species to type
Definition at line 132 of file SpeciesThermoMgr.h.
Referenced by SpeciesThermoDuo< T1, T2 >::operator=().