Cantera
2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
tpx
lk.h
1
#ifndef TPX_LK_H
2
#define TPX_LK_H
3
4
#include "cantera/tpx/Sub.h"
5
6
namespace
tpx
7
{
8
9
class
leekesler :
public
Substance
10
{
11
12
public
:
13
14
leekesler(
double
tc = 1.0,
double
pc = 1.0,
15
double
wt = 1.0,
int
itype = 0) {
16
Tcr = tc;
17
Pcr = pc;
18
Mw = wt;
19
Isr = itype;
// simple fluid or reference
20
m_name =
"Lee-Kesler"
;
21
m_formula =
"---"
;
22
}
23
~leekesler() {}
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
Generated by
1.8.2