/[ascend]/trunk/models/johnpye/fprops/python/data.py
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/python/data.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2302 - (show annotations) (download) (as text)
Sat Aug 21 13:50:06 2010 UTC (12 years, 9 months ago) by jpye
File MIME type: text/x-python
File size: 507 byte(s)
Add data table for Tc, pc, Tt, pt etc.
Add model of toluene and water regenerative rankine cycles.
1 # -*- coding: utf8 -*-
2 """
3 Display main data about fluids in the database: T_c, p_c, rho_c, T_t, p_t.
4 """
5 from fprops import *
6
7 print "%30s\t%10s %10s %10s %10s %10s" % ('Name','Tc/[째C]', 'pc/bar', 'rhoc', 'Tt/[째C]', 'pt/[bar]')
8 for i in range(fprops_num_fluids()):
9 D = fprops_get_fluid(i)
10 Tc = D.T_c
11 pc = fprops_pc(D)
12 rhoc = D.rho_c
13 Tt = D.T_t
14 res, pt, rhoft, rhogt = fprops_triple_point(D)
15 print "%30s\t%10.2f %10.2f %10.2f %10.2f %10.2f" % (D.name, Tc-273.15, pc/1e5, rhoc, Tt-273.15, pt/1e5)
16
17

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22