CoolProp
6.6.0
An open-source fluid property and humid air property database
src
Backends
REFPROP
REFPROPBackend.cpp
Go to the documentation of this file.
1
/*
2
* AbstractBackend.cpp
3
*
4
* Created on: 20 Dec 2013
5
* Author: jowr
6
*/
7
8
#include "
REFPROPBackend.h
"
9
10
#include "
CoolPropTools.h
"
11
12
#if defined(_MSC_VER)
13
# define _CRTDBG_MAP_ALLOC
14
# ifndef _CRT_SECURE_NO_WARNINGS
15
# define _CRT_SECURE_NO_WARNINGS
16
# endif
17
# include <crtdbg.h>
18
# include <sys/stat.h>
19
#else
20
# include <sys/stat.h>
21
#endif
22
23
#include <string>
24
25
namespace
CoolProp
{
26
27
REFPROPBackend::REFPROPBackend
(
const
std::string& fluid_name) {
28
29
// Do the REFPROP instantiation for this fluid
30
std::vector<std::string> component_names(1, fluid_name);
31
construct
(component_names);
32
33
// Set the mole fraction to 1 in the base class (we can't set the mole fraction in this class,
34
// otherwise a NotImplementedError will be returned)
35
if
(
get_mole_fractions
().empty()) {
36
std::vector<CoolPropDbl> x(1, 1.0);
// (one element with value of 1.0)
37
REFPROPMixtureBackend::set_mole_fractions
(x);
38
}
39
}
40
41
REFPROPBackend::~REFPROPBackend
() {
42
// TODO Auto-generated destructor stub
43
}
44
45
}
/* namespace CoolProp */
Generated on Wed Nov 29 2023 14:26:24 for CoolProp by
1.9.1