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

Molecular Formulas as Trivial Property #564

Closed
thebear9 opened this issue Mar 29, 2015 · 5 comments
Closed

Molecular Formulas as Trivial Property #564

thebear9 opened this issue Mar 29, 2015 · 5 comments
Milestone

Comments

@thebear9
Copy link

Since properties such as molar mass, critical temp, critical pressure, etc. can be retrieved based on the fluid name, why not add a feature to retrieve the formula?

std::string formula = CoolProp::get_fluid_param_string("Nitrogen", "Formula");

to return "N2"

Obviously, there would be some exceptions like air which doesn't have a molecular formula, but this feature would still be helpful.

@ibell
Copy link
Contributor

ibell commented Mar 29, 2015

That's a great idea. Can you put it together?

@ibell ibell added the wishlist label Apr 1, 2015
@ibell
Copy link
Contributor

ibell commented Apr 8, 2015

Looks like it should be pretty easy actually: http://chemspipy.readthedocs.org/en/latest/guide/gettingstarted.html

@thebear9
Copy link
Author

thebear9 commented Apr 8, 2015

That's a great solution! I meant to reply earlier, but I wanted to compile the formulas first. I'll look into your solution soon!

@ibell
Copy link
Contributor

ibell commented Apr 9, 2015

There's also this - http://cactus.nci.nih.gov/chemical/structure . I've heard its a lot more reliable. Looks like you can get back the chemical formula, and it can all be scripted. Do you use python?

@thebear9
Copy link
Author

thebear9 commented Apr 9, 2015

Ian,

Thanks for the additional details! I actually code in Objective-C and I've been working on bringing in CoolProp to my app, Chemical Engineering Appsuite. I should have an update to the app finalized by the end of the month.

https://itunes.apple.com/us/app/chemical-engineering-appsuite/id526158171?mt=8

Best,
Jason

@ibell ibell closed this as completed in e4b4512 Apr 11, 2015
@ibell ibell added this to the v 5.1 milestone Apr 11, 2015
@ibell ibell removed the wishlist label Apr 11, 2015
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

2 participants