Cantera  2.3.0
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 // This file is part of Cantera. See License.txt in the top-level directory or
12 // at http://www.cantera.org/license.txt for license and copyright information.
13 
14 #ifndef CT_VPSSMGR_WATER_CONSTVOL_H
15 #define CT_VPSSMGR_WATER_CONSTVOL_H
16 
17 #include "VPSSMgr.h"
18 
19 namespace Cantera
20 {
21 class PDSS_Water;
22 
23 //! Handles the calculation of standard state thermo properties for real water
24 //! and a set of species which have a constant molar volume pressure
25 //! dependence.
27 {
28 public:
29  //! Base Constructor
30  /*!
31  * Initialize the object.
32  *
33  * @param vp_ptr Pointer to the VPStandardStateTP standard state
34  * @param sp_ptr Pointer to the MultiSpeciesThermo standard state
35  */
37 
39  VPSSMgr_Water_ConstVol& operator=(const VPSSMgr_Water_ConstVol& right);
40  virtual VPSSMgr* duplMyselfAsVPSSMgr() const;
41 
42 private:
43  /*!
44  * @name Properties of the Standard State of the Species in the Solution
45  *
46  * Within VPStandardStateTP, these properties are calculated via a common
47  * routine, _updateStandardStateThermo(), which must be overloaded in
48  * inherited objects. The values are cached within this object, and are
49  * not recalculated unless the temperature or pressure changes.
50  */
51  //@{
52  virtual void _updateStandardStateThermo();
53  virtual void _updateRefStateThermo() const;
54  //@}
55 
56 public:
57  /*! @name Thermodynamic Values for the Species Reference States
58  * There are also temporary variables for holding the species reference-
59  * state values of Cp, H, S, and V at the last temperature and reference
60  * pressure called. These functions are not recalculated if a new call is
61  * made using the previous temperature. All calculations are done within
62  * the routine _updateRefStateThermo().
63  */
64  //@{
65 
66  virtual void getEnthalpy_RT_ref(doublereal* hrt) const;
67  virtual void getGibbs_RT_ref(doublereal* grt) const;
68  virtual void getGibbs_ref(doublereal* g) const;
69  virtual void getEntropy_R_ref(doublereal* er) const;
70  virtual void getCp_R_ref(doublereal* cpr) const;
71  virtual void getStandardVolumes_ref(doublereal* vol) const;
72 
73  //! @}
74  /*! @name Initialization Methods - For Internal use
75  * The following methods are used in the process of constructing
76  * the phase and setting its parameters from a specification in an
77  * input file. They are not normally used in application programs.
78  * To see how they are used, see importPhase().
79  */
80  //@{
81 
82  virtual void initThermoXML(XML_Node& phaseNode, const std::string& id);
83  //@}
84 
85  virtual PDSS* createInstallPDSS(size_t k, const XML_Node& speciesNode,
86  const XML_Node* const phaseNode_ptr);
87 
88  virtual PDSS_enumType reportPDSSType(int index = -1) const;
89  virtual VPSSMgr_enumType reportVPSSMgrType() const;
90  virtual void initAllPtrs(VPStandardStateTP* vp_ptr, MultiSpeciesThermo* sp_ptr);
91 
92 private:
93  //! Pointer to the Water PDSS object.
94  /*!
95  * This is a shallow copy. The water PDSS object is owned by the VPStandardStateTP
96  * object.
97  */
99 };
100 }
101 
102 #endif
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...
PDSS_Water * m_waterSS
Pointer to the Water PDSS object.
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 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:228
Declaration file for a virtual base class that manages the calculation of standard state properties f...
virtual VPSSMgr * duplMyselfAsVPSSMgr() const
Duplication routine for objects which derive from VPSSMgr.
virtual void getGibbs_RT_ref(doublereal *grt) const
VPSSMgr_Water_ConstVol(VPStandardStateTP *vp_ptr, MultiSpeciesThermo *sp_ptr)
Base Constructor.
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:97
Handles the calculation of standard state thermo properties for real water and a set of species which...
virtual void getCp_R_ref(doublereal *cpr) const
VPSSMgr_enumType
enum for VPSSMgr types that are responsible for calculating the species standard state and reference-...
Definition: mix_defs.h:119
virtual void getEnthalpy_RT_ref(doublereal *hrt) const
virtual void getEntropy_R_ref(doublereal *er) const
virtual VPSSMgr_enumType reportVPSSMgrType() const
This utility function reports the type of manager for the calculation of ss properties.
Class for the liquid water pressure dependent standard state.
Definition: PDSS_Water.h:49
PDSS_enumType
Types of PDSS's.
Definition: mix_defs.h:105
virtual void initThermoXML(XML_Node &phaseNode, const std::string &id)
Finalize the thermo after all species have been entered.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
virtual void initAllPtrs(VPStandardStateTP *vp_ptr, MultiSpeciesThermo *sp_ptr)
Initialize the internal shallow pointers in this object.
virtual void _updateRefStateThermo() const
Updates the reference state thermodynamic functions at the current T of the solution and the referenc...
Virtual base class for a species with a pressure dependent standard state.
Definition: PDSS.h:176
virtual void getGibbs_ref(doublereal *g) const
A species thermodynamic property manager for a phase.
Namespace for the Cantera kernel.
Definition: application.cpp:29
virtual void _updateStandardStateThermo()
Updates the standard state thermodynamic functions at the current T and P of the solution.