Cantera  3.1.0a1
Loading...
Searching...
No Matches
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
11namespace tpx
12{
13//! Pure species representation of water. Values and functions are from
14//! from Reynolds @cite reynolds1979.
15class water : public Substance
16{
17public:
18 water() {
19 m_name = "water";
20 m_formula = "H2O";
21 }
22
23 double MolWt() override;
24 double Tcrit() override;
25 double Pcrit() override;
26 double Vcrit() override;
27 double Tmin() override;
28 double Tmax() override;
29
30 double Pp() override;
31 double up() override;
32 double sp() override;
33 double Psat() override;
34 double dPsatdT();
35
36protected:
37 double ldens() override;
38
39private:
40 double C(int i);
41 double Cprime(int i);
42 double I(int i);
43 double H(int i);
44};
45
46}
47#endif // ! WATER_H
Base class from which all pure substances are derived.
Definition Sub.h:37
Pure species representation of water.
Definition Water.h:16
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Water.cpp:205
double up() override
Internal energy of a single-phase state.
Definition Water.cpp:122
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Water.cpp:201
double Tcrit() override
Critical temperature [K].
Definition Water.cpp:189
double sp() override
Entropy of a single-phase state.
Definition Water.cpp:136
double MolWt() override
Molecular weight [kg/kmol].
Definition Water.cpp:209
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Water.cpp:197
double Pcrit() override
Critical pressure [Pa].
Definition Water.cpp:193
double Psat() override
Saturation pressure, Pa.
Definition Water.cpp:161