Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VPSSMgr_Water_ConstVol.h
Go to the documentation of this file.
1 /**
2  * @file VPSSMgr_Water_ConstVol.h
3  * Declaration file for a derived class that handles the calculation
4  * of standard state thermo properties for real water and
5  * a set of species which have a constant molar volume pressure
6  * dependence
7  * (see \ref mgrpdssthermocalc and
8  * class \link Cantera::VPSSMgr_ConstVol VPSSMgr_ConstVol\endlink).
9  */
10 /*
11  * Copyright (2005) Sandia Corporation. Under the terms of
12  * Contract DE-AC04-94AL85000 with Sandia Corporation, the
13  * U.S. Government retains certain rights in this software.
14  */
15 
16 #ifndef CT_VPSSMGR_WATER_CONSTVOL_H
17 #define CT_VPSSMGR_WATER_CONSTVOL_H
18 
19 #include "VPSSMgr.h"
20 
21 namespace Cantera
22 {
23 class PDSS_Water;
24 
25 //! Handles the calculation of standard state thermo properties for real water
26 //! and a set of species which have a constant molar volume pressure
27 //! dependence.
29 {
30 public:
31  //! Base Constructor
32  /*!
33  * Initialize the object.
34  *
35  * @param vp_ptr Pointer to the VPStandardStateTP standard state
36  * @param sp_ptr Pointer to the SpeciesThermo standard state
37  */
39 
40  //! Copy Constructor
42 
43  //! Assignment operator
45 
46  virtual VPSSMgr* duplMyselfAsVPSSMgr() const;
47 
48 private:
49  /*!
50  * @name Properties of the Standard State of the Species in the Solution
51  *
52  * Within VPStandardStateTP, these properties are calculated via a common
53  * routine, _updateStandardStateThermo(), which must be overloaded in
54  * inherited objects. The values are cached within this object, and are
55  * not recalculated unless the temperature or pressure changes.
56  */
57  //@{
58  virtual void _updateStandardStateThermo();
59  virtual void _updateRefStateThermo() const;
60  //@}
61 
62 public:
63 
64  /*! @name Thermodynamic Values for the Species Reference States
65  * There are also temporary variables for holding the species reference-
66  * state values of Cp, H, S, and V at the last temperature and reference
67  * pressure called. These functions are not recalculated if a new call is
68  * made using the previous temperature. All calculations are done within
69  * the routine _updateRefStateThermo().
70  */
71  //@{
72 
73  virtual void getEnthalpy_RT_ref(doublereal* hrt) const;
74  virtual void getGibbs_RT_ref(doublereal* grt) const ;
75  virtual void getGibbs_ref(doublereal* g) const ;
76  virtual void getEntropy_R_ref(doublereal* er) const ;
77  virtual void getCp_R_ref(doublereal* cpr) const ;
78  virtual void getStandardVolumes_ref(doublereal* vol) const ;
79 
80  //! @}
81  /*! @name Initialization Methods - For Internal use
82  * The following methods are used in the process of constructing
83  * the phase and setting its parameters from a specification in an
84  * input file. They are not normally used in application programs.
85  * To see how they are used, see importPhase().
86  */
87  //@{
88 
89  virtual void initThermo();
90  virtual void initThermoXML(XML_Node& phaseNode, const std::string& id);
91  //@}
92 
93  virtual PDSS* createInstallPDSS(size_t k, const XML_Node& speciesNode,
94  const XML_Node* const phaseNode_ptr);
95 
96  virtual PDSS_enumType reportPDSSType(int index = -1) const ;
97  virtual VPSSMgr_enumType reportVPSSMgrType() const ;
98  virtual void initAllPtrs(VPStandardStateTP* vp_ptr, SpeciesThermo* sp_ptr);
99 
100 private:
101  //! Pointer to the Water PDSS object.
102  /*!
103  * This is a shallow copy. The water PDSS object is owned by the VPStandardStateTP
104  * object.
105  */
107 };
108 }
109 
110 #endif
PDSS_Water * m_waterSS
Pointer to the Water PDSS 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 base class for the classes that manage the calculation of standard state properties for all t...
Definition: VPSSMgr.h:235
Declaration file for a virtual base class that manages the calculation of standard state properties f...
VPSSMgr_Water_ConstVol & operator=(const VPSSMgr_Water_ConstVol &right)
Assignment operator.
virtual void initAllPtrs(VPStandardStateTP *vp_ptr, SpeciesThermo *sp_ptr)
Initialize the internal shallow pointers in this object.
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:100
Handles the calculation of standard state thermo properties for real water and a set of species which...
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 VPSSMgr_enumType reportVPSSMgrType() const
This utility function reports the type of manager for the calculation of ss properties.
virtual void getCp_R_ref(doublereal *cpr) const
virtual void getGibbs_ref(doublereal *g) const
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-...
Definition: mix_defs.h:135
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
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...
Class for the liquid water pressure dependent standard state.
Definition: PDSS_Water.h:51
PDSS_enumType
Types of PDSS's.
Definition: mix_defs.h:121
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Finalize the thermo after all species have been entered.
VPSSMgr_Water_ConstVol(VPStandardStateTP *vp_ptr, SpeciesThermo *sp_ptr)
Base Constructor.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
virtual void getEntropy_R_ref(doublereal *er) const
virtual void getGibbs_RT_ref(doublereal *grt) const
virtual VPSSMgr * duplMyselfAsVPSSMgr() const
Duplication routine for objects which derive from VPSSMgr.
Virtual base class for a species with a pressure dependent standard state.
Definition: PDSS.h:193
virtual void _updateRefStateThermo() const
Updates the reference state thermodynamic functions at the current T of the solution and the referenc...
virtual void _updateStandardStateThermo()
Updates the standard state thermodynamic functions at the current T and P of the solution.