-
Notifications
You must be signed in to change notification settings - Fork 16
“HumidAirProps” violates the first law of thermodynamic for isentropic process #211
Comments
Do you end up with the same entropies at the ends of the compression On Thu, Apr 24, 2014 at 4:09 PM, thnttt [email protected] wrote:
|
Another thought, the enthalpies and entropies are per kg of dry air, On Thu, Apr 24, 2014 at 4:14 PM, Ian Bell [email protected] wrote:
|
Thank you for your fast reply. In my codes above, the compression process has the same entropy, and the parameters “Hha” and “Vha” are used to get the enthalpy and volume at per kg of humid air. It seems “Sha” for entropy is invalid, so I have to use “S” per kg of dry air. I don’t think this is the cause of my problem. Sorry I don’t have Python or MATLAB installed. Instead, I can explain my calculation procedure: Let's discuss the accuracy of the numerical integration for compressor work later. Here is another interesting phenomenon I found, and maybe it should be solved first. Below are the compressor parameters at two different relative humidity “[Phi]1”(0 and 0.0001). |
Lets start off with an even smaller W (say 1e-10) - though I am not sure Also, Ill add Sha as an input for consistency's sake. On Fri, Apr 25, 2014 at 4:15 AM, thnttt [email protected] wrote:
|
I think the problem I encountered in the isentropic compression process may be caused by the strange behavior of the Entropy subroutine in "HumidAirProps". For the dry air at any certain condition (W=0), even adding a very small amount of water vapor (W=1e-10), "HumidAirProps" will show a severe drop of entropy (especially at high pressure and low temperature conditions). Another interesting thing happens when W is a negative value (W = -1e-10): In[139]:= HumidAirProps["S","P",100,"T",380,"W",-10.^-10] In[140]:= HumidAirProps["H","P",100,"T",380,"W",-10.^-10] The function of enthalpy and volume are continuous at W=0 and have real values when W<0. |
Interesting. I'll have to take a look and see what is going on. Thanks On Fri, Apr 25, 2014 at 1:27 PM, thnttt [email protected] wrote:
|
Is there any good news about this problem? I still need to calculate the isentropic compression work, but the strange results yielded by "HumidAirProps" worries me a lot. REFPROP doesn't support humid air, and I don't think the ideal gas assumption is valid for humid air above 5MPa. So please help me! Thank you very much! |
Sorry at the moment, no, I am working hard on a new version of CoolProp and On Wed, May 21, 2014 at 10:43 AM, thnttt [email protected] wrote:
|
Interesting. The HAProps definition of the enthalpy is not the same as for On Wed, May 21, 2014 at 1:27 PM, thnttt [email protected] wrote:
|
The basic problem is that if you read that document, they have terms that On Wed, May 21, 2014 at 1:39 PM, Ian Bell [email protected] wrote:
|
For an isentropic compression process, the relation dh=vdp can be found in any text book. When I calculate the compression work for high pressure humid air, the enthalpy obtained with function “HumidAirProps” seems to produce incorrect results. Below are the codes I used in Mathematica 9.0.1, Win7 x64.
{P1, T1, [Phi]1} = {5000, 303.15, 1};
P2 = 10000;
{W, V1, H1, S1} =
{HumidAirProps["W", "P", P1, "T", T1, "R", [Phi]1],
HumidAirProps["Vha", "P", P1, "T", T1, "R", [Phi]1],
HumidAirProps["Hha", "P", P1, "T", T1, "R", [Phi]1],
HumidAirProps["S", "P", P1, "T", T1, "R", [Phi]1]};
{T2, V2, H2, S2} =
{HumidAirProps["T", "P", P2, "S", S1, "W", W],
HumidAirProps["Vha", "P", P2, "S", S1, "W", W],
HumidAirProps["Hha", "P", P2, "S", S1, "W", W],
S1};
Ws1 = NIntegrate[
HumidAirProps["Vha", "P", p, "S", S1, "W", W], {p, P1, P2}];
Ws2 = H2 - H1;
In[415]:= {Ws1,Ws2}
Out[415]= {67.7215,70.9963}
"Ws1" is calculated by numerical integration along the isentropic path, while "Ws2" is the enthalpy difference between the starting and ending point of the compression process.
"Ws1" should equal "Ws2". However, this isn't true for any value of relative humidity [Phi]1. Besides, "Ws2" does not vary continuously at relative humidity [Phi]1=0.
The large difference between these methods confuses me a lot, and it will lead to large error in the prediction of compressor efficiency.
I tested the function "Props" for dry air, and got the right result "Ws1"="Ws2".
So I wonder If there is a bug in "HumidAirProps" or the method described in ASHRAE RP-1485.
Thanks!
The text was updated successfully, but these errors were encountered: