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
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 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) {
56 }
57
58 //! @}
59
60private:
61 //! Value of the constant molar volume for the species
62 /*!
63 * m3 / kmol
64 */
66};
67
68}
69
70#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 setState_TR(double temp, double rho) override
Set the internal temperature and density.
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:487
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564