Add ability to retrieve the list of cubic fluids that are loaded

This commit is contained in:
Ian Bell
2017-12-14 15:38:12 -07:00
parent dadf8857c2
commit 6042f2a4eb
3 changed files with 21 additions and 2 deletions

View File

@@ -921,6 +921,9 @@ std::string get_global_param_string(const std::string &ParamName)
else if (ParamName == "cubic_fluids_schema"){
return CoolProp::CubicLibrary::get_cubic_fluids_schema();
}
else if (ParamName == "cubic_fluids_list"){
return CoolProp::CubicLibrary::get_cubic_fluids_list();
}
else{
throw ValueError(format("Input parameter [%s] is invalid",ParamName.c_str()));
}