Cantera  2.5.1
PDSS_ConstVol.h
Go to the documentation of this file.
1 /**
2  * @file PDSS_ConstVol.h
3  * Declarations for the class PDSS_ConstVol (pressure dependent standard state)
4  * which handles calculations for a single species with a constant molar volume in a phase
5  * (see class \ref pdssthermo and \link Cantera::PDSS_ConstVol PDSS_ConstVol\endlink).
6  */
7 
8 // This file is part of Cantera. See License.txt in the top-level directory or
9 // at https://cantera.org/license.txt for license and copyright information.
10 
11 #ifndef CT_PDSS_CONSTVOL_H
12 #define CT_PDSS_CONSTVOL_H
13 
14 #include "PDSS.h"
15 
16 namespace Cantera
17 {
18 //! Class for pressure dependent standard states that use a constant volume model
19 /*!
20  * @ingroup pdssthermo
21  */
23 {
24 public:
25  //! Default Constructor
26  PDSS_ConstVol();
27 
28  //! @name Molar Thermodynamic Properties of the Species Standard State in
29  //! the Solution
30  //! @{
31 
32  // See PDSS.h for documentation of functions overridden from Class PDSS
33  virtual doublereal intEnergy_mole() const;
34  virtual doublereal cv_mole() const;
35 
36  //! @}
37  //! @name Mechanical Equation of State Properties
38  //! @{
39 
40  virtual void setPressure(doublereal pres);
41  virtual void setTemperature(doublereal temp);
42  virtual void setState_TP(doublereal temp, doublereal pres);
43  virtual void setState_TR(doublereal temp, doublereal rho);
44 
45  //! @}
46  //! @name Miscellaneous properties of the standard state
47  //! @{
48 
49  virtual doublereal satPressure(doublereal t);
50 
51  //! @}
52  //! @name Initialization of the Object
53  //! @{
54 
55  virtual void initThermo();
56  virtual void setParametersFromXML(const XML_Node& speciesNode);
57 
58  //! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
59  //! initThermo().
60  void setMolarVolume(double v) {
62  }
63 
64  //@}
65 
66 private:
67  //! Value of the constant molar volume for the species
68  /*!
69  * m3 / kmol
70  */
71  doublereal m_constMolarVolume;
72 };
73 
74 }
75 
76 #endif
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
Class for pressure dependent standard states that use a constant volume model.
Definition: PDSS_ConstVol.h:23
PDSS_ConstVol()
Default Constructor.
virtual void setPressure(doublereal pres)
Sets the pressure in the object.
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
virtual doublereal cv_mole() const
Return the molar const volume heat capacity in units of J kmol-1 K-1.
virtual void setTemperature(doublereal temp)
Set the internal temperature.
void setMolarVolume(double v)
Set the (constant) molar volume [m3/kmol] of the species.
Definition: PDSS_ConstVol.h:60
virtual void initThermo()
Initialization routine.
doublereal m_constMolarVolume
Value of the constant molar volume for the species.
Definition: PDSS_ConstVol.h:71
virtual void setParametersFromXML(const XML_Node &speciesNode)
Initialization routine for the PDSS object based on the speciesNode.
virtual void setState_TR(doublereal temp, doublereal rho)
Set the internal temperature and density.
virtual doublereal satPressure(doublereal t)
saturation pressure
virtual doublereal intEnergy_mole() const
Return the molar internal Energy in units of J kmol-1.
Base class for PDSS classes which compute nondimensional properties directly.
Definition: PDSS.h:502
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:104
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:264