Skip to content

Commit

Permalink
Add examples demonstrating calling R410A
Browse files Browse the repository at this point in the history
All seem to be working now
  • Loading branch information
ibell committed Aug 6, 2023
1 parent c028761 commit 589e18d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions examples/scroll_compressor_bicubic_with_mixtures.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
from __future__ import print_function
import os

from PDSim.scroll.core import Scroll
from scroll_compressor import Compressor

# from CoolProp import CoolProp as CP
# CP.set_config_string(CP.ALTERNATIVE_REFPROP_PATH, r'/home/ian/REFPROP911')
from CoolProp import CoolProp as CP
CP.set_config_string(CP.ALTERNATIVE_REFPROP_PATH, os.getenv('RPPREFIX'))

# CP.set_debug_level(1)

# Use this one to use R410A as a mixture
Compressor(Scroll, Ref='BICUBIC&REFPROP::R32[0.697614699375863]&R125[0.302385300624138]')
# Use this one to use R410A as a pseudo-pure fluid
Compressor(Scroll, Ref='R410A', HDF5file='R410APPF.h5')

# Use this one to use R410A as a pure fluid
#Compressor(Ref='R410A')
# Use this one to use R410A as a mixture w/ REFPROP
Compressor(Scroll, Ref='REFPROP::R32[0.697614699375863]&R125[0.302385300624138]', HDF5file='REFPROPR410Amix.h5')

# Use this one to use R410A as a mixture w/ REFPROP and bicubic interpolation
Compressor(Scroll, Ref='BICUBIC&REFPROP::R32[0.697614699375863]&R125[0.302385300624138]', HDF5file='REFPROPBICUBICR410Amix.h5')

# Use this one to use R410A as a mixture w/ the HEOS backend of CoolProp
Compressor(Scroll, Ref='HEOS::R32[0.697614699375863]&R125[0.302385300624138]', HDF5file='HEOSR410Amix.h5')

0 comments on commit 589e18d

Please sign in to comment.