CoolProp Wrapper

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

#41 已发布: 2018/1/17 04:48:45
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2020/6/18 14:56:52
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Updated.

Changes: refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Davide Carpi 2020/6/18 19:29:00
#43 已发布: 2021/2/11 04:05:01
Ruben Sidranski

Ruben Sidranski

17个赞,共465个帖子。

组: 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 已发布: 2021/2/11 08:29:51
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2021/2/11 10:24:03
Ruben Sidranski

Ruben Sidranski

17个赞,共465个帖子。

组: 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
引用

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 已发布: 2021/2/11 11:08:59
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

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

Ruben Sidranski

17个赞,共465个帖子。

组: 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 已发布: 2021/2/12 01:14:30
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2021/2/12 02:12:20
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Alvaro 2021/2/13 02:54:00
#50 已发布: 2021/6/18 20:11:35
Bruno Bate

Bruno Bate

1个赞,共5个帖子。

组: 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 已发布: 2021/6/25 06:53:31
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Andrey Ivashov 2021/6/25 16:27:00
#52 已发布: 2021/8/27 19:22:19
Bruno Bate

Bruno Bate

1个赞,共5个帖子。

组: 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位用户喜欢此帖子
#53 已发布: 2021/8/28 02:01:45
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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.54 MiB)已下载 601 次。
Russia ☭ forever, Viacheslav N. Mezentsev
#54 已发布: 2021/9/2 17:11:40
Bruno Bate

Bruno Bate

1个赞,共5个帖子。

组: 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.54 MiB)已下载 601 次。



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 已发布: 2021/9/3 04:14:56
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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 已发布: 2021/9/3 06:56:54
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: 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位用户喜欢此帖子
Alvaro 2021/9/3 12:50:00
#57 已发布: 2021/9/3 12:55:30
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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位用户喜欢此帖子
#58 已发布: 2021/9/3 15:32:39
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

Okay, you caught me.

Plugin updated. Try now.

2021-09-03_23-34-35.png
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Alvaro 2021/9/3 18:22:00
#59 已发布: 2021/9/3 18:21:53
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

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

Best regards.
Alvaro.
#60 已发布: 2023/4/19 12:38:31
usamakhan

usamakhan

7个赞,共98个帖子。

组: 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
  • 有新帖
  • 无新帖