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
Comments
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
|
Ok, link added, look nice what you have done. One of these days I'll need
|
My pleasure, anytime :) |
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 :-) . |
Thanks guys, you're spoiling me :D |
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. |
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. |
By the way, it also generates some extra lines which I needed to generate the color-filled areas under the graphs. Ignore them. |
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,
The text was updated successfully, but these errors were encountered: