https://github.com/CoolProp/CoolProp
Tip revision: 84897ce7a110a70ba2229e7a1f5d17ea03efd068 authored by Jorrit Wronski on 16 December 2022, 12:59:36 UTC
use no version number at all to fix the source build
use no version number at all to fix the source build
Tip revision: 84897ce
SF-72.py
import matplotlib
matplotlib.use('Qt4Agg')
from CoolProp.Plots.Plots import Ph, drawIsoLines
from CoolProp.Plots.SimpleCycles import SimpleCycle
from CoolProp.CoolProp import Props
import matplotlib.pyplot as plt
Ref = 'Propane'
ax = Ph(Ref)
SimpleCycle(Ref, 260, 320, 5, 5, 0.7)
# ax.set_xlim([200,900])
# ax.set_ylim([300,530])
quality = drawIsoLines(Ref, 'ph', 'Q', [0.2, 0.4, 0.6, 0.8], axis=ax)
isobars = drawIsoLines(Ref, 'ph', 'T', [250.0, 300.0], axis=ax)
#isochores = drawIsoLines(Ref, 'Ts', 'D', [2, 600] , num=7, axis=ax)
plt.show()