Cantera  4.0.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 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) {
57 }
58
59 //! @}
60
61private:
62 //! Value of the constant molar volume for the species
63 /*!
64 * m3 / kmol
65 */
67};
68
69}
70
71#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:431
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 dVdP() const override
Return the pressure derivative of the standard state molar volume at constant temperature [m³/kmol/Pa...
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 dVdT() const override
Return the temperature derivative of the standard state molar volume at constant pressure [m³/kmol/K]...
double satPressure(double t) override
saturation pressure
Base class for PDSS classes which compute nondimensional properties directly.
Definition PDSS.h:450
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595