Since we can't post on the Tips forum, I'll leave this here...
Fully featured wrappers are available for both Mathcad 15 and Mathcad Prime as Add-in DLLs. Documentation can be found at http:/www.coolprop.org. Instructions for downloading the Add-in wrappers from SourceForge for either version of Mathcad can be found here. A Mathcad worksheet is included with the DLL that demonstrates how to use the add-in.
Not true. I spent the last year coding IF97 into it. You just use the fluid "IF97::Water" instead of "Water". This calls the IAPWS-IF97 backend, which is now included. See the docs.
The Mathcad add-in was re-implemented in version 6.0.0 and full IF97 was implemented in 6.2.0.
Again, please read the documentation. Just use the fluid "IF97::Water" instead of just "Water" or "HEOS::Water"; the HEOS implementation is IAPWS-95. There's no reason this won't work in the Maple wrapper as well. It's been tested in Python, Mathcad, and Excel wrappers. You might have to download the latest version of CoolProp if Maple is distributing an older version. Version 6.3.0 is hot off the press, so I doubt they have it yet in their distribution.
I see that the latest Maple 2018 release only includes CoolProp 6.1.0. I believe that IF97 is only partially implemented in that release of CoolProp. That was about when I started working on it.
@ValeryOchkov What is the function that you are plotting against the Liquid Saturation Temperature?
What are the parameters being passed in?
I'm a longtime user of Mathcad 15 with steam table extension and a novice using Prime. I've copied the latest CoolProp .dll file to the "Custom Functions" folder but Prime doesn't recognize any of the thermodynamic functions. I'm looking for some help using CoolProp in Mathcad Prime.
Make sure you've got the correct DLL. The one for Mathcad 15 is 32-bit, while the one for Mathcad Prime is 64-bit and compiled specifically for Mathcad Prime.
1. With the DLL in place, restart Mathcad Prime and enter, CustomFunctions= . If the DLL is the correct one, and properly installed, you will see the following list of functions available from the DLL:
If you do not see this list of functions, you do not have the correct DLL.
2. Also on SourceForge, where you got the DLL, is an example Mathcad Prime file called CoolPropFluidProperties.mcdx. Once the DLL is installed properly, download and open this file in Mathcad Prime and press <Ctrl>-F5 to update all equations. This document will show you how to use the functions.
Hope this helps.
Thanks that all helped me lumber through this problem.
With your insights I continued searching until I found that the Mathcad Prime DLL for CoolProp revision 6.3.0 seems to work work well for me. I can list the functions with CustomFunctions= and all of the functions I've tried so far return expected results.
None of the newer revision DLL files work at all for me and some of the earlier revisions crash when trying to execute the get_global_param_string. Another note, an agent from PTC was able to get the most recent revision, 6.4.1, to work with his set up.
For now I can proceed with a complex MC 15 to Prime 6 thermodynamic analysis conversion and hopefully in the future get the newest revision to work.
Thanks again for your much needed help!
I believe they are functions and tables that import standard thermodynamic properties into Mathcad. There is also WatersteamPro.
Yes, @Fred_Kohlhepp is correct. CoolProp is an open source library of functions that provide thermodynamic and thermo-physical properties of 120+ pure fluids, mixtures, over 35 incompressible fluids, and Humid Air properties (based on ASHRAE equations). It also provides an easy to use interface to IF97 water/steam properties (built-in) and NIST REFPROP (if installed). You can find out more at http://www.coolprop.org.