Cantera 2.6.0
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
16namespace Cantera
17{
18//! Class for pressure dependent standard states that use a constant volume model
19/*!
20 * @ingroup pdssthermo
21 */
23{
24public:
25 //! Default Constructor
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 virtual doublereal satPressure(doublereal t);
45
46 //! @}
47 //! @name Initialization of the Object
48 //! @{
49
50 virtual void initThermo();
51 virtual void setParametersFromXML(const XML_Node& speciesNode);
52 virtual void getParameters(AnyMap& eosNode) const;
53
54 //! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
55 //! initThermo().
56 void setMolarVolume(double v) {
58 }
59
60 //! @}
61
62private:
63 //! Value of the constant molar volume for the species
64 /*!
65 * m3 / kmol
66 */
68};
69
70}
71
72#endif
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
A map of string keys to values whose type can vary at runtime.
Definition: AnyMap.h:399
Class for pressure dependent standard states that use a constant volume model.
Definition: PDSS_ConstVol.h:23
PDSS_ConstVol()
Default Constructor.
virtual void getParameters(AnyMap &eosNode) const
Store the parameters needed to reconstruct a copy of this PDSS object.
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:56
virtual void initThermo()
Initialization routine.
doublereal m_constMolarVolume
Value of the constant molar volume for the species.
Definition: PDSS_ConstVol.h:67
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:493
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:103
Namespace for the Cantera kernel.
Definition: AnyMap.h:29