CoolProp Wrapper

CoolProp Wrapper - Pure and pseudo-pure fluid equations of state and transport properties for 122 components - Messages

#41 Posted: 1/17/2018 4:48:45 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

is it possible to run it on ubuntu 17.10 using mono?, I can't get it to work, when I try to evaluate "CoolProp_get_global_param_string("version")" I just get a little yellow message under the command that reads "CoolProp_x64", or do I need to compile the coolprop binaries ins some specific folder or is it a standalone plugin-extension?



The plug-in it's composed by 3 files, the SMath wrapper plus 2 coolprop libraries (one for x86 systems, the other for x64 ones); according to this issue, it should be possible if you compile the coolprop library (the core) in your machine and then you replace the one shared within this plugin.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#42 Posted: 6/18/2020 2:56:52 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Updated.

Changes: refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 6/18/2020 7:29:00 PM
#43 Posted: 2/11/2021 4:05:01 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

Updated.
Changes: refactored.


I just started playing with this tool, so please be patient with my ignorance.

Updated to what? The version on my system is 6.1.0; however, the CoolProp website is on 6.4.1
I've also noticed that some of the description paramater names fail.
Screenshot 2021-02-11 015712.png
In addition, off of other threads, there appears to be "commands" that are no longer valid. An example would be FProp here.. Please advise.

I'm still searching for information as to what the other functions do (e.g. CoolProp_get_param_index)

#44 Posted: 2/11/2021 8:29:51 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Wrote

The plug-in it's composed by 3 files, the SMath wrapper plus 2 coolprop libraries (one for x86 systems, the other for x64 ones)


The plugin consists of two parts: a wrapper and a library. I didn't change the library, I just updated the wrapper source code.
It is possible to update the library version. I don't know where the documentation is and how the set of parameters changes depending on the version.
Russia ☭ forever, Viacheslav N. Mezentsev
#45 Posted: 2/11/2021 10:24:03 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

Wrote

The plug-in it's composed by 3 files, the SMath wrapper plus 2 coolprop libraries (one for x86 systems, the other for x64 ones)


The plugin consists of two parts: a wrapper and a library. I didn't change the library, I just updated the wrapper source code.
It is possible to update the library version. I don't know where the documentation is and how the set of parameters changes depending on the version.


What is the correct location for the wrapper? From the 1st post, these are invalid
Quote

Official SMath wrapper (you have to build it by yourself, instructions in his documentation)

  • repository: https://github.com/CoolProp/CoolProp/tree/master/wrappers/SMath;
  • documentation: http://www.coolprop.org/coolprop/wrappers/SMath/;


I may take a crack at compiling the newer version
#46 Posted: 2/11/2021 11:08:59 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

I can update the whole plugin including the library if you need.
Russia ☭ forever, Viacheslav N. Mezentsev
#47 Posted: 2/11/2021 1:40:37 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

I can update the whole plugin including the library if you need.


That would be appreciated. Version 6.1.0 is from 2016 and 6.4.1 is Aug. 2020.
On another post (by you), there seemed to be a relation with MathCad. In Sourceforge, MathCad and Prime are compiled by the CoolProp group. Could those files be used so we can just update the few dll files?
https://sourceforge.net/projects/coolprop/files/CoolProp/6.4.1/
https://sourceforge.net/projects/coolprop/files/CoolProp/nightly/
#48 Posted: 2/12/2021 1:14:30 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Wrote

On another post (by you), there seemed to be a relation with MathCad. In Sourceforge, MathCad and Prime are compiled by the CoolProp group. Could those files be used so we can just update the few dll files?


Yes, you can use these libraries, but this is not a good idea. Better to use direct way.
Russia ☭ forever, Viacheslav N. Mezentsev
#49 Posted: 2/12/2021 2:12:20 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Sources

Updated. Please try.

Changes:

- CoolProp library updated to 6.4.1;
- refactored.

Wrote

What is the correct location for the wrapper? From the 1st post, these are invalid


%appdata%\SMath\extensions\plugins\ca92ef03-c7da-4888-98ad-528482733e2f
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 2/13/2021 2:54:00 AM
#50 Posted: 6/18/2021 8:11:35 PM
Bruno Bate

Bruno Bate

1 likes in 5 posts.

Group: User

I am now getting the following error when using the CoolProp incompressible fluids library call

Initialize failed for backend: "?", fluid: "INCOMP::MEG-50%" fractions "[1.0000000 ]"; error: key [INCOMP::MEG-50%] was not found in string_to_index_map in JSONFluidLibrary : PropsSI("D","T",288.15,"P",101325.3532,"INCOMP::MEG-50%" )

This call was working March of this year. Any suggestions on what may be causing this issue?

Using:
CoolProp Wrapper Plugin 6.1.7713.14622
Smath Version: Smath Studio Desktop 64-bit, 0.99 (build: 7822)
CoolProp Version: CoolProp_v6.4.1.0
#51 Posted: 6/25/2021 6:53:31 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

PropsSI.jpg

PropsSI() function is from another plugin (mcadefi + mathcad coolprop lib).

CoolProp_Props.jpg

CoolProp_Props.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Andrey Ivashov 6/25/2021 4:27:00 PM
#52 Posted: 8/27/2021 7:22:19 PM
Bruno Bate

Bruno Bate

1 likes in 5 posts.

Group: User

App Version: "0.99.7822.147"
Windows 10 Pro 64-bit

Issue: CoolProp Plugin functions not recognized by Smath

What I've tried:
- Adding/removing CoolProp Plugin (through the Extensions Manager in Smath Studio Desktop)
- re-installed SMATH Studio; deleting plugin folder after uninstall
- Re-installing CoolProp

Could you please provide guidance on what may be causing this issue?


1 users liked this post
#53 Posted: 8/28/2021 2:01:45 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

The reason for this behavior has not yet been clarified. Use this library for now, replacing the original one (\extensions\plugins\ca92ef03-c7da-4888-98ad-528482733e2f\x.x.x.x\).

CoolPropWrapper-6.4.7910.17946.zip (2 MiB) downloaded 61 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
#54 Posted: 9/2/2021 5:11:40 PM
Bruno Bate

Bruno Bate

1 likes in 5 posts.

Group: User

Wrote

The reason for this behavior has not yet been clarified. Use this library for now, replacing the original one (\extensions\plugins\ca92ef03-c7da-4888-98ad-528482733e2f\x.x.x.x\).

CoolPropWrapper-6.4.7910.17946.zip (2 MiB) downloaded 61 time(s).



I've downloaded the .dll you provided and placed it in the plugins folder.
I get the following error message when I open Smath:

PluginError
#55 Posted: 9/3/2021 4:14:56 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

You need to place it here:
%appdata%\SMath\extensions\plugins\ca92ef03-c7da-4888-98ad-528482733e2f\6.4.7910.14793\

The last numbers may vary. This is the plugin folder. After replacing the file (CoolPropWrapper.dll), everything should work.
Russia ☭ forever, Viacheslav N. Mezentsev
#56 Posted: 9/3/2021 6:56:54 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

SMath Studio compatibility

Plugin updated.

Changes:
- all function's classes now marked as public.

It should work now. You can update the plugin.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 9/3/2021 12:50:00 PM
#57 Posted: 9/3/2021 12:55:30 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

SMath Studio compatibility

Plugin updated.

Changes:
- all function's classes now marked as public.

It should work now. You can update the plugin.



Hi Viacheslav, thanks, it works. But there are an small issue with the unicode strings

Clipboard01.jpg

Best regards.
Alvaro.
1 users liked this post
#58 Posted: 9/3/2021 3:32:39 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Okay, you caught me.

Plugin updated. Try now.

2021-09-03_23-34-35.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 9/3/2021 6:22:00 PM
#59 Posted: 9/3/2021 6:21:53 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Hi. Great! Now the demo file in the first post works perfect.

Best regards.
Alvaro.
#60 Posted: 4/19/2023 12:38:31 PM
usamakhan

usamakhan

3 likes in 75 posts.

Group: User

How can I get properties of mixtures e.g

CoolProp_Props("Dmass","T",273+100,"P",101.3*10^3,"Helium[0.5]&Xenon[0.5]"
ref: http://www.coolprop.org/fluid_properties/Mixtures.html
  • New Posts New Posts
  • No New Posts No New Posts