Ask for an error "The following kwargs seems out of reasonable range: {}." #78
Unanswered
MatthieuPicard
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @MatthieuPicard ! We were getting the following error from CoolProp: I have just altered the code and released v0.3.18. If you could please update your ccp version with: Thank you for sending the question and let me know if you have other problems. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello !
I try to use the ccp-performance package but when run the code bellow, I have a problem with the creation of the point :
"The following kwargs seems out of reasonable range: {}."
I put bellow my code and the error that my conda environement on PyCharm return.
For the information I am trying to modelise a compressor with the air as a fluid. I also use CoolProp and not REFPROP.
Thanks a lot for your help.
The code :
import ccp
ccp.config.EOS = "HEOS"
ccp.config.FLUID_BACKEND = "CoolProp"
ccp.config.ALTERNATIVE_REFPROP_PATH = None
Q_ = ccp.Q_
fluid = {
"CarbonDioxide": 0.8,
"Nitrogen": 0.2,
}
ps = Q_(2.5, 'bar') # Pression réduite
Ts = Q_(300, 'K')
try:
suc0 = ccp.State(fluid=fluid, p=ps, T=Ts, phase="gas")
disch0 = ccp.State(fluid=fluid, p=Q_(5.0, 'bar'), T=Q_(330, 'K'), phase="gas") # ΔT réduit
disch1 = ccp.State(fluid=fluid, p=Q_(4.5, 'bar'), T=Q_(320, 'K'), phase="gas")
except Exception as e:
print(f"\n Échec : {str(e)}")
and the error :
Échec : Could not calculate point with ccp.Point(**{'suc': ccp.State(p=Q_("250000 Pa"), T=Q_("300 K"), fluid={"CO2": 0.80000, "NITROGEN": 0.20000}), 'disch': ccp.State(p=Q_("500000 Pa"), T=Q_("330 K"), fluid={"CO2": 0.80000, "NITROGEN": 0.20000}), 'flow_m': Q_(9.44444444, 'kilogram / second'), 'speed': Q_(733.038286, 'radian / second')}).
The following kwargs seems out of reasonable range: {}.
Thanks a lot and have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions