CoolProp
PCSAFTFluid.h
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  CoolPropDbl m;
14  CoolPropDbl sigma;
15  CoolPropDbl u;
16  CoolPropDbl uAB;
17  CoolPropDbl volA;
18  CoolPropDbl dipm;
19  CoolPropDbl dipnum;
20  CoolPropDbl z;
21 };
22 
23 class PCSAFTFluid {
24  protected:
25  std::string name; // name of fluid
26  std::string CAS; // CAS number
27  CoolPropDbl molemass;
28  std::vector<std::string> aliases;
29  PCSAFTValues params;
30  public:
31  PCSAFTFluid(){};
32  PCSAFTFluid(rapidjson::Value::ValueIterator itr);
33  ~PCSAFTFluid(){};
34 
35  std::string getName() const {return name;}
36  std::string getCAS() const {return CAS;}
37  CoolPropDbl molar_mass() const {return molemass;}
38  std::vector<std::string> getAliases() const {return aliases;}
39  CoolPropDbl getM() const {return params.m;}
40  CoolPropDbl getSigma() const {return params.sigma;}
41  CoolPropDbl getU() const {return params.u;}
42  CoolPropDbl getUAB() const {return params.uAB;}
43  CoolPropDbl getVolA() const {return params.volA;}
44  CoolPropDbl getDipm() const {return params.dipm;}
45  CoolPropDbl getDipnum() const {return params.dipnum;}
46  CoolPropDbl getZ() const {return params.z;}
47 
48  void calc_water_sigma(double t);
49 };
50 
51 } /* namespace CoolProp */
52 #endif /* PCSAFTFLUID_H_ */
CoolPropDbl molemass
Molar mass (kg/mol)
Definition: PCSAFTFluid.h:27
CoolPropDbl dipm
Dipole moment (Debye)
Definition: PCSAFTFluid.h:18
CoolPropDbl volA
Association volume.
Definition: PCSAFTFluid.h:17
CoolPropDbl uAB
Association energy (K)
Definition: PCSAFTFluid.h:16
CoolPropDbl z
Charge of the compound.
Definition: PCSAFTFluid.h:20
Definition: PCSAFTFluid.h:12
CoolPropDbl dipnum
Number of dipole moments per molecule.
Definition: PCSAFTFluid.h:19
CoolPropDbl m
Number of segments.
Definition: PCSAFTFluid.h:13
Definition: PCSAFTFluid.h:23
CoolPropDbl u
Dispersion energy divided by Boltzmann constant (K)
Definition: PCSAFTFluid.h:15
This file contains flash routines in which the state is unknown, and a solver of some kind must be us...
Definition: AbstractState.h:19
CoolPropDbl sigma
Segment diameter (1/Angstrom)
Definition: PCSAFTFluid.h:14