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

Add partial pressure of water as an output in HAPropsSI #490

Closed
pmanach opened this issue Feb 23, 2015 · 6 comments
Closed

Add partial pressure of water as an output in HAPropsSI #490

pmanach opened this issue Feb 23, 2015 · 6 comments
Assignees
Milestone

Comments

@pmanach
Copy link

pmanach commented Feb 23, 2015

Add:

  • P_WS : water saturation pressure
  • P_W : water pressure
    as Input of Coolprop.
@ibell
Copy link
Contributor

ibell commented Feb 23, 2015

You mean P_W as an output, right? I don't think it makes sense to use it
as an input.

On Mon, Feb 23, 2015 at 12:09 AM, pmanach notifications@github.com wrote:

Add:

  • P_WS : water saturation pressure
  • P_W : water pressure as Input of Coolprop.


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

@pmanach
Copy link
Author

pmanach commented Feb 25, 2015

Hello Ian,
Yes of Course, only INPUT.
I propose to help you to debug the HAPROPSI function : I've again seen some troubles...
Could you explain me how work your solvers ?

@ibell
Copy link
Contributor

ibell commented Feb 25, 2015

Have you looked at the C++ code:
https://github.com/CoolProp/CoolProp/blob/master/src/HumidAirProp.cpp ?

Basically we take any inputs, and convert to Temperature, pressure, and
water mole fraction.

And then all outputs can be obtained as a function of Temperature,
pressure, and water mole fraction

On Wed, Feb 25, 2015 at 1:23 PM, pmanach notifications@github.com wrote:

Hello Ian,
Yes of Course, only INPUT.
I propose to help you to debug the HAPROPSI function : I've again seen
some troubles...
Could you explain me how work your solvers ?


Reply to this email directly or view it on GitHub
#490 (comment).

@ibell ibell added this to the v 5.1 milestone Feb 28, 2015
@ibell
Copy link
Contributor

ibell commented Mar 12, 2015

Can you please clarify this issue? I am prepared to implement it, but I want to make sure we are talking about the same things.

If I understand correctly, you would like two features added as output-only parameters

  • The pressure of pure(!) water (not including the enhancement factor), p_ws, or as sometimes referred to, p_w0. This is the same value as could be obtained from PropsSI("P","T",298.15,"Q",0,"Water") for instance. Thus I am not sure it is worth it to implement it in HAPropsSI
  • Water partial pressure, which is given by the enhancement factor times the water-alone pressure p_w0 - this definitely should be implemented in HAPropsSI

@pmanach
Copy link
Author

pmanach commented Mar 12, 2015

Hello Ian,
What I asked is only the water partial pressure in air and the water partial pressure in air at saturation (R=1).
Sincerely,PY MANACH
Date: Wed, 11 Mar 2015 18:49:43 -0700
From: notifications@github.com
To: CoolProp@noreply.github.com
CC: pierreyvesmanach@hotmail.com
Subject: Re: [CoolProp] Add P_WS & P_W in HapropsSI Function (#490)

Can you please clarify this issue? I am prepared to implement it, but I want to make sure we are talking about the same things.

If I understand correctly, you would like two features added as output-only parameters

The pressure of pure(!) water (not including the enhancement factor), p_ws, or as sometimes referred to, p_w0. This is the same value as could be obtained from PropsSI("P","T",298.15,"Q",0,"Water") for instance. Thus I am not sure it is worth it to implement it in HAPropsSI
Water partial pressure, which is given by the enhancement factor times the water-alone pressure p_w0 - this definitely should be implemented in HAPropsSI


Reply to this email directly or view it on GitHub.

@ibell
Copy link
Contributor

ibell commented Mar 12, 2015

Ok, I think it only makes sense to calculate the partial pressure of water,
and if you want it at saturation, you just do:

PP_ws = HAPropsSI("PP_w","P",101325,"R",1,"T",298)

That should be easy to implement

On Thu, Mar 12, 2015 at 3:12 AM, pmanach notifications@github.com wrote:

Hello Ian,
What I asked is only the water partial pressure in air and the water
partial pressure in air at saturation (R=1).
Sincerely,PY MANACH
Date: Wed, 11 Mar 2015 18:49:43 -0700
From: notifications@github.com
To: CoolProp@noreply.github.com
CC: pierreyvesmanach@hotmail.com
Subject: Re: [CoolProp] Add P_WS & P_W in HapropsSI Function (#490)

Can you please clarify this issue? I am prepared to implement it, but I
want to make sure we are talking about the same things.

If I understand correctly, you would like two features added as
output-only parameters

The pressure of pure(!) water (not including the enhancement factor),
p_ws, or as sometimes referred to, p_w0. This is the same value as could be
obtained from PropsSI("P","T",298.15,"Q",0,"Water") for instance. Thus I am
not sure it is worth it to implement it in HAPropsSI
Water partial pressure, which is given by the enhancement factor times the
water-alone pressure p_w0 - this definitely should be implemented in
HAPropsSI


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#490 (comment).

@ibell ibell changed the title Add P_WS & P_W in HapropsSI Function Add partial pressure of water as an output in HAPropsSI Mar 12, 2015
@ibell ibell self-assigned this Mar 13, 2015
@ibell ibell closed this as completed in eadee7e Mar 13, 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