forked from thermalogic/SEUIF97
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo_seuif97.py
45 lines (28 loc) · 855 Bytes
/
demo_seuif97.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
The Simple example of seuif97.py
The input pairs implemented in seuif97.py
(p,t) (p,h) (p,s) (p,v)
(t,h) (t,s) (t,v)
(h,s)
(p,x) (t,x)
The types of functions:
1 ??2?(in1,in2) , e.g: h=pt2h(p,t)
2 ??(in1,in2,propertyID), , e.g: h=pt(p,t,4), the propertyID h is 4
License: this code is in the public domain
Author: Cheng Maohua(cmh@seu.edu.cn)
Last modified: 2018.11.28
"""
import seuif97
p, t = 16.10, 535.10
# ??2?(in1,in2)
h = seuif97.pt2h(p, t)
s = seuif97.pt2s(p, t)
v = seuif97.pt2v(p, t)
print("(p,t),h,s,v:",
"{:>.2f}\t {:>.2f}\t {:>.2f}\t {:>.3f}\t {:>.4f}".format(p, t, h, s, v))
# ??(in1,in2,propertyid)
t = seuif97.ph(p, h, 1)
s = seuif97.ph(p, h, 5)
v = seuif97.ph(p, h, 3)
print("(p,h),t,s,v:",
"{:>.2f}\t {:>.2f}\t {:>.2f}\t {:>.3f}\t {:>.4f}".format(p, h, t, s, v))