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
TTSE fails around saturated liquid #622
Comments
import CoolProp as CP
print(CP.__version__)
print(CP.__gitrevision__) 5.1.0dev
dfbb05f4c462c77976cdc2a51700ba135bd12752 |
Thanks! This saves us from digging into the different revisions ourselves. |
I cannot replicate this result with an up-to-date version of CoolProp: git revision: yields
|
It's still there ( import CoolProp.CoolProp as CPpy
import CoolProp as CP
import numpy as np
import CoolProp.constants as CPc
print(CP.__version__)
print(CP.__gitrevision__)
len = 1000
st = CPpy.AbstractState('TTSE&HEOS','Water')
h = np.linspace(900e3,1100e3,len)
p = np.linspace(2.8e6,2.9e6,len)
for i in range(1, len):
st.update(CPc.HmassP_INPUTS, h[i], p[i])
rho = st.keyed_output(CPc.iDmass)
t = st.keyed_output(CPc.iT)
#eta = st.keyed_output(CPc.iviscosity)
x = st.keyed_output(CPc.iQ)
if (np.isnan(rho) or np.isinf(rho) or np.isnan(t) or np.isinf(t) or
np.isnan(x) or np.isinf(x)):
print('%f %f %f %f %f' % (h[i], p[i], rho, t, x))
else:
continue yields,
You may increase the |
Ah I had missed the bug - it's that T and rho are nan, not that the quality On Mon, Apr 27, 2015 at 8:51 AM, Paul D notifications@github.com wrote:
|
Some problem with viscosity too, ValueError Traceback (most recent call last)
<ipython-input-9-3aa1f94929e1> in <module>()
18 rho = st.keyed_output(CPc.iDmass)
19 t = st.keyed_output(CPc.iT)
---> 20 eta = st.keyed_output(CPc.iviscosity)
21 x = st.keyed_output(CPc.iQ)
22
CoolProp/AbstractState.pyx in CoolProp.CoolProp.AbstractState.keyed_output (CoolProp/CoolProp.cpp:10695)()
CoolProp/AbstractState.pyx in CoolProp.CoolProp.AbstractState.keyed_output (CoolProp/CoolProp.cpp:10630)()
ValueError: Cell to TTSEBackend::evaluate_single_phase_transport must have four valid corners for now |
What about BICUBIC? TTSE is a bit more fragile for transport properties On Mon, Apr 27, 2015 at 10:10 AM, Paul D notifications@github.com wrote:
|
Works fine with BICUBIC, I see the same behavior with TTSE as you do. Recommend you use BICUBIC. |
When you provide PH, please give some information about where on the fluid surface your inputs are. |
As far PH I/P's being in 1ph or 2ph, I dont want to scrutinize the same. I am trying out a span of i/p which caters the 1ph to 2ph, as it shall be similar in real simulation of large order system. |
Sorry what is I/P? On Tue, Apr 28, 2015 at 8:39 AM, Paul D notifications@github.com wrote:
|
Input...(I/P) |
Just did a
git pull
and build and with reference to, #621Something like this,
yields
The text was updated successfully, but these errors were encountered: