| Cantera 3.0.0

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
11 namespace tpx
12{
13//! Pure species representation of water. Values and functions are from
14//! from Reynolds @cite reynolds1979.
15 class water : public Substance
16{
17 public:
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
36 protected:
37 double ldens() override;
38
39 private:
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
Sub.h
tpx::Substance
Base class from which all pure substances are derived.
Definition Sub.h:37
tpx::water
Pure species representation of water.
Definition Water.h:16
tpx::water::Tmax
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Water.cpp:205
tpx::water::up
double up() override
Internal energy of a single-phase state.
Definition Water.cpp:122
tpx::water::Tmin
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Water.cpp:201
tpx::water::Tcrit
double Tcrit() override
Critical temperature [K].
Definition Water.cpp:189
tpx::water::sp
double sp() override
Entropy of a single-phase state.
Definition Water.cpp:136
tpx::water::MolWt
double MolWt() override
Molecular weight [kg/kmol].
Definition Water.cpp:209
tpx::water::Vcrit
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Water.cpp:197
tpx::water::Pcrit
double Pcrit() override
Critical pressure [Pa].
Definition Water.cpp:193
tpx::water::Psat
double Psat() override
Saturation pressure, Pa.
Definition Water.cpp:161