mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 04:47:57 -05:00
* autopep8 whitespace only: --select="E101,W1,W2" * revert single file: web2py_online.py Should this be a .py file at all? * revert file Tickets/1443.py because the diff looked strange: maybe there is an encoding problem? * Rename web2py_online.py to web2py_online.rst
21 lines
468 B
Python
21 lines
468 B
Python
|
|
import CoolProp
|
|
import CoolProp.CoolProp as CP
|
|
|
|
fluids = [
|
|
["R50", "Methane"],
|
|
["R170", "Ethane"],
|
|
["R600", "n-Butane"],
|
|
["R704", "Helium"],
|
|
["R718", "Water"],
|
|
["R720", "Neon"],
|
|
["R728", "Nitrogen"],
|
|
["R729", "Air"],
|
|
["R732", "Oxygen"],
|
|
["R740", "Argon"],
|
|
["R1150", "Ethylene"],
|
|
["R1270", "Propylene"]]
|
|
|
|
for f in fluids:
|
|
print "{0}:{1} - {2}:{3}".format(f[0],CP.PropsSI('Tcrit','T',0,'D',0,f[0]),CP.PropsSI('Tcrit','T',0,'D',0,f[1]),f[1])
|