Message Boards Message Boards

Avoid issue while using Mathematica wrapper with coolprop?

Posted 6 years ago

Hello to all forum Members. I have been struggling for some time with the compilation of the library for the thermodynamic values ??of the refrigerant. According to the instructions:http://coolprop.sourceforge.net/coolprop/wrappers/Mathematica/index.html after creating a location for libraries, the function:

PropsSI = 
  LibraryFunctionLoad["CoolProp", 
   "PropsSI", {UTF8String, UTF8String, Real, UTF8String, Real, 
    UTF8String}, Real];
PropsSI["T", "P", 101325, "Q", 1, "Water"]
LibraryFunctionUnload[PropsSI]

should work, but it is not. After activating the cell, it appears on 30sec "Running" and disappears without reporting any error, but without displaying the value either. I tried to go through the "User compiled Binaries" method but without success: after entering the command

cmake .. -DCOOLPROP_MATHEMATICA_MODULE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -G "Visual Studio 10 2010 Win64"

, cmd reports the "CmakeLists.txt" lack of location. Has anyone encountered a similar problem or knows how to solve it?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract