Cantera 2.6.0

Water.h
Go to the documentation of this file.
1//! @file Water.h
2
3// This file is part of Cantera. See License.txt in the top-level directory or
4// at https://cantera.org/license.txt for license and copyright information.
5
6#ifndef TPX_WATER_H
7#define TPX_WATER_H
8
9#include "cantera/tpx/Sub.h"
10
11 namespace tpx
12{
13//! Pure species representation of water. Values and functions are from
14//! "Thermodynamic Properties in SI" by W.C. Reynolds
15 class water : public Substance
16{
17 public:
18 water() {
19 m_name = "water";
20 m_formula = "H2O";
21 }
22
23 double MolWt();
24 double Tcrit();
25 double Pcrit();
26 double Vcrit();
27 double Tmin();
28 double Tmax();
29
30 double Pp();
31 double up();
32 double sp();
33 double Psat();
34 double dPsatdT();
35
36 private:
37 double ldens();
38 double C(int i);
39 double Cprime(int i);
40 double I(int i);
41 double H(int i);
42};
43
44}
45#endif // ! WATER_H
Sub.h
tpx::Substance
Definition: Sub.h:38
tpx::water
Pure species representation of water.
Definition: Water.h:16
tpx::water::Vcrit
double Vcrit()
Critical specific volume [m^3/kg].
Definition: Water.cpp:197
tpx::water::Tmax
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: Water.cpp:205
tpx::water::Tmin
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: Water.cpp:201
tpx::water::MolWt
double MolWt()
Molecular weight [kg/kmol].
Definition: Water.cpp:209
tpx::water::sp
double sp()
Entropy of a single-phase state.
Definition: Water.cpp:136
tpx::water::Tcrit
double Tcrit()
Critical temperature [K].
Definition: Water.cpp:189
tpx::water::Pcrit
double Pcrit()
Critical pressure [Pa].
Definition: Water.cpp:193
tpx::water::Psat
double Psat()
Saturation pressure, Pa.
Definition: Water.cpp:161
tpx::water::up
double up()
Internal energy of a single-phase state.
Definition: Water.cpp:122