Cantera
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
tpx
lk.h
Go to the documentation of this file.
1
//! @file lk.h Lee-Kesler equation of state
2
#ifndef TPX_LK_H
3
#define TPX_LK_H
4
5
#include "
cantera/tpx/Sub.h
"
6
7
namespace
tpx
8
{
9
10
class
leekesler :
public
Substance
11
{
12
13
public
:
14
15
leekesler(
double
tc = 1.0,
double
pc = 1.0,
16
double
wt = 1.0,
int
itype = 0) {
17
Tcr = tc;
18
Pcr = pc;
19
Mw = wt;
20
Isr = itype;
// simple fluid or reference
21
m_name =
"Lee-Kesler"
;
22
m_formula =
"---"
;
23
}
24
25
double
MolWt();
26
double
Tcrit();
27
double
Pcrit();
28
double
Vcrit();
29
double
Tmin();
30
double
Tmax();
31
32
double
Pp();
33
double
up();
34
double
sp();
35
double
Psat();
36
double
dPsatdT();
37
38
// compressibility
39
double
z();
40
41
// enthalpy departure
42
double
hdep();
43
44
// entropy departure
45
double
sdep();
46
47
double
ldens();
48
49
protected
:
50
51
double
Tcr, Pcr, Mw;
52
int
Isr;
53
54
private
:
55
56
double
W(
int
n,
double
egrho,
double
gamma);
57
double
I();
58
double
J();
59
};
60
}
61
62
#endif // ! TPX_LK_H
Sub.h
Generated by
1.8.6