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 |
|