Cantera  2.3.0
lk.h
Go to the documentation of this file.
1 //! @file lk.h Lee-Kesler equation of state
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at http://www.cantera.org/license.txt for license and copyright information.
5 
6 #ifndef TPX_LK_H
7 #define TPX_LK_H
8 
9 #include "cantera/tpx/Sub.h"
10 #include "cantera/base/global.h"
11 
12 namespace tpx
13 {
14 
15 //! @deprecated To be removed after Cantera 2.3.
16 class leekesler : public Substance
17 {
18 public:
19  leekesler(double tc = 1.0, double pc = 1.0,
20  double wt = 1.0, int itype = 0) {
21  Tcr = tc;
22  Cantera::warn_deprecated("class leekesler",
23  "To be removed after Cantera 2.3.");
24  Pcr = pc;
25  Mw = wt;
26  Isr = itype; // simple fluid or reference
27  m_name = "Lee-Kesler";
28  m_formula = "---";
29  }
30 
31  double MolWt();
32  double Tcrit();
33  double Pcrit();
34  double Vcrit();
35  double Tmin();
36  double Tmax();
37 
38  double Pp();
39  double up();
40  double sp();
41  double Psat();
42  double dPsatdT();
43 
44  // compressibility
45  double z();
46 
47  // enthalpy departure
48  double hdep();
49 
50  // entropy departure
51  double sdep();
52 
53  double ldens();
54 
55 protected:
56  double Tcr, Pcr, Mw;
57  int Isr;
58 
59 private:
60  double W(int n, double egrho, double gamma);
61  double I();
62  double J();
63 };
64 }
65 
66 #endif // ! TPX_LK_H
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Definition: global.cpp:54
double Vcrit()
Critical specific volume [m^3/kg].
Definition: lk.cpp:153
double Pcrit()
Critical pressure [Pa].
Definition: lk.cpp:149
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
double up()
Internal energy of a single-phase state.
Definition: lk.cpp:30
double MolWt()
Molecular weight [kg/kmol].
Definition: lk.cpp:165
double Tcrit()
Critical temperature [K].
Definition: lk.cpp:145
double Psat()
Saturation pressure, Pa.
Definition: lk.cpp:116
double Tmax()
Maximum temperature for which the equation of state is valid.
Definition: lk.cpp:161
double sp()
Entropy of a single-phase state.
Definition: lk.cpp:47
double Tmin()
Minimum temperature for which the equation of state is valid.
Definition: lk.cpp:157