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

HapropsSI("T", "B", 299.15, "R", 0, "P", 101325) lead to an error #740

Closed
pmanach opened this issue Jul 21, 2015 · 14 comments
Closed

HapropsSI("T", "B", 299.15, "R", 0, "P", 101325) lead to an error #740

pmanach opened this issue Jul 21, 2015 · 14 comments
Milestone

Comments

@pmanach
Copy link

pmanach commented Jul 21, 2015

Sorry Ian, another bug ...

@ibell
Copy link
Contributor

ibell commented Jul 21, 2015

That's the one I just fixed...

@pmanach pmanach changed the title HapropsSI("T", "B", 299.15, "W", 0, "P", 101325) lead to an error HapropsSI("T", "B", 299.15, "R", 0, "P", 101325) lead to an error Jul 21, 2015
@ibell
Copy link
Contributor

ibell commented Jul 22, 2015

Cannot replicate. Both W=0 and R=0 work fine for me.

@TimHarvey2
Copy link

HapropsSI("T", "B", 299.15, "W", 0, "P", 101325) give 0 for me where HapropsSI("T", "B", 299.16, "W", 0, "P", 101325) gives 351.1027252
HapropsSI("T", "B", 299.15, "R", 0, "P", 101325) gives 0 at any value of B, But works for any value of R >0 <1 using Excel 10 64bit and 5.1.1DLL

@ibell
Copy link
Contributor

ibell commented Jul 22, 2015

How about the nightly version? I fixed some bugs with this stuff.

On Tue, Jul 21, 2015 at 10:32 PM, TimHarvey2 notifications@github.com
wrote:

HapropsSI("T", "B", 299.15, "W", 0, "P", 101325) give 0 for me where
HapropsSI("T", "B", 299.16, "W", 0, "P", 101325) gives 351.1027252
HapropsSI("T", "B", 299.15, "R", 0, "P", 101325) gives 0 at any value of
B, But works for any value of R >0 <1 using Excel 10 64bit and 5.1.1DLL


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

@TimHarvey2
Copy link

Same result but looks like same version same size and date 15/7/2015 SourcForge having problems maybe it is not updated yet.

@TimHarvey2
Copy link

Python give error will try new version when available

TTest= HaPropsSI("T", "B", 299.15, "W", 0, "P", 101325)

Traceback (most recent call last):
File "<pyshell#4>", line 1, in
TTest= HaPropsSI("T", "B", 299.15, "W", 0, "P", 101325)
NameError: name 'HaPropsSI' is not defined

TTest= HAPropsSI("T", "B", 299.15, "W", 0, "P", 101325)

Traceback (most recent call last):
File "<pyshell#5>", line 1, in
TTest= HAPropsSI("T", "B", 299.15, "W", 0, "P", 101325)
File "CoolProp\HumidAirProp.pyx", line 3, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:4112)
File "CoolProp\HumidAirProp.pyx", line 47, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:2865)
ValueError: Brent's method f(t) is NAN for t = 717.837 :: inputs were:"T","B",2.9914999999999998e+02,"W",0.0000000000000000e+00,"P",1.0132500000000000e+05

TTest= HAPropsSI("T", "B", 299.16, "W", 0, "P", 101325)
SyntaxError: invalid syntax
TTest= HAPropsSI('T', 'B', 299.15, 'W', 0, 'P', 101325)
SyntaxError: invalid syntax
TTest= HAPropsSI('T','B',299.15,'W',0,'P',101325)

Traceback (most recent call last):
File "<pyshell#8>", line 1, in
TTest= HAPropsSI('T','B',299.15,'W',0,'P',101325)
File "CoolProp\HumidAirProp.pyx", line 3, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:4112)
File "CoolProp\HumidAirProp.pyx", line 47, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:2865)
ValueError: Brent's method f(t) is NAN for t = 717.837 :: inputs were:"T","B",2.9914999999999998e+02,"W",0.0000000000000000e+00,"P",1.0132500000000000e+05

TTest= HAPropsSI('T','B',299.16,'W',0,'P',101325)
PRint TTest
SyntaxError: invalid syntax
Print TTest
SyntaxError: invalid syntax
print TTest
351.102725155

@pmanach
Copy link
Author

pmanach commented Jul 22, 2015

Hello Ian, yes problem on sourceforge. The nightly version is 15-07-2015.

@ibell
Copy link
Contributor

ibell commented Jul 22, 2015

Try from here temporarily - these are nightly builds:
http://www.coolprop.dreamhosters.com/binaries/

On Wed, Jul 22, 2015 at 12:18 AM, pmanach notifications@github.com wrote:

Hello Ian, yes problem on sourceforge. The nightly version is 15-07-2015.


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

@TimHarvey2
Copy link

R one works in excell
W give 0 in excell but works with B = 299.16
in Python Neither work unless B = 299.16

TTemp = HAPropsSI('T','B',299.15,'W',0,'P',101325)

Traceback (most recent call last):
File "<pyshell#7>", line 1, in
TTemp = HAPropsSI('T','B',299.15,'W',0,'P',101325)
File "CoolProp\HumidAirProp.pyx", line 3, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:4112)
File "CoolProp\HumidAirProp.pyx", line 47, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:2865)
ValueError: Brent's method f(t) is NAN for t = 717.837 :: inputs were:"T","B",2.9914999999999998e+02,"W",0.0000000000000000e+00,"P",1.0132500000000000e+05

TTemp = HAPropsSI('T','B',299.16,'W',0,'P',101325)
print TTemp
351.102725155

@pmanach
Copy link
Author

pmanach commented Jul 22, 2015

hello Ian,

I just downloaded the latest version at http://www.coolprop.dreamhosters.com/binaries/

HAPropsSI('T','B',299.15,'W',0,'P',101325) :
In Excel, the result is OK.
In VB.NET, the result is NOK.

"Brent's method f(t) is NAN for t = 717.837"

@pmanach
Copy link
Author

pmanach commented Jul 28, 2015

hello Ian,
did you find soem time to look at thsi problem ?
Sincerely

@ibell
Copy link
Contributor

ibell commented Jul 29, 2015

I'm afraid I don't entirely follow all the things that have been mentioned
in this thread. Can you please summarize for me what exactly doesn't work?

On Tue, Jul 28, 2015 at 2:57 PM, pmanach notifications@github.com wrote:

hello Ian,
did you find soem time to look at thsi problem ?
Sincerely


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

@pmanach
Copy link
Author

pmanach commented Jul 29, 2015

hello Ian,

I just download the latest version today (5.1.2dev).
Gitversion : bccebc2

the problem is the following :
HAPropsSI('T','B',299.15,'W',0,'P',101325) :

  • In Excel, the result is OK.
  • In VB.NET, the result is NOK : "Brent's method f(t) is NAN for t = 717.837"

@ibell ibell added this to the v5.1.2 milestone Jul 30, 2015
@ibell ibell closed this as completed in 55143c0 Aug 2, 2015
@pmanach
Copy link
Author

pmanach commented Aug 2, 2015

Thanks for your time and your help.
It works well.

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

3 participants