| Cantera 3.0.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
11 namespace tpx
12{
13//! Pure species representation of oxygen. Values and functions are
14//! from Reynolds @cite reynolds1979.
15 class oxygen : public Substance
16{
17 public:
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
37 protected:
38 //! Liquid density. Equation D2 from Reynolds TPSI.
39 double ldens() override;
40
41 private:
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
Sub.h
tpx::Substance
Base class from which all pure substances are derived.
Definition Sub.h:37
tpx::oxygen
Pure species representation of oxygen.
Definition Oxygen.h:16
tpx::oxygen::Tmax
double Tmax() override
Maximum temperature for which the equation of state is valid.
Definition Oxygen.cpp:240
tpx::oxygen::up
double up() override
Internal energy of a single-phase state.
Definition Oxygen.cpp:144
tpx::oxygen::ldens
double ldens() override
Liquid density. Equation D2 from Reynolds TPSI.
Definition Oxygen.cpp:211
tpx::oxygen::C
double C(int i, double rt, double rt2)
Equation P4 from Reynolds TPSI.
Definition Oxygen.cpp:56
tpx::oxygen::Tmin
double Tmin() override
Minimum temperature for which the equation of state is valid.
Definition Oxygen.cpp:236
tpx::oxygen::Tcrit
double Tcrit() override
Critical temperature [K].
Definition Oxygen.cpp:224
tpx::oxygen::sp
double sp() override
Entropy of a single-phase state.
Definition Oxygen.cpp:160
tpx::oxygen::MolWt
double MolWt() override
Molecular weight [kg/kmol].
Definition Oxygen.cpp:244
tpx::oxygen::Vcrit
double Vcrit() override
Critical specific volume [m^3/kg].
Definition Oxygen.cpp:232
tpx::oxygen::Pcrit
double Pcrit() override
Critical pressure [Pa].
Definition Oxygen.cpp:228
tpx::oxygen::Psat
double Psat() override
Saturation pressure. Equation S4 from Reynolds TPSI.
Definition Oxygen.cpp:192