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

Get value of universal gas constant #366

Closed
ghost opened this issue Dec 22, 2014 · 2 comments
Closed

Get value of universal gas constant #366

ghost opened this issue Dec 22, 2014 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Dec 22, 2014

Hi,
I'm using CoolProp 5.0.4 with Python.
Is there way, using the wrapper functions, to get the value of universal gas constant that CoolProp uses?
(Couldn't find any in the documentation; had to to look in the source to find out it is 8.314472J/molK)

@ibell
Copy link
Contributor

ibell commented Dec 22, 2014

Yup, I'll fix this, you should be able to get the gas constant through the
PropsSI function, I'll make that change, and it will show up in version
5.0.5 of CoolProp. Not all fluids use exactly 8.314472 J/mol/K, so it is
important to be able to get it back out.

On Mon, Dec 22, 2014 at 3:25 AM, Frisbee Whisperwind <
notifications@github.com> wrote:

Hi,
I'm using CoolProp with Python.
Is there way, using the wrapper functions, to get the value of universal
gas constant that CoolProp uses?
(Couldn't find any in the documentation; had to to look in the soure to
find out it is 8.314472J/molK)


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

@ibell
Copy link
Contributor

ibell commented Dec 22, 2014

This should work now:

double Ru1 = PropsSI("gas_constant","T",300,"P", 101325,"Water");

or

double Ru1 = Props1SI("Water","gas_constant");

On Mon, Dec 22, 2014 at 2:32 PM, Ian Bell ian.h.bell@gmail.com wrote:

Yup, I'll fix this, you should be able to get the gas constant through the
PropsSI function, I'll make that change, and it will show up in version
5.0.5 of CoolProp. Not all fluids use exactly 8.314472 J/mol/K, so it is
important to be able to get it back out.

On Mon, Dec 22, 2014 at 3:25 AM, Frisbee Whisperwind <
notifications@github.com> wrote:

Hi,
I'm using CoolProp with Python.
Is there way, using the wrapper functions, to get the value of universal
gas constant that CoolProp uses?
(Couldn't find any in the documentation; had to to look in the soure to
find out it is 8.314472J/molK)


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

@ibell ibell closed this as completed in 1310af0 Dec 22, 2014
@ibell ibell added this to the v5.0.5 milestone Dec 22, 2014
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

1 participant