CoolProp Wrapper

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

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

Davide Carpi

1.443 me gusta en 2.936 mensajes.

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Updated.

Changes: refactored.
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Davide Carpi 18/6/2020 19:29:00
#43 Publicado: 11/2/2021 4:05:01
Ruben Sidranski

Ruben Sidranski

17 me gusta en 465 mensajes.

Grupo: 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 Publicado: 11/2/2021 8:29:51
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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 Publicado: 11/2/2021 10:24:03
Ruben Sidranski

Ruben Sidranski

17 me gusta en 465 mensajes.

Grupo: 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
Citar

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

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

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

Ruben Sidranski

17 me gusta en 465 mensajes.

Grupo: 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 Publicado: 12/2/2021 1:14:30
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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 Publicado: 12/2/2021 2:12:20
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Alvaro 13/2/2021 2:54:00
#50 Publicado: 18/6/2021 20:11:35
Bruno Bate

Bruno Bate

1 me gusta en 5 mensajes.

Grupo: 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 Publicado: 25/6/2021 6:53:31
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

PropsSI.jpg

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

CoolProp_Props.jpg

CoolProp_Props.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Andrey Ivashov 25/6/2021 16:27:00
#52 Publicado: 27/8/2021 19:22:19
Bruno Bate

Bruno Bate

1 me gusta en 5 mensajes.

Grupo: 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?


A 1 usuarios les gustó este mensaje
#53 Publicado: 28/8/2021 2:01:45
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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) descargado 594 vez(es).
Russia ☭ forever, Viacheslav N. Mezentsev
#54 Publicado: 2/9/2021 17:11:40
Bruno Bate

Bruno Bate

1 me gusta en 5 mensajes.

Grupo: 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) descargado 594 vez(es).



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

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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 Publicado: 3/9/2021 6:56:54
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Alvaro 3/9/2021 12:50:00
#57 Publicado: 3/9/2021 12:55:30
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.
A 1 usuarios les gustó este mensaje
#58 Publicado: 3/9/2021 15:32:39
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Okay, you caught me.

Plugin updated. Try now.

2021-09-03_23-34-35.png
Russia ☭ forever, Viacheslav N. Mezentsev
A 1 usuarios les gustó este mensaje
Alvaro 3/9/2021 18:22:00
#59 Publicado: 3/9/2021 18:21:53
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

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

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

usamakhan

7 me gusta en 97 mensajes.

Grupo: 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
  • Nuevos mensajes
  • Sin mensajes nuevos