Cantera  3.1.0
Loading...
Searching...
No Matches
Oxygen.h
Go to the documentation of this file.
1//! @file Oxygen.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_OXYGEN_H
7#define TPX_OXYGEN_H
8
9#include "cantera/tpx/Sub.h"
10
11namespace tpx
12{
13//! Pure species representation of oxygen. Values and functions are
14//! from Reynolds @cite reynolds1979.
15class oxygen : public Substance
16{
17public:
18 oxygen() {
19 m_name="oxygen";
20 m_formula="O2";
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
34 //! Saturation pressure. Equation S4 from Reynolds TPSI.
35 double Psat() override;
36
37protected:
38 //! Liquid density. Equation D2 from Reynolds TPSI.
39 double ldens() override;
40
41private:
42 //! Equation P4 from Reynolds TPSI.
43 double C(int i, double rt, double rt2);
44 double Cprime(int i, double rt, double rt2, double rt3);
45 double I(int i, double egrho);
46 double H(int i, double egrho);
47 double W(int i, double egrho);
48};
49
50}
51#endif // ! OXYGEN_H
Base class from which all pure substances are derived.
Definition Sub.h:37
Pure species representation of oxygen.
Definition Oxygen.h:16
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Oxygen.cpp:240
double up() override
Internal energy of a single-phase state.
Definition Oxygen.cpp:144
double ldens() override
Liquid density. Equation D2 from Reynolds TPSI.
Definition Oxygen.cpp:211
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition Oxygen.cpp:56
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Oxygen.cpp:236
double Tcrit() override
Critical temperature [K].
Definition Oxygen.cpp:224
double sp() override
Entropy of a single-phase state.
Definition Oxygen.cpp:160
double MolWt() override
Molecular weight [kg/kmol].
Definition Oxygen.cpp:244
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Oxygen.cpp:232
double Pcrit() override
Critical pressure [Pa].
Definition Oxygen.cpp:228
double Psat() override
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition Oxygen.cpp:192