Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coolprop in MathCAD - current version problem #1944

Closed
kamil-smierciew opened this issue Jun 7, 2020 · 20 comments · Fixed by #2294
Closed

coolprop in MathCAD - current version problem #1944

kamil-smierciew opened this issue Jun 7, 2020 · 20 comments · Fixed by #2294
Assignees
Milestone

Comments

@kamil-smierciew
Copy link

Hi guys,
I would like to ask for help with CoolProp. I'm using it with Mathcad and Excel, I have downloaded the latest version (6.4) for both: Mathcad and Excel. I don't have problem with Excel, however, Mathcad still reads this as version 6.1.1. It didn’t' saw version 6.2, or 6.3 and now it can't see 6.4. Do you have any idea what is the reason? Did I missed something?

@ibell
Copy link
Contributor

ibell commented Jun 7, 2020 via email

@kamil-smierciew
Copy link
Author

location of wrappers:
c:\Program Files\PTC\Mathcad Prime 6.0.0.0\Custom Functions
01

MathCad returns: get_global_param_string ( "version") "6.1.1dev"
03

Files are downloaded from: https://sourceforge.net/projects/coolprop/files/CoolProp/nightly/MathCADPrime/

02

@henningjp
Copy link
Contributor

henningjp commented Jun 8, 2020

@kamil-smierciew CoolProp is notorious for not updating values that were previously calculated and saved. The file you are opening (the downloaded examples file) has not been updated since it was saved with CoolProp 6.1.1dev, when I created it. It hasn't needed to be. So when you open it, you get:

CoolPropVersion

Just select the equation and press <F5> to force recalculate the function, or click anywhere in the file and press <Ctrl>F5 to recalculate the whole sheet. You should see:

CoolPropVersion64

Your DLL version is most likely the correct version, given the date on the file.

  • Jeff

@henningjp
Copy link
Contributor

Annoying, I know, but it's supposed to be an "efficiency" feature.

@kamil-smierciew
Copy link
Author

It works,
thanks a lot!

Kamil

@GLardner
Copy link

GLardner commented Aug 25, 2023

Sorry to wake this up after several years but I am experiencing a similar issue. Excel shows CoolProp version is "6.5.0" but Mathcad Prime 9.0.0.0 shows version "6.4.0" even after recalculating (it was showing "6.1.1dev" before recalculating).

SMath Solver gives me yet another different version
image

Where does Mathcad look for the CoolProp DLLs and why should it not see the new version installed today, when Excel can see it? Or is it picking up the version number from the .mcdx file (.sm file, in the case of SMath)?

@ibell
Copy link
Contributor

ibell commented Aug 25, 2023

Sorry, but no idea, I am not a MathCAD person. @henningjp

@henningjp
Copy link
Contributor

Mathcad loads the DLL fron the Custom Functions folder in the Mathcad Prime Installation Directory. In your case this will be C:\Program Files\PTC\Mathcad Prime 9.0.0.0. There’s a folder for each Mathcad version installed, even old ones left behind. The CoolProp wrapper DLL must be copied to the Custom Functions folder for the current version of Mathcad you are using.

You can copy the DLL from an older version directory, or get a newer version from SourceForge.

Only one version of the CoolProp DLL should exist in any version‘s Custom Functions folder.

@henningjp
Copy link
Contributor

I see that the README for the Mathcad wrapper is in need of an update in this regard. I‘ll take care of that.

@henningjp henningjp reopened this Aug 25, 2023
@henningjp
Copy link
Contributor

@ibell - It looks like as of 6.4.2, the individual package add-ins are no longer being compiled on Source Forge by the build-bot. We had this working pretty good for Mathcad as it needs it's own specific wrapper DLL. Without it, folks have to get a compiler and build their own. Can we restore this functionality or is this a shift in what we are going to provide?

@henningjp henningjp self-assigned this Aug 28, 2023
@ibell
Copy link
Contributor

ibell commented Aug 28, 2023 via email

@GLardner
Copy link

Thank you for the explanation.

@henningjp
Copy link
Contributor

@ibell - So, can I compile the back release versions and upload them to SourceForge as an admin? Is it that easy? Do we need to discuss off-line?

@ibell
Copy link
Contributor

ibell commented Sep 8, 2023

Yes that's right. Build them, label them, zip them, send them to @jowr for upload

@henningjp
Copy link
Contributor

@GLardner - Working on this. For now use 6.4.1, which is available on SourceForge.

@jowr
Copy link
Member

jowr commented Sep 18, 2023

@GLardner
Copy link

GLardner commented Sep 18, 2023 via email

@henningjp
Copy link
Contributor

Thanks @jowr ! Updating the README and Web docs soon.

@henningjp
Copy link
Contributor

@GLardner If you haven't seen, Mathcad Prime library is now being automatically built again on SourceForge for major versions and nightly builds. The DLL and example file is located in the Mathcad Prime folder.

@GLardner
Copy link

@henningjp Thank you for bringing this to my attention. Yes, it is working for me now, and since v6.5.0, though I did have to force a recalculation to see the correct result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants