Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
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
double
dVdT
()
const override
;
35
double
dVdP
()
const override
;
36
37
//! @}
38
//! @name Mechanical Equation of State Properties
39
//! @{
40
41
void
setPressure
(
double
pres)
override
;
42
void
setTemperature
(
double
temp)
override
;
43
void
setState_TP
(
double
temp,
double
pres)
override
;
44
double
satPressure
(
double
t)
override
;
45
46
//! @}
47
//! @name Initialization of the Object
48
//! @{
49
50
void
initThermo
()
override
;
51
void
getParameters
(
AnyMap
& eosNode)
const override
;
52
53
//! Set the (constant) molar volume [m3/kmol] of the species. Must be called before
54
//! initThermo().
55
void
setMolarVolume
(
double
v) {
56
m_constMolarVolume
= v;
57
}
58
59
//! @}
60
61
private
:
62
//! Value of the constant molar volume for the species
63
/*!
64
* m3 / kmol
65
*/
66
double
m_constMolarVolume
;
67
};
68
69
}
70
71
#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:431
Cantera::PDSS_ConstVol::setPressure
void setPressure(double pres) override
Sets the pressure in the object.
Definition
PDSS_ConstVol.cpp:69
Cantera::PDSS_ConstVol::setTemperature
void setTemperature(double temp) override
Set the internal temperature.
Definition
PDSS_ConstVol.cpp:77
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::dVdP
double dVdP() const override
Return the pressure derivative of the standard state molar volume at constant temperature [m³/kmol/Pa...
Definition
PDSS_ConstVol.cpp:64
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:55
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:91
Cantera::PDSS_ConstVol::m_constMolarVolume
double m_constMolarVolume
Value of the constant molar volume for the species.
Definition
PDSS_ConstVol.h:66
Cantera::PDSS_ConstVol::dVdT
double dVdT() const override
Return the temperature derivative of the standard state molar volume at constant pressure [m³/kmol/K]...
Definition
PDSS_ConstVol.cpp:59
Cantera::PDSS_ConstVol::satPressure
double satPressure(double t) override
saturation pressure
Definition
PDSS_ConstVol.cpp:97
Cantera
Namespace for the Cantera kernel.
Definition
AnyMap.cpp:595
include
cantera
thermo
PDSS_ConstVol.h
Generated by
1.17.0