25 m_pdssType(cPDSS_UNDEF),
50 m_pdssType(cPDSS_UNDEF),
81 m_pdssType(cPDSS_UNDEF),
90 m_spindex(b.m_spindex),
91 m_spthermo(b.m_spthermo),
92 m_h0_RT_ptr(b.m_h0_RT_ptr),
93 m_cp0_R_ptr(b.m_cp0_R_ptr),
94 m_s0_R_ptr(b.m_s0_R_ptr),
95 m_g0_RT_ptr(b.m_g0_RT_ptr),
97 m_hss_RT_ptr(b.m_hss_RT_ptr),
98 m_cpss_R_ptr(b.m_cpss_R_ptr),
99 m_sss_R_ptr(b.m_sss_R_ptr),
100 m_gss_RT_ptr(b.m_gss_RT_ptr),
101 m_Vss_ptr(b.m_Vss_ptr)
167 return new PDSS(*
this);
219 err(
"enthalpy_mole()");
231 err(
"intEnergy_mole()");
237 err(
"entropy_mole()");
271 err(
"molarVolume()");
289 err(
"gibbs_RT_ref()");
295 err(
"enthalpy_RT_ref()");
301 err(
"entropy_RT_ref()");
307 err(
"entropy_RT_ref()");
313 err(
"molarVolume_ref()");
352 throw CanteraError(
"PDSS::thermalExpansionCoeff()",
"unimplemented");
358 err(
"critTemperature()");
364 err(
"critPressure()");
370 err(
"critDensity()");
400 err(
"setState_TP()");
405 err(
"setState_TR()");
410 err(
"satPressure()");
421 doublereal& minTemp_,
422 doublereal& maxTemp_,
423 doublereal& refPressure_)
const
virtual doublereal cpDelp_mole() const
Get the difference in standard state heat capacity between the current pressure and the reference pre...
virtual doublereal gibbs_RT() const
Return the molar Gibbs free energy divided by RT.
virtual doublereal cv_mole() const
Return the molar const volume heat capacity in units of J kmol-1 K-1.
vector_fp mPDSS_s0_R
species reference entropies - used by individual PDSS objects
doublereal molecularWeight(size_t k) const
Molecular weight of species k.
void initPtrs()
Initialize all of the internal shallow pointers that can be initialized.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
virtual doublereal critPressure() const
critical pressure
virtual doublereal cp_R_ref() const
Return the molar heat capacity divided by R at reference pressure.
SpeciesThermo * m_spthermo
Pointer to the species thermodynamic property manager.
vector_fp mPDSS_V0
species reference state molar Volumes - used by individual PDSS objects
doublereal * m_cpss_R_ptr
Standard state heat capacity divided by R.
Virtual base class for the classes that manage the calculation of standard state properties for all t...
virtual doublereal intEnergy_mole() const
Return the molar internal Energy in units of J kmol-1.
virtual void initThermoXML(const XML_Node &phaseNode, const std::string &id)
Initialization routine for the PDSS object based on the phaseNode.
virtual void setPressure(doublereal pres)
Sets the pressure in the object.
doublereal * m_h0_RT_ptr
Reference state enthalpy divided by RT.
const size_t npos
index returned by functions to indicate "no position"
virtual doublereal maxTemp(size_t k=npos) const
Maximum temperature.
void err(const std::string &msg) const
Set an error within this object for an unhandled capability.
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
virtual doublereal satPressure(doublereal T)
saturation pressure
virtual doublereal enthalpy_RT() const
Return the standard state molar enthalpy divided by RT.
doublereal m_pres
State of the system - pressure.
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.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
Virtual base class for the calculation of multiple-species thermodynamic reference-state property man...
virtual doublereal thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
VPSSMgr * m_vpssmgr_ptr
Pointer to the VPSS manager for this object.
virtual void initAllPtrs(VPStandardStateTP *vptp_ptr, VPSSMgr *vpssmgr_ptr, SpeciesThermo *spthermo_ptr)
Initialize or Reinitialize all shallow pointers in the object.
virtual doublereal gibbs_RT_ref() const
Return the molar gibbs free energy divided by RT at reference pressure.
size_t m_spindex
Species index in the ThermoPhase corresponding to this species.
virtual void initThermo()
doublereal temperature() const
Return the current stored temperature.
void setMolecularWeight(doublereal mw)
Set the molecular weight of the species.
doublereal * m_gss_RT_ptr
Standard state Gibbs free energy divided by RT.
PDSS_enumType m_pdssType
Enumerated type describing the type of the PDSS object.
virtual doublereal enthalpyDelp_mole() const
Get the difference in the standard state enthalpy between the current pressure and the reference pres...
Pure Virtual base class for the species thermo manager classes.
doublereal * m_sss_R_ptr
Standard state entropy divided by R.
virtual doublereal gibbs_mole() const
Return the molar Gibbs free energy in units of J kmol-1.
virtual PDSS * duplMyselfAsPDSS() const
Duplication routine for objects which inherit from PDSS.
vector_fp mPDSS_cp0_R
species reference heat capacities - used by individual PDSS objects
virtual doublereal entropy_R() const
Return the standard state entropy divided by RT.
virtual void initThermo()
Initialization routine for all of the shallow pointers.
virtual doublereal critTemperature() const
critical temperature
virtual doublereal entropy_mole() const
Return the molar entropy in units of J kmol-1 K-1.
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
virtual void setTemperature(doublereal temp)
Set the internal temperature.
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 doublereal refPressure(size_t k=npos) const
The reference-state pressure for the standard state.
virtual doublereal pressure() const
Returns the pressure (Pa)
virtual doublereal enthalpy_mole() const
Return the molar enthalpy in units of J kmol-1.
#define AssertThrow(expr, procedure)
Assertion must be true or an error is thrown.
doublereal * m_s0_R_ptr
Reference state entropy divided by R.
Base class for exceptions thrown by Cantera classes.
virtual doublereal entropyDelp_mole() const
Get the difference in the standard state entropy between the current pressure and the reference press...
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
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
virtual doublereal density() const
Return the standard state density at standard state.
doublereal m_maxTemp
Maximum temperature.
doublereal m_minTemp
Minimum temperature.
virtual doublereal minTemp(size_t k=npos) const
Minimum temperature.
doublereal * m_hss_RT_ptr
Standard state enthalpy divided by RT.
vector_fp mPDSS_gss_RT
species standard state gibbs free energies - used by individual PDSS objects
virtual void setState_TR(doublereal temp, doublereal rho)
Set the internal temperature and density.
virtual doublereal critDensity() const
critical density
virtual doublereal cp_mole() const
Return the molar const pressure heat capacity in units of J kmol-1 K-1.
virtual void reportParams(size_t &kindex, int &type, doublereal *const c, doublereal &minTemp, doublereal &maxTemp, doublereal &refPressure) const
This utility function reports back the type of parameterization and all of the parameters for the spe...
virtual doublereal cp_R() const
Return the molar const pressure heat capacity divided by RT.
virtual doublereal molarVolume() const
Return the molar volume at standard state.
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
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 ~PDSS()
Destructor for the phase.
doublereal molecularWeight() const
Return the molecular weight of the species in units of kg kmol-1.
VPStandardStateTP * m_tp
ThermoPhase which this species belongs to.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
doublereal m_temp
Current temperature used by the PDSS object.
virtual doublereal entropy_R_ref() const
Return the molar entropy divided by R at reference pressure.
PDSS & operator=(const PDSS &b)
Assignment operator.
doublereal * m_g0_RT_ptr
Reference state Gibbs free energy divided by RT.
doublereal * m_cp0_R_ptr
Reference state heat capacity divided by R.
virtual SpeciesThermo & speciesThermo(int k=-1)
Return a changeable reference to the calculation manager for species reference-state thermodynamic pr...
virtual doublereal gibbsDelp_mole() const
Get the difference in the standard state gibbs free energy between the current pressure and the refer...
doublereal * m_Vss_ptr
Standard State molar volume (m3 kg-1)
doublereal * m_V0_ptr
Reference state molar volume (m3 kg-1)
vector_fp mPDSS_h0_RT
species reference enthalpies - used by individual PDSS objects
VPSSMgr * provideVPSSMgr()
Return a pointer to the VPSSMgr for this phase.
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
PDSS_enumType reportPDSSType() const
Returns the type of the standard state parameterization.
doublereal m_p0
Reference state pressure of the species.
virtual doublereal molarVolume_ref() const
Return the molar volume at reference pressure.
doublereal m_mw
Molecular Weight of the species.
virtual doublereal enthalpy_RT_ref() const
Return the molar enthalpy divided by RT at reference pressure.