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
16 namespace Cantera
17{
18//! Class for pressure dependent standard states that use a constant volume model
19/*!
20 * @ingroup pdssthermo
21 */
22 class PDSS_ConstVol : public PDSS_Nondimensional
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 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) {
57 m_constMolarVolume = v;
58 }
59
60 //! @}
61
62 private:
63 //! Value of the constant molar volume for the species
64 /*!
65 * m3 / kmol
66 */
67 doublereal m_constMolarVolume;
68};
69
70}
71
72#endif
PDSS.h
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
Cantera::AnyMap
A map of string keys to values whose type can vary at runtime.
Definition: AnyMap.h:399
Cantera::PDSS_ConstVol
Class for pressure dependent standard states that use a constant volume model.
Definition: PDSS_ConstVol.h:23
Cantera::PDSS_ConstVol::PDSS_ConstVol
PDSS_ConstVol()
Default Constructor.
Definition: PDSS_ConstVol.cpp:19
Cantera::PDSS_ConstVol::getParameters
virtual void getParameters(AnyMap &eosNode) const
Store the parameters needed to reconstruct a copy of this PDSS object.
Definition: PDSS_ConstVol.cpp:55
Cantera::PDSS_ConstVol::setPressure
virtual void setPressure(doublereal pres)
Sets the pressure in the object.
Definition: PDSS_ConstVol.cpp:73
Cantera::PDSS_ConstVol::setState_TP
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
Definition: PDSS_ConstVol.cpp:95
Cantera::PDSS_ConstVol::cv_mole
virtual doublereal cv_mole() const
Return the molar const volume heat capacity in units of J kmol-1 K-1.
Definition: PDSS_ConstVol.cpp:68
Cantera::PDSS_ConstVol::setTemperature
virtual void setTemperature(doublereal temp)
Set the internal temperature.
Definition: PDSS_ConstVol.cpp:81
Cantera::PDSS_ConstVol::setMolarVolume
void setMolarVolume(double v)
Set the (constant) molar volume [m3/kmol] of the species.
Definition: PDSS_ConstVol.h:56
Cantera::PDSS_ConstVol::initThermo
virtual void initThermo()
Initialization routine.
Definition: PDSS_ConstVol.cpp:42
Cantera::PDSS_ConstVol::m_constMolarVolume
doublereal m_constMolarVolume
Value of the constant molar volume for the species.
Definition: PDSS_ConstVol.h:67
Cantera::PDSS_ConstVol::setParametersFromXML
virtual void setParametersFromXML(const XML_Node &speciesNode)
Initialization routine for the PDSS object based on the speciesNode.
Definition: PDSS_ConstVol.cpp:23
Cantera::PDSS_ConstVol::setState_TR
virtual void setState_TR(doublereal temp, doublereal rho)
Set the internal temperature and density.
Definition: PDSS_ConstVol.cpp:101
Cantera::PDSS_ConstVol::satPressure
virtual doublereal satPressure(doublereal t)
saturation pressure
Definition: PDSS_ConstVol.cpp:111
Cantera::PDSS_ConstVol::intEnergy_mole
virtual doublereal intEnergy_mole() const
Return the molar internal Energy in units of J kmol-1.
Definition: PDSS_ConstVol.cpp:62
Cantera::PDSS_Nondimensional
Base class for PDSS classes which compute nondimensional properties directly.
Definition: PDSS.h:493
Cantera::XML_Node
Class XML_Node is a tree-based representation of the contents of an XML file.
Definition: xml.h:103
Cantera
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:557