34 VPSSMgr(right.m_vptp_ptr, right.m_spthermo)
58 for (
size_t k = 0; k <
m_kk; k++) {
63 void VPSSMgr_IdealGas::getStandardVolumes(doublereal* vol)
const
74 for (
size_t k = 0; k <
m_kk; k++) {
95 if (ss->
attrib(
"model") !=
"ideal_gas") {
96 throw CanteraError(
"VPSSMgr_IdealGas::createInstallPDSS",
97 "standardState model for species isn't "
98 "ideal_gas: " + speciesNode[
"name"]);
101 if (
m_Vss.size() < k+1) {
102 m_Vss.resize(k+1, 0.0);
105 shared_ptr<SpeciesThermoInterpType> stit(
107 stit->validate(speciesNode[
"name"]);
111 *phaseNode_ptr,
true);
119 return cPDSS_IDEALGAS;
doublereal temperature() const
Return the temperature stored in the object.
bool m_useTmpRefStateStorage
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
virtual void _updateStandardStateThermo()
Updates the standard state thermodynamic functions at the current T and P of the solution.
std::string attrib(const std::string &attr) const
Function returns the value of an attribute.
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.
Virtual base class for the classes that manage the calculation of standard state properties for all t...
virtual PDSS * createInstallPDSS(size_t k, const XML_Node &speciesNode, const XML_Node *const phaseNode_ptr)
Create and install an ideal gas standard state manager for one species within this object...
VPSSMgr & operator=(const VPSSMgr &right)
Assignment operator.
Declaration file for a derived class that handles the calculation of standard state thermo properties...
bool m_useTmpStandardStateStorage
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Finalize the thermo after all species have been entered.
virtual PDSS_enumType reportPDSSType(int index=-1) const
This utility function reports the type of parameterization used for the species with index number ind...
size_t m_kk
Number of species in the phase.
virtual void install_STIT(size_t index, shared_ptr< SpeciesThermoInterpType > stit)=0
Install a new species thermodynamic property parameterization for one species.
Class XML_Node is a tree-based representation of the contents of an XML file.
virtual VPSSMgr_enumType reportVPSSMgrType() const
This utility function reports the type of manager for the calculation of ss properties.
VPSSMgr_IdealGas & operator=(const VPSSMgr_IdealGas &right)
Assignment operator.
VPSSMgr_IdealGas(VPStandardStateTP *vp_ptr, SpeciesThermo *spth)
Basic constructor that initializes the object.
Pure Virtual base class for the species thermo manager classes.
VPSSMgr_enumType
enum for VPSSMgr types that are responsible for calculating the species standard state and reference-...
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
Pure Virtual Base class for individual species reference state thermodynamic managers and text for th...
const XML_Node * findByName(const std::string &nm, int depth=100000) const
This routine carries out a recursive search for an XML node based on the name of the node...
Declarations for the class PDSS_IdealGas (pressure dependent standard state) which handles calculatio...
vector_fp m_cp0_R
Vector containing the species reference constant pressure heat capacities at T = m_tlast and P = p_re...
VPStandardStateTP * m_vptp_ptr
Variable pressure ThermoPhase object.
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Finalize the thermo after all species have been entered.
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
doublereal m_plast
The last pressure at which the Standard State thermodynamic properties were calculated at...
PDSS_enumType
Types of PDSS's.
virtual doublereal refPressure(size_t k=npos) const =0
The reference-state pressure for species k.
Base class for exceptions thrown by Cantera classes.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
Variable pressures SS calculator for ideal gas phases.
vector_fp m_Vss
Vector containing the species standard state volumes at T = m_tlast and P = m_plast.
virtual void getIntEnergy_RT(doublereal *urt) const
Returns the vector of nondimensional internal Energies of the standard state at the current temperatu...
vector_fp m_hss_RT
Vector containing the species Standard State enthalpies at T = m_tlast and P = m_plast.
vector_fp m_cpss_R
Vector containing the species Standard State constant pressure heat capacities at T = m_tlast and P =...
Header for factory to build instances of classes that manage the standard-state thermodynamic propert...
Virtual base class for a species with a pressure dependent standard state.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
A VPSSMgr where all species in the phase obey an ideal gas equation of state.
virtual VPSSMgr * duplMyselfAsVPSSMgr() const
Duplication routine for objects which derive from VPSSMgr.
SpeciesThermo * m_spthermo
Pointer to reference state thermo calculator.
Derived class for pressure dependent standard states of an ideal gas species.
vector_fp m_gss_RT
Vector containing the species Standard State Gibbs functions at T = m_tlast and P = m_plast...
vector_fp m_s0_R
Vector containing the species reference entropies at T = m_tlast and P = p_ref.