Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2015 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3ec84b03c80928a5b5c0 to your computer and use it in GitHub Desktop.
Save anonymous/3ec84b03c80928a5b5c0 to your computer and use it in GitHub Desktop.
import thermopy.burcat as thermopy
import CoolProp.CoolProp as coolprop
import cantera as ct
def thermopy_cp():
db = thermopy.Elementdb()
return db.getelementdata('AIR').cp_(300)
def cantera_cp():
gas = ct.Solution('gri30.xml')
gas.TPX = 300.0, 101325, 'N2:3.76,O2:1'
return gas.cp
def coolprop_cp():
return coolprop.PropsSI('C','P',101325,'T',300,'Air.mix')
print(thermopy_cp(), cantera_cp(), coolprop_cp())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment