| Cantera 3.0.0

Loading...
Searching...
No Matches
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() = default;
27
28 //! @name Molar Thermodynamic Properties of the Species Standard State
29 //! @{
30
31 // See PDSS.h for documentation of functions overridden from Class PDSS
32 double intEnergy_mole() const override;
33 double cv_mole() const override;
34
35 //! @}
36 //! @name Mechanical Equation of State Properties
37 //! @{
38
39 void setPressure(double pres) override;
40 void setTemperature(double temp) override;
41 void setState_TP(double temp, double pres) override;
42 void setState_TR(double temp, double rho) override;
43 double satPressure(double t) override;
44
45 //! @}
46 //! @name Initialization of the Object
47 //! @{
48
49 void initThermo() override;
50 void getParameters(AnyMap& eosNode) const override;
51
52 //! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
53 //! initThermo().
54 void setMolarVolume(double v) {
55 m_constMolarVolume = v;
56 }
57
58 //! @}
59
60 private:
61 //! Value of the constant molar volume for the species
62 /*!
63 * m3 / kmol
64 */
65 double m_constMolarVolume;
66};
67
68}
69
70#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:427
Cantera::PDSS_ConstVol
Class for pressure dependent standard states that use a constant volume model.
Definition PDSS_ConstVol.h:23
Cantera::PDSS_ConstVol::setPressure
void setPressure(double pres) override
Sets the pressure in the object.
Definition PDSS_ConstVol.cpp:59
Cantera::PDSS_ConstVol::setTemperature
void setTemperature(double temp) override
Set the internal temperature.
Definition PDSS_ConstVol.cpp:67
Cantera::PDSS_ConstVol::initThermo
void initThermo() override
Initialization routine.
Definition PDSS_ConstVol.cpp:17
Cantera::PDSS_ConstVol::PDSS_ConstVol
PDSS_ConstVol()=default
Default Constructor.
Cantera::PDSS_ConstVol::cv_mole
double cv_mole() const override
Return the molar const volume heat capacity in units of J kmol-1 K-1.
Definition PDSS_ConstVol.cpp:54
Cantera::PDSS_ConstVol::setMolarVolume
void setMolarVolume(double v)
Set the (constant) molar volume [m3/kmol] of the species.
Definition PDSS_ConstVol.h:54
Cantera::PDSS_ConstVol::setState_TR
void setState_TR(double temp, double rho) override
Set the internal temperature and density.
Definition PDSS_ConstVol.cpp:87
Cantera::PDSS_ConstVol::getParameters
void getParameters(AnyMap &eosNode) const override
Store the parameters needed to reconstruct a copy of this PDSS object.
Definition PDSS_ConstVol.cpp:34
Cantera::PDSS_ConstVol::intEnergy_mole
double intEnergy_mole() const override
Return the molar internal Energy in units of J kmol-1.
Definition PDSS_ConstVol.cpp:48
Cantera::PDSS_ConstVol::setState_TP
void setState_TP(double temp, double pres) override
Set the internal temperature and pressure.
Definition PDSS_ConstVol.cpp:81
Cantera::PDSS_ConstVol::m_constMolarVolume
double m_constMolarVolume
Value of the constant molar volume for the species.
Definition PDSS_ConstVol.h:65
Cantera::PDSS_ConstVol::satPressure
double satPressure(double t) override
saturation pressure
Definition PDSS_ConstVol.cpp:98
Cantera::PDSS_Nondimensional
Base class for PDSS classes which compute nondimensional properties directly.
Definition PDSS.h:487
Cantera
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564