Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: Davide Carpi Code uploaded in the SVN repository ( CoolPropWrapper), to make it easily available for further changes. UPDATED- CoolProp 5.1.2 |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 29/03/2016(UTC), on 11/04/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
A sheet to see some of CoolProp functions. CoolProp_demo.sm (118kb) downloaded 367 time(s).EDIT: Updated the demo (using development version of library). Edited by user 05 June 2016 23:07:43(UTC)
| Reason: Not specified |
Best regards, Mike Kaganski |
3 users thanked mikekaganski for this useful post.
|
on 11/04/2016(UTC), on 12/04/2016(UTC), on 12/04/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,478 Was thanked: 930 time(s) in 590 post(s)
|
Very useful! Thanks Alvaro.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
"Alvaro" was great collab from the former Mathsoft Collaboratory. At that time of the Mathsoft Collaboratory, I signed "jmG". Here is a hint: your great Mathcad 11 "Dichotomy" module.
Jean
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,478 Was thanked: 930 time(s) in 590 post(s)
|
Hi, Jean. Yes, it's "me" (and my personal english too). ¿How are you?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,478 Was thanked: 930 time(s) in 590 post(s)
|
Hi. I don't know how to call the functions CoolProp_set_reference_stateD nor CoolProp_set_reference_stateS. See the yellow in the attached. Best regards. Alvaro. P3.sm (119kb) downloaded 128 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
Originally Posted by: Razonar Hi. I don't know how to call the functions CoolProp_set_reference_stateD nor CoolProp_set_reference_stateS. See the yellow in the attached. https://github.com/CoolProp/CoolProp/issues/1091Regarding CoolProp_set_reference_stateS, AFAICT, it works OK, following the definition given in https://github.com/CoolP...aster/include/CoolProp.h : Code:
Set the reference state based on a string representation
@param FluidName The name of the fluid (Backend can be provided like "REFPROP::Water", or if no backend is provided, "HEOS" is the assumed backend)
@param reference_state The reference state to use, one of
Reference State | Description
------------- | -------------------
"IIR" | h = 200 kJ/kg, s=1 kJ/kg/K at 0C saturated liquid
"ASHRAE" | h = 0, s = 0 @ -40C saturated liquid
"NBP" | h = 0, s = 0 @ 1.0 bar saturated liquid
"DEF" | Reset to the default reference state for the fluid
"RESET" | Remove the offset
The offset in the ideal gas Helmholtz energy can be obtained from
{Δs}/{R_u/M}+{Δh}/{(R_u/M)T}τ
where Δs = s-s_{spec} and Δh = h-h_{spec}
void set_reference_stateS(const std::string &FluidName, const std::string &reference_state);
with the only exception that "RESET" doesn't remove any offset. Edited by user 03 June 2016 02:35:30(UTC)
| Reason: Not specified |
Best regards, Mike Kaganski |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,478 Was thanked: 930 time(s) in 590 post(s)
|
Originally Posted by: mikekaganski In the attached there are a similar information, from github too, but referent to the wrapper. Can provide a smath example changing the refstate and showing h or s values changing? I can't do that inside smath. Thanks in advance Alvaro. Edited by moderator 02 June 2016 21:40:06(UTC)
| Reason: fixed quote BBcode
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,478 Was thanked: 930 time(s) in 590 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
Originally Posted by: Razonar In the attached there are a similar information, from github too, but referent to the wrapper. Can provide a smath example changing the refstate and showing h or s values changing? I can't do that inside smath.
refstate.sm (49kb) downloaded 127 time(s).WRT CoolProp_set_reference_stateD, I do agree it doesn't work for now, which is why I filed a bug upstream. |
Best regards, Mike Kaganski |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
@Davide,
Is it worth it to turn the plugin to newer interface, I mean Entry instead of Term[]? Which oldest SMath will be supported then? |
Best regards, Mike Kaganski |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: mikekaganski @Davide,
Is it worth it to turn the plugin to newer interface, I mean Entry instead of Term[]? Which oldest SMath will be supported then? Maybe yes, however soon or later should be done. Entry class is since 0.98, therefore supported versions as for now they would be only 0.98.5935 Stable and further nightly builds. BTW in NonlinearSolvers refactoring I've switched all the functions to that interface (with different degrees of changes; some are just linked to Entry in the input/output points, in some other cases I've take advantage of the Entry features to make deep changes) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
@Davide,
is there a documentation available (aside the source code itself)? Thank you for your help. |
Best regards, Mike Kaganski |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
I've asked Andrey to publish the updated core documentation, I guess we have to wait the next Stable build... If you want to try by examples: https://smath.info/svn/public/plugins/NonlinearSolvers/NIGHTLY BUILD/; in Tools you may found the most simpler examples (Taylor is an easy example of conversion in the input/output nodes using Terms; Unknowns makes use of Entry to do the job, Terms are used to build the output) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
Making it run on mono under Ubuntu: Hope it will be available in next version of plugin. |
Best regards, Mike Kaganski |
1 user thanked mikekaganski for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
UPDATED Stable: SMath Studio 0.98.6128- CoolProp 6.1.0; - refactored to new SS fast interface (please test it a little so I can see if make it stable or I have to fix/change something); |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
Thanks, Davide! Here's what I see: Also, no dynamic assistance is available. Though disabling the plugin doesn't help. |
Best regards, Mike Kaganski |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Though I don't use Smath unit system, two questions come to evidence:
1. 'Q' does not not belong to WASP [WaterSteamProperties]. 2. '1' is what ? ... maybe '1' is atm in the 2nd line ?
If "Units don't match": how could the dynamic assistance help ?
The coulomb (unit symbol: C) is the International System of Units (SI) unit of electric charge. It is the charge (symbol: Q or q) transported by a constant current of one ampere in one second: 1 C = 1 A * 1 s
1 ((Pa * m * s^2) / kg) * bar = 100 000 pascals
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello Mike, Originally Posted by: mikekaganski Reproduced, thank you. I'll fix it ASAP Originally Posted by: mikekaganski Also, no dynamic assistance is available. Though disabling the plugin doesn't help. This is really strange, I have the dynamic assistant both in install and portable versions and using different localizations (languages/symbols) Originally Posted by: Jean Giraud 1. 'Q' does not not belong to WASP [WaterSteamProperties]. 2. '1' is what ? ... maybe '1' is atm in the 2nd line ? Hello Jean, according with CoolProp documentation "Q" stands for "Mass vapor quality", thus 1 is 1 mol/mol Originally Posted by: Jean Giraud If "Units don't match": how could the dynamic assistance help ? I guess it is a separate bug Edited by user 26 October 2016 10:29:26(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.