1 Pages (10 items)
Diff and Coolprop - Messages
#1 Posted: 1/27/2018 11:37:12 PM
Hi. How can take the derivative or integral of a function involving coolprops?
Thanks in advance.
Alvaro.
File not found.File not found.
Thanks in advance.
Alvaro.
File not found.File not found.
#2 Posted: 1/28/2018 6:41:06 AM
Hello Alvaro,
I have the impression that numerical derivative and integration issues (especially with units) will be here on the Forum for ever
. I wish I was wrong.
The analytical attempts with Maple or Maxima will fail here. We are forced to use numerical solvers or functions here. Here is the solution (not straight forward though) only in SMath.
I tried Gradient.CD() from NumericalSolvers plugin, but I failed.
Regards,
Radovan
I have the impression that numerical derivative and integration issues (especially with units) will be here on the Forum for ever

The analytical attempts with Maple or Maxima will fail here. We are forced to use numerical solvers or functions here. Here is the solution (not straight forward though) only in SMath.
I tried Gradient.CD() from NumericalSolvers plugin, but I failed.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Alvaro Diaz Falconi 1/29/2018 10:30:00 AM
#3 Posted: 1/28/2018 7:11:32 AM
Aside smath issues, you can use the coolprop derivatives syntax (units not handled here, wrapper stuff to check)
![2018-01-28 10_58_02-SMath Studio - [Page2_].png](/en-US/file/mWZ656/2018-01-28-10_58_02-SMath-Studio---_Page2___png)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
#4 Posted: 1/28/2018 9:44:11 AM
Oh, thanks. I want to use coolprop and smath to show the basic thermodynamics equations, like

the dT dS relationships, etc. With nice notation (even have not partial derivatives) and, of course, units.
Any way. Another question ... there are a standard way to plot with log scale? I can try to write my own function, but first want to know that. In the attached, a classical problem solved in less than two sheets, with the help of SMath.
Best regards.
Alvaro.
Rankine Cycle with Reheat.sm (147 KiB) downloaded 68 time(s).
the dT dS relationships, etc. With nice notation (even have not partial derivatives) and, of course, units.
Any way. Another question ... there are a standard way to plot with log scale? I can try to write my own function, but first want to know that. In the attached, a classical problem solved in less than two sheets, with the help of SMath.
Best regards.
Alvaro.
Rankine Cycle with Reheat.sm (147 KiB) downloaded 68 time(s).
1 users liked this post
frapuano 1/28/2018 3:26:00 PM
#5 Posted: 1/29/2018 12:00:06 AM
WroteOh, thanks. I want to use coolprop and smath to show the basic thermodynamics equations,
Hello Alvaro,
Physical water has two measurable properties [T,P].
Boiling drum operates @ saturation thus, measuring one gives the other one.
Here, it seems you are working compressed water [single phase].
It has 15 WASP properties ... how you call either one @ mystic from CoolProp.
Maybe, I don't understand the project.
Jean
Maths CoolProp_Props Copy.sm (403 KiB) downloaded 71 time(s).
1 users liked this post
Alvaro Diaz Falconi 1/29/2018 10:26:00 AM
#6 Posted: 1/29/2018 3:11:21 AM
#7 Posted: 1/29/2018 10:25:08 AM
Here what can I do, but guess that not much more, at least without an equivalent of wolfram's Hold or maple's x::uneval. I don't see any other way for handle the case with 2 variables, i.e. h(s,v), u(T,P) etc and have a true readable implementation of classic thermodynamics.

Best regards.
Alvaro.
CoolPropDiff.sm (38 KiB) downloaded 71 time(s).
Best regards.
Alvaro.
CoolPropDiff.sm (38 KiB) downloaded 71 time(s).
#8 Posted: 1/29/2018 10:29:04 AM
#9 Posted: 1/29/2018 3:34:25 PM
Thanks Alvaro, saved
Very interesting stuff from http://www.katmarsoftware.com/
From Katmar, I use lot Uconeer [Unit Converter]
and WASP [Water & Steam Properties] ... 3 min free session, unlimited sessions.
See you, cheers ... Jean
Very interesting stuff from http://www.katmarsoftware.com/
From Katmar, I use lot Uconeer [Unit Converter]
and WASP [Water & Steam Properties] ... 3 min free session, unlimited sessions.
See you, cheers ... Jean
#10 Posted: 1/29/2018 4:07:28 PM
1 Pages (10 items)
-
New Posts
-
No New Posts