Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoolProp on iOS #368

Closed
babaksamareh opened this issue Dec 22, 2014 · 8 comments
Closed

CoolProp on iOS #368

babaksamareh opened this issue Dec 22, 2014 · 8 comments
Milestone

Comments

@babaksamareh
Copy link
Contributor

StateCalc v3.0 is finally approved and already available on iTunes store (https://itunes.apple.com/us/app/statecalc/id891848148?ls=1&mt=8). This version uses the latest CoolProp engine instead of REFPROP, and so far supports 10 fluids. New versions and updates will come out very soon, and new materials will be added as bundles. I will also add binary mixture and moist air support as soon as I find some free time.
I just wanted to thank you guys for this great piece of code and your support. And also see if its possible to add StateCalc somewhere in coolprop.org, maybe under supporters or projects that use CoolProp.

Cheers,

@ibell
Copy link
Contributor

ibell commented Dec 22, 2014

Yup, I'll add a link to StateCalc on the main website.

On Mon, Dec 22, 2014 at 11:46 AM, Babak Samareh notifications@github.com
wrote:

StateCalc v3.0 is finally approved and already available on iTunes store (
https://itunes.apple.com/us/app/statecalc/id891848148?ls=1&mt=8). This
version uses the latest CoolProp engine instead of REFPROP, and so far
supports 10 fluids. New versions and updates will come out very soon, and
new materials will be added as bundles. I will also add binary mixture and
moist air support as soon as I find some free time.
I just wanted to thank you guys for this great piece of code and your
support. And also see if its possible to add StateCalc somewhere in
coolprop.org, maybe under supporters or projects that use CoolProp.

Cheers,


Reply to this email directly or view it on GitHub
#368.

@ibell ibell added this to the v5.0.5 milestone Dec 22, 2014
@ibell ibell closed this as completed in 92a1336 Dec 22, 2014
@ibell
Copy link
Contributor

ibell commented Dec 22, 2014

Ok, link added, look nice what you have done. One of these days I'll need
you to give me a tutorial...
On Dec 22, 2014 3:31 PM, "Ian Bell" ian.h.bell@gmail.com wrote:

Yup, I'll add a link to StateCalc on the main website.

On Mon, Dec 22, 2014 at 11:46 AM, Babak Samareh notifications@github.com
wrote:

StateCalc v3.0 is finally approved and already available on iTunes store (
https://itunes.apple.com/us/app/statecalc/id891848148?ls=1&mt=8). This
version uses the latest CoolProp engine instead of REFPROP, and so far
supports 10 fluids. New versions and updates will come out very soon, and
new materials will be added as bundles. I will also add binary mixture and
moist air support as soon as I find some free time.
I just wanted to thank you guys for this great piece of code and your
support. And also see if its possible to add StateCalc somewhere in
coolprop.org, maybe under supporters or projects that use CoolProp.

Cheers,


Reply to this email directly or view it on GitHub
#368.

@babaksamareh
Copy link
Contributor Author

My pleasure, anytime :)

@jowr
Copy link
Member

jowr commented Dec 23, 2014

Great, looks interesting. Do you have a sophisticated way to automatically draw isolines and to calculate the spacing? Your graphs look nice and I think our plots package in Python could use some improvement :-) .

@babaksamareh
Copy link
Contributor Author

Thanks guys, you're spoiling me :D
Well, originally I wanted to implement live plotting, but I wasn't sure how much time it needs on a cellphone to find all the data every time you want to calculate a single point. So, I wrote a simple matlab script that generates T-s, T-v, and P-h isoline data for all the fluids available in CoolProp. Spacings are automatic, and it's not sophisticated at all. I can send you the codes if you want them.
Also, the plotting package that I use on iOS is coreplot. I still have to add annotations to the plots, will do it for the next version.

@jowr
Copy link
Member

jowr commented Dec 23, 2014

Thanks, you could send me the code, I am always interested in other people's solutions to problems I tried to solve myself without getting to a solution that I am happy with ... but it would be even better if you found the time to have a look at Plots.py and could come up with some possible improvements. Maybe your code could also benefit from some features we have there. I think the reusable cherries in that code are the automatic axis limits, the duplicate-aware array rounding with automatic scaling to produce the shortest possible labels on isolines and the x,y,z switching to use the fastest and most reliable inputs.

@babaksamareh
Copy link
Contributor Author

I uploaded the code here (https://github.com/babaksamareh/TSPlotter). Like I said it's just a quick fix to what I needed, so doesn't have enough comments, and some stuff are hard coded. Nothing intelligent. But if you run it in Matlab you will see all the T-s plots. Since I needed these plots on iPhone, I have only 7 pressure lines. So the middle one is the critical pressure, and 3 other lines on each side of it. This solution works for me (at least its visually OK), but you probably need a more sophisticated algorithm to define spacing between pressure lines.
Thanks for your advise on the plots. I definitely can use your isoline labeling method.
Let me know if you needed more info on this.

@babaksamareh
Copy link
Contributor Author

By the way, it also generates some extra lines which I needed to generate the color-filled areas under the graphs. Ignore them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants