34 m_useTmpRefStateStorage(false),
35 m_useTmpStandardStateStorage(false)
39 "null pointer for VPStandardStateTP is not permissible");
52 m_useTmpRefStateStorage(false),
53 m_useTmpStandardStateStorage(false)
56 " Cantera 2.3 for all classes derived from VPSSMgr.");
63 " Cantera 2.3 for all classes derived from VPSSMgr.");
117 " Cantera 2.3 for all classes derived from VPSSMgr.");
124 warn_deprecated(
"VPSSMgr::initAllPtrs",
"To be removed after Cantera 2.3 " 125 "for all classes derived from VPSSMgr.");
130 for (
size_t k = 0; k <
m_kk; k++) {
134 PDSS* PDSS_ptr = vp_ptr->providePDSS(k);
183 for (
size_t k = 0; k <
m_kk; k++) {
200 void VPSSMgr::getStandardVolumes(doublereal* vol)
const 208 const vector_fp& VPSSMgr::getStandardVolumes()
const 313 for (
size_t k = 0; k <
m_kk; k++) {
324 for (
size_t k = 0; k <
m_kk; k++) {
368 for (
size_t i = 0; i <
m_kk; i++) {
379 stit->validate(s[
"name"]);
vector_fp m_V0
Vector containing the species reference molar volumes.
Header for a general species thermodynamic property manager for a phase (see MultiSpeciesThermo).
virtual void updateRefStateThermo() const
Updates the internal reference state thermodynamic vectors at the current T of the solution and the r...
vector_fp mPDSS_s0_R
species reference entropies - used by individual PDSS objects
doublereal m_minTemp
minimum temperature for the standard state calculations
Abstract Base class for the thermodynamic manager for an individual species' reference state...
bool m_useTmpRefStateStorage
boolean indicating whether temporary reference state storage is used -> default is false ...
void initLengths()
Initialize the lengths within the object.
vector_fp mPDSS_V0
species reference state molar Volumes - used by individual PDSS objects
SpeciesThermoInterpType * newSpeciesThermoInterpType(int type, double tlow, double thigh, double pref, const double *coeffs)
Create a new SpeciesThermoInterpType object given a corresponding constant.
vector_fp m_sss_R
Vector containing the species Standard State entropies at T = m_tlast and P = m_plast.
doublereal m_maxTemp
maximum temperature for the standard state calculations
An error indicating that an unimplemented function has been called.
Various templated functions that carry out common vector operations (see Templated Utility Functions)...
virtual void update(doublereal T, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state properties for all species.
Virtual base class for the classes that manage the calculation of standard state properties for all t...
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Enthalpy functions for the standard state species at the current T an...
Declaration file for a virtual base class that manages the calculation of standard state properties f...
VPSSMgr & operator=(const VPSSMgr &right)
const size_t npos
index returned by functions to indicate "no position"
bool m_useTmpStandardStateStorage
boolean indicating whether temporary standard state storage is used -> default is false ...
virtual void initAllPtrs(VPStandardStateTP *vp_ptr, MultiSpeciesThermo *sp_ptr)
Initialize the internal shallow pointers in this object.
virtual PDSS * createInstallPDSS(size_t k, const XML_Node &speciesNode, const XML_Node *const phaseNode_ptr)
Install specific content for species k in the standard-state thermodynamic calculator and also create...
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Finalize the thermo after all species have been entered.
doublereal refPressure() const
Return the reference pressure for this phase.
size_t m_kk
Number of species in the phase.
vector_fp mPDSS_cpss_R
species standard state heat capacities - used by individual PDSS objects
Class XML_Node is a tree-based representation of the contents of an XML file.
virtual void getStandardChemPotentials(doublereal *mu) const
Get the array of chemical potentials at unit activity.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
size_t nSpecies() const
Returns the number of species in the phase.
virtual doublereal refPressure(size_t k=npos) const
The reference-state pressure for species k.
virtual void getGibbs_RT(doublereal *grt) const
Get the nondimensional Gibbs functions for the species at their standard states of solution at the cu...
virtual void initThermo()
void initAllPtrs(size_t speciesIndex, VPSSMgr *vpssmgr_ptr, PDSS *PDSS_ptr)
Initialize and/or Reinitialize all the pointers for this object.
virtual doublereal minTemp(size_t k=npos) const
Minimum temperature.
doublereal maxTemp() const
return the minimum temperature
VPSSMgr_enumType
enum for VPSSMgr types that are responsible for calculating the species standard state and reference-...
virtual void getGibbs_RT_ref(doublereal *grt) const
virtual doublereal refPressure(size_t k=npos) const
The reference-state pressure for the standard state.
virtual void _updateStandardStateThermo()
Updates the standard state thermodynamic functions at the current T and P of the solution.
vector_fp mPDSS_cp0_R
species reference heat capacities - used by individual PDSS objects
virtual void getCp_R_ref(doublereal *cpr) const
vector_fp m_cp0_R
Vector containing the species reference constant pressure heat capacities at T = m_tlast and P = p_re...
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
virtual doublereal maxTemp(size_t k=npos) const
Maximum temperature.
VPStandardStateTP * m_vptp_ptr
Variable pressure ThermoPhase object.
MultiSpeciesThermo * m_spthermo
Pointer to reference state thermo calculator.
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
doublereal m_plast
The last pressure at which the Standard State thermodynamic properties were calculated at...
PDSS_enumType
Types of PDSS's.
vector_fp mPDSS_g0_RT
species reference Gibbs free energies - used by individual PDSS objects
Classes providing support for XML data files.
virtual void setState_T(doublereal T)
Set the temperature (K)
Class for the thermodynamic manager for an individual species' reference state which uses the PDSS ba...
virtual void _updateRefStateThermo() const
Updates the reference state thermodynamic functions at the current T of the solution and the referenc...
SpeciesThermoInterpType * provideSTIT(size_t k)
Provide the SpeciesthermoInterpType object.
Base class for exceptions thrown by Cantera classes.
virtual void getStandardVolumes_ref(doublereal *vol) const
Get the molar volumes of the species reference states at the current T and P_ref of the solution...
virtual VPSSMgr_enumType reportVPSSMgrType() const
This utility function reports the type of manager for the calculation of ss properties.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
virtual void getIntEnergy_RT(doublereal *urt) const
Returns the vector of nondimensional internal Energies of the standard state at the current temperatu...
vector_fp mPDSS_sss_R
species standard state entropies - used by individual PDSS objects
vector_fp mPDSS_Vss
species standard state molar Volumes - used by individual PDSS objects
vector_fp m_Vss
Vector containing the species standard state volumes at T = m_tlast and P = m_plast.
vector_fp mPDSS_gss_RT
species standard state Gibbs free energies - used by individual PDSS objects
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
virtual void updateStandardStateThermo()
Updates the internal standard state thermodynamic vectors at the current T and P of the solution...
vector_fp m_hss_RT
Vector containing the species Standard State enthalpies at T = m_tlast and P = m_plast.
VPSSMgr(VPStandardStateTP *vptp_ptr, MultiSpeciesThermo *spth=0)
Constructor.
vector_fp m_cpss_R
Vector containing the species Standard State constant pressure heat capacities at T = m_tlast and P =...
vector_fp m_h0_RT
Vector containing the species reference enthalpies at T = m_tlast and P = p_ref.
Header for factory functions to build instances of classes that manage the standard-state thermodynam...
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
Virtual base class for a species with a pressure dependent standard state.
vector_fp mPDSS_hss_RT
species standard state enthalpies - used by individual PDSS objects
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
void scale(InputIter begin, InputIter end, OutputIter out, S scale_factor)
Multiply elements of an array by a scale factor.
vector_fp m_g0_RT
Vector containing the species reference Gibbs functions at T = m_tlast and P = p_ref.
doublereal m_p0
Reference pressure (Pa) must be the same for all species - defaults to 1 atm.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
virtual void getEntropy_R_ref(doublereal *er) const
doublereal minTemp() const
return the minimum temperature
A species thermodynamic property manager for a phase.
vector_fp mPDSS_h0_RT
species reference enthalpies - used by individual PDSS objects
void installSTSpecies(size_t k, const XML_Node &speciesNode, const XML_Node *phaseNode_ptr)
Install specific content for species k in the reference-state thermodynamic SpeciesManager object...
doublereal m_tlast
The last temperature at which the standard state thermodynamic properties were calculated at...
virtual PDSS_enumType reportPDSSType(int index=-1) const
This utility function reports the type of parameterization used for the species with index number ind...
virtual void install_STIT(size_t index, shared_ptr< SpeciesThermoInterpType > stit)
Install a new species thermodynamic property parameterization for one species.
Namespace for the Cantera kernel.
virtual void setState_TP(doublereal T, doublereal P)
Set the temperature (K) and pressure (Pa)
vector_fp m_gss_RT
Vector containing the species Standard State Gibbs functions at T = m_tlast and P = m_plast...
virtual VPSSMgr * duplMyselfAsVPSSMgr() const
Duplication routine for objects which derive from VPSSMgr.
virtual void setState_P(doublereal P)
Set the pressure (Pa)
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
virtual void getStandardVolumes(doublereal *vol) const
Get the molar volumes of each species in their standard states at the current T and P of the solution...
virtual void getGibbs_ref(doublereal *g) const
vector_fp m_s0_R
Vector containing the species reference entropies at T = m_tlast and P = p_ref.
virtual void getCp_R(doublereal *cpr) const
Get the nondimensional Heat Capacities at constant pressure for the standard state of the species at ...