Parse refprop HMX.BNC file and load coefficients (#1304)

* Add parser for HMX.BNC from REFPROP; closes #1294

Also move configuration variables into main pybind11 module

* Add the ability to over-write departure functions and binary interaction parameters
This commit is contained in:
Ian Bell
2016-10-30 21:26:05 -06:00
committed by GitHub
parent 6335732aa1
commit d61c365215
9 changed files with 407 additions and 74 deletions

View File

@@ -138,24 +138,3 @@ void set_config_as_json_string(const std::string &s){
}
}
#if defined(PYBIND11)
#include <pybind11/pybind11.h>
namespace py = pybind11;
// Add Configuration variables to pybind11 wrapper
void init_CoolProp_Configuration_constants(py::module &m)
{
// See http://stackoverflow.com/a/148610 and http://stackoverflow.com/questions/147267/easy-way-to-use-variables-of-enum-types-as-string-in-c#202511
py::enum_<configuration_keys>(m, "configuration_keys")
#define X(Enum, String, Default, Desc) \
.value(String, configuration_keys::Enum)
CONFIGURATION_KEYS_ENUM
#undef X
.export_values();
}
#endif