CoolProp Wrapper - Pure and pseudo-pure fluid equations of state and transport properties for 122 components - Сообщения
#61 Опубликовано: 21.04.2023 15:17:35
WroteHow can I get properties of mixtures e.g
ref: http://www.coolprop.org/fluid_properties/Mixtures.htmlCoolProp_Props("Dmass","T",273+100,"P",101.3*10^3,"Helium[0.5]&Xenon[0.5]"
This can't be done directly in the current version of the plugin. It is not clear how to call the apply_simple_mixing_rule() function from the library, it can't be imported as it is not in the export table.
maple-python-coolprop.sm (6 КиБ) скачан 79 раз(а).
maple-python-coolprop.pdf (19 КиБ) скачан 86 раз(а).

maple-python-coolprop-2.sm (5 КиБ) скачан 71 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#62 Опубликовано: 22.04.2023 05:00:09
WroteHow can I get properties of mixtures e.g
ref: http://www.coolprop.org/fluid_properties/Mixtures.htmlCoolProp_Props("Dmass","T",273+100,"P",101.3*10^3,"Helium[0.5]&Xenon[0.5]"
Hi. Notice that Refprop from NIST can't handle He/Xe mixing either. At least version 9.
On the other hand, maple doesn't seem to implement the procedure that Viacheslav points out either, as can be seen in the online documentation for the latest version.
However, very good values can be obtained using Coolprop in SMath and some basic stoichiometry.
Mixing gases.sm (19 КиБ) скачан 77 раз(а).
Mixing gases.pdf (67 КиБ) скачан 92 раз(а).
Best regards.
Alvaro.
#63 Опубликовано: 22.04.2023 05:34:44
More simple

maple-python-coolprop-3.sm (10 КиБ) скачан 79 раз(а).
maple-python-coolprop-3.1.sm (10 КиБ) скачан 63 раз(а).
maple-python-coolprop-3.2.sm (10 КиБ) скачан 81 раз(а).
maple-python-coolprop-3.sm (10 КиБ) скачан 79 раз(а).
maple-python-coolprop-3.1.sm (10 КиБ) скачан 63 раз(а).
maple-python-coolprop-3.2.sm (10 КиБ) скачан 81 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Alvaro Diaz Falconi 22.04.2023 09:32:00
#64 Опубликовано: 27.04.2023 03:09:34
Russia ☭ forever, Viacheslav N. Mezentsev
#65 Опубликовано: 28.04.2023 07:39:13
Or like this

maple-python-coolprop-3.4.sm (10 КиБ) скачан 76 раз(а).
maple-python-coolprop-3.5.sm (10 КиБ) скачан 79 раз(а).
maple-python-coolprop-3.4.sm (10 КиБ) скачан 76 раз(а).
maple-python-coolprop-3.5.sm (10 КиБ) скачан 79 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#66 Опубликовано: 29.04.2023 15:33:10
Russia ☭ forever, Viacheslav N. Mezentsev
#67 Опубликовано: 29.04.2023 22:07:03
is fantastic!
this no work the first time but after I play with the another examples this work, very well
thank you!
this no work the first time but after I play with the another examples this work, very well
thank you!
#68 Опубликовано: 04.05.2023 10:29:17
Without "pyfile" (inline multiline script). The script should be without comments.
Space padding is necessary here so that inside the script, when a large string is divided into parts, the line break character itself is not divided ( '\n' -> '\ n' ).

maple-python-coolprop-3.7.sm (9 КиБ) скачан 81 раз(а).
maple-python-coolprop-3.8.sm (6 КиБ) скачан 77 раз(а).
maple-python-coolprop-3.9.sm (8 КиБ) скачан 88 раз(а).
Space padding is necessary here so that inside the script, when a large string is divided into parts, the line break character itself is not divided ( '\n' -> '\ n' ).
maple-python-coolprop-3.7.sm (9 КиБ) скачан 81 раз(а).
maple-python-coolprop-3.8.sm (6 КиБ) скачан 77 раз(а).
maple-python-coolprop-3.9.sm (8 КиБ) скачан 88 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
#69 Опубликовано: 30.07.2023 08:12:32
#70 Опубликовано: 30.07.2023 13:33:42
Jean, can you help me how do integrate python in my Smath? I event tried environmental variables under Win10 but didn't work
#71 Опубликовано: 31.07.2023 03:45:32
You should use a double slash for the full path.

In this case, you need to check whether python is available from the command line. If not, it means that the paths are specified incorrectly.
WroteI event tried environmental variables under Win10 but didn't work
In this case, you need to check whether python is available from the command line. If not, it means that the paths are specified incorrectly.
Russia ☭ forever, Viacheslav N. Mezentsev
#72 Опубликовано: 02.08.2023 19:17:11
uni, thanks a lot
Can you tell me what is this block you used after python sub-section [i.e with the square bracket & holding script conetnts]
Additionally Razonar sample here is also very intuitive while calculating mixing values
https://en.smath.com/forum/yaf_postsm82120_Understanding-Redlich-Kwong-equation-of-state.aspx#post82120
Can you tell me what is this block you used after python sub-section [i.e with the square bracket & holding script conetnts]
Additionally Razonar sample here is also very intuitive while calculating mixing values
https://en.smath.com/forum/yaf_postsm82120_Understanding-Redlich-Kwong-equation-of-state.aspx#post82120
#73 Опубликовано: 03.08.2023 03:06:16
#74 Опубликовано: 04.08.2023 15:23:07
uni, so it means the text inside the block is not automatically generated. Can you please explain the construct
On second note you were correct, I fixed my environment variable under windows %python% now works
On second note you were correct, I fixed my environment variable under windows %python% now works
#75 Опубликовано: 08.08.2023 02:01:18
1 пользователям понравился этот пост
Davide Carpi 08.08.2023 02:10:00
#76 Опубликовано: 09.08.2023 03:47:50
Psychrometric Chart with CoolProps. 'Simplified' version (more readable): Enthalpy lines overlap web bulb temperature lines.
PsychrometricChart.sm (125 КиБ) скачан 83 раз(а).
Best regards.
Alvaro.
PsychrometricChart.sm (125 КиБ) скачан 83 раз(а).
Best regards.
Alvaro.
#77 Опубликовано: 21.08.2023 17:39:50
I think I have found some problems while using plugin to get phase properties as discussed here: http://www.coolprop.org/coolprop/HighLevelAPI.html#imposing-the-phase-optional
First when using "P|phase_gas" it doesn't accept units & T,P values have to be directly written in SI equivalent
Second there is a value discrepancy when using "P" & "P|phase_gas" for a fluid that exists only in gas phase at that T,P
Файл не найден.Файл не найден.
First when using "P|phase_gas" it doesn't accept units & T,P values have to be directly written in SI equivalent
Second there is a value discrepancy when using "P" & "P|phase_gas" for a fluid that exists only in gas phase at that T,P
Файл не найден.Файл не найден.
#78 Опубликовано: 16.04.2024 03:55:20
It seems that multiple instances of SMath can't use the plugin at the same time.
How to reproduce:
1. Open SMath and access any Coolprop function
2. Open another SMath instance: You get an error message

How to reproduce:
1. Open SMath and access any Coolprop function
2. Open another SMath instance: You get an error message
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
-
Новые сообщения
-
Нет новых сообщений