You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with Python lists, #390 is not a water problem, but a Python issue:
from __future__ import print_function, division
import CoolProp
from CoolProp.CoolProp import PropsSI
print(CoolProp.__version__)
print(CoolProp.__gitrevision__)
fluid='water'
pi = 700e5
l = "V"
T = 500
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
T = 700
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
l = "L"
T = 500
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
T = 700
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
T = [500,700]
l = "V"
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
l = "L"
print("{0}: {1} at {2} bar".format(l,PropsSI(l,"T",T,"P",pi,fluid),pi/1e5))
5.0.6dev
83a670a4fa142416e13444f54c95e162bb55d26b
V: 0.000133532211873 at 700.0 bar
V: 6.96495292947e-05 at 700.0 bar
L: 0.697429695478 at 700.0 bar
L: 0.449613314229 at 700.0 bar
V: [ 0.00013353 0.00013353] at 700.0 bar
L: [ 0.6974297 0.6974297] at 700.0 bar
The text was updated successfully, but these errors were encountered:
This is also not a Python problem, the problem lies deeper on the C++ level.
[500.0, 700.0] [70000000.0, 70000000.0]
../../src/CoolProp.cpp:102: backend extracted. backend: ?. fluid: water
../../src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp (880): update called with (7: (PT_INPUTS), 7e+07, 500)
AbstractState: keyed_output called for viscosity
../../src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp (880): update called with (7: (PT_INPUTS), 7e+07, 700)
AbstractState: keyed_output called for viscosity
V: [ 0.00013353 0.00013353] at 700.0 bar
[500.0, 700.0] [70000000.0, 70000000.0]
../../src/CoolProp.cpp:102: backend extracted. backend: ?. fluid: water
../../src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp (880): update called with (7: (PT_INPUTS), 7e+07, 500)
AbstractState: keyed_output called for conductivity
AbstractState: keyed_output called for Dmass
../../src/Backends/Helmholtz/HelmholtzEOSMixtureBackend.cpp (880): update called with (7: (PT_INPUTS), 7e+07, 700)
AbstractState: keyed_output called for conductivity
L: [ 0.6974297 0.6974297] at 700.0 bar
There is a problem with Python lists, #390 is not a water problem, but a Python issue:
The text was updated successfully, but these errors were encountered: