-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples demonstrating calling R410A
All seem to be working now
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |