32 VPSSMgr(right.m_vptp_ptr, right.m_spthermo)
39 VPSSMgr_IdealGas& VPSSMgr_IdealGas::operator=(
const VPSSMgr_IdealGas& b)
56 for (
size_t k = 0; k <
m_kk; k++) {
61 void VPSSMgr_IdealGas::getStandardVolumes(doublereal* vol)
const 71 for (
size_t k = 0; k <
m_kk; k++) {
84 if (ss && ss->
attrib(
"model") !=
"ideal_gas") {
85 throw CanteraError(
"VPSSMgr_IdealGas::createInstallPDSS",
86 "standardState model for species isn't " 87 "ideal_gas: " + speciesNode[
"name"]);
89 if (
m_Vss.size() < k+1) {
90 m_Vss.resize(k+1, 0.0);
93 shared_ptr<SpeciesThermoInterpType> stit(
95 stit->validate(speciesNode[
"name"]);
99 *phaseNode_ptr,
true);
108 "To be removed after Cantera 2.3.");
109 return cPDSS_IDEALGAS;
115 "To be removed after Cantera 2.3.");
Header for a general species thermodynamic property manager for a phase (see MultiSpeciesThermo).
bool m_useTmpRefStateStorage
boolean indicating whether temporary reference state storage is used -> default is false ...
doublereal temperature() const
Return the temperature stored in the object.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
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...
virtual void _updateStandardStateThermo()
Updates the standard state thermodynamic functions at the current T and P of the solution.
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)
Declaration file for a derived class that handles the calculation of standard state thermo properties...
bool m_useTmpStandardStateStorage
boolean indicating whether temporary standard state storage is used -> default is false ...
size_t m_kk
Number of species in the phase.
Class XML_Node is a tree-based representation of the contents of an XML file.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual doublereal refPressure(size_t k=npos) const
The reference-state pressure for species k.
virtual VPSSMgr_enumType reportVPSSMgrType() const
This utility function reports the type of manager for the calculation of ss properties.
VPSSMgr_enumType
enum for VPSSMgr types that are responsible for calculating the species standard state and reference-...
virtual void getIntEnergy_RT(doublereal *urt) const
Returns the vector of nondimensional internal Energies of the standard state at the current temperatu...
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.
MultiSpeciesThermo * m_spthermo
Pointer to reference state thermo calculator.
doublereal m_plast
The last pressure at which the Standard State thermodynamic properties were calculated at...
PDSS_enumType
Types of PDSS's.
Base class for exceptions thrown by Cantera classes.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
virtual VPSSMgr * duplMyselfAsVPSSMgr() const
Duplication routine for objects which derive from VPSSMgr.
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.
XML_Node & child(const size_t n) const
Return a changeable reference to the n'th child of the current node.
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 =...
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...
std::string attrib(const std::string &attr) const
Function returns the value of an attribute.
Virtual base class for a species with a pressure dependent standard state.
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_p0
Reference pressure (Pa) must be the same for all species - defaults to 1 atm.
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 PDSS_enumType reportPDSSType(int index=-1) const
This utility function reports the type of parameterization used for the species with index number ind...
A species thermodynamic property manager for a phase.
Derived class for pressure dependent standard states of an ideal gas species.
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.
vector_fp m_gss_RT
Vector containing the species Standard State Gibbs functions at T = m_tlast and P = m_plast...
VPSSMgr_IdealGas(VPStandardStateTP *vp_ptr, MultiSpeciesThermo *spth)
Basic constructor that initializes the object.
vector_fp m_s0_R
Vector containing the species reference entropies at T = m_tlast and P = p_ref.