CoolProp
6.6.0
An open-source fluid property and humid air property database
include
PCSAFTFluid.h
Go to the documentation of this file.
1
#ifndef PCSAFTFLUID_H
2
#define PCSAFTFLUID_H
3
4
#include <string>
5
#include <vector>
6
#include <map>
7
8
#include "
rapidjson_include.h
"
9
10
namespace
CoolProp
{
11
12
struct
PCSAFTValues
13
{
14
CoolPropDbl
m
;
15
CoolPropDbl
sigma
;
16
CoolPropDbl
u
;
17
CoolPropDbl
uAB
;
18
CoolPropDbl
volA
;
19
std::vector<std::string>
assocScheme
;
20
CoolPropDbl
dipm
;
21
CoolPropDbl
dipnum
;
22
CoolPropDbl
z
;
23
};
24
25
class
PCSAFTFluid
26
{
27
protected
:
28
std::string
name
;
// name of fluid
29
std::string
CAS
;
// CAS number
30
CoolPropDbl
molemass
;
31
std::vector<std::string>
aliases
;
32
PCSAFTValues
params
;
33
34
public
:
35
PCSAFTFluid
(){};
36
PCSAFTFluid
(rapidjson::Value::ValueIterator itr);
37
~PCSAFTFluid
(){};
38
39
std::string
getName
()
const
{
40
return
name
;
41
}
42
std::string
getCAS
()
const
{
43
return
CAS
;
44
}
45
CoolPropDbl
molar_mass
()
const
{
46
return
molemass
;
47
}
48
std::vector<std::string>
getAliases
()
const
{
49
return
aliases
;
50
}
51
CoolPropDbl
getM
()
const
{
52
return
params
.
m
;
53
}
54
CoolPropDbl
getSigma
()
const
{
55
return
params
.
sigma
;
56
}
57
CoolPropDbl
getU
()
const
{
58
return
params
.
u
;
59
}
60
CoolPropDbl
getUAB
()
const
{
61
return
params
.
uAB
;
62
}
63
CoolPropDbl
getVolA
()
const
{
64
return
params
.
volA
;
65
}
66
std::vector<std::string>
getAssocScheme
()
const
{
67
return
params
.
assocScheme
;
68
}
69
CoolPropDbl
getDipm
()
const
{
70
return
params
.
dipm
;
71
}
72
CoolPropDbl
getDipnum
()
const
{
73
return
params
.
dipnum
;
74
}
75
CoolPropDbl
getZ
()
const
{
76
return
params
.
z
;
77
}
78
79
void
calc_water_sigma
(
double
t);
80
};
81
82
}
/* namespace CoolProp */
83
#endif
/* PCSAFTFLUID_H_ */
Generated on Wed Nov 29 2023 14:26:23 for CoolProp by
1.9.1