Cantera
2.1.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
char
* name();
32
char
* formula();
33
34
double
Pp();
35
double
up();
36
double
sp();
37
double
Psat();
38
double
dPsatdT();
39
40
// compressibility
41
double
z();
42
43
// enthalpy departure
44
double
hdep();
45
46
// entropy departure
47
double
sdep();
48
49
double
ldens();
50
51
protected
:
52
53
double
Tcr, Pcr, Mw;
54
int
Isr;
55
56
private
:
57
58
double
W(
int
n,
double
egrho,
double
gamma);
59
double
I();
60
double
J();
61
};
62
}
63
64
#endif // ! TPX_LK_H
Sub.h
Generated by
1.8.6