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
{{ message }}
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
Doing some calculation on a Diesel cycle with the 'Air' fluid, I found these weird results following an isentropic line in a Pressure-Density plot. Here is a minimal working example with CoolProp version 4.2.4 on either Python2.7 or Python3.3.
import numpy as np
import CoolProp.CoolProp as CP # Les outils thermodynamiques
import matplotlib.pyplot as plt # Les outils graphiques
fluid = 'Air'
T1 = 2173
P1 = 65e5
S1 = CP.PropsSI('S','P',P1,'T',T1,fluid)
P2 = 3.8e5
P_lin = np.linspace(P1,P2,1000)
D_lin = CP.PropsSI('D','P',P_lin,'S',S1,fluid)
plt.plot(D_lin,P_lin)
plt.savefig('MWE.png')
The problem "disappear" if I only use 100 points for sampling, but I think there is an underlying bug worth signaling here.
Thanks for your work.
The text was updated successfully, but these errors were encountered:
Yeah sure seems like it. There's another bug with Air ( CoolProp/CoolProp#81) in the v5 in development,
so I'll try to get to them ASAP, but the 4.2.x branch is not under active
development.
Doing some calculation on a Diesel cycle with the 'Air' fluid, I found
these weird results following an isentropic line in a Pressure-Density
plot. Here is a minimal working example with CoolProp version 4.2.4 on
either Python2.7 or Python3.3.
import numpy as np
import CoolProp.CoolProp as CP # Les outils thermodynamiques
import matplotlib.pyplot as plt # Les outils graphiques
Doing some calculation on a Diesel cycle with the 'Air' fluid, I found these weird results following an isentropic line in a Pressure-Density plot. Here is a minimal working example with CoolProp version 4.2.4 on either Python2.7 or Python3.3.
The problem "disappear" if I only use 100 points for sampling, but I think there is an underlying bug worth signaling here.
Thanks for your work.
The text was updated successfully, but these errors were encountered: