Cantera  3.1.0a1
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
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
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 double satPressure(double t) override;
43
44 //! @}
45 //! @name Initialization of the Object
46 //! @{
47
48 void initThermo() override;
49 void getParameters(AnyMap& eosNode) const override;
50
51 //! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
52 //! initThermo().
53 void setMolarVolume(double v) {
55 }
56
57 //! @}
58
59private:
60 //! Value of the constant molar volume for the species
61 /*!
62 * m3 / kmol
63 */
65};
66
67}
68
69#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:427
Class for pressure dependent standard states that use a constant volume model.
void setPressure(double pres) override
Sets the pressure in the object.
void setTemperature(double temp) override
Set the internal temperature.
void initThermo() override
Initialization routine.
PDSS_ConstVol()=default
Default Constructor.
double cv_mole() const override
Return the molar const volume heat capacity in units of J kmol-1 K-1.
void setMolarVolume(double v)
Set the (constant) molar volume [m3/kmol] of the species.
void getParameters(AnyMap &eosNode) const override
Store the parameters needed to reconstruct a copy of this PDSS object.
double intEnergy_mole() const override
Return the molar internal Energy in units of J kmol-1.
void setState_TP(double temp, double pres) override
Set the internal temperature and pressure.
double m_constMolarVolume
Value of the constant molar volume for the species.
double satPressure(double t) override
saturation pressure
Base class for PDSS classes which compute nondimensional properties directly.
Definition PDSS.h:436
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564