This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.html
99 lines (92 loc) · 2.48 KB
/
main.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<style>
ul {
list-style-type: none;
padding-left: 4rem;
margin-bottom: .5rem;
margin-top: .5rem;
}
/* tbl */
#container table {
border-collapse:collapse;
margin-top: .5rem;
margin-bottom: .5rem;
}
td {
padding:.25rem 0;
}
td:first-child {
min-width: 4rem;
}
</style>
<p>
The Pumping System Assessment Tool was developed by the Department of Energy's BestPractices Program to assist in preliminary assessments of how efficiently pumping systems are operating.
</p>
<strong>Preferences</strong>
<ul>
<a onclick='lnk(event,"units")' href=''>Units</a><br>
</ul>
<strong>System Analysis</strong>
<ul>
<a onclick='lnk(event,"conditions")' href=''>Manage Pump Conditions</a><br>
</ul>
<table>
<tr>
<td><button onclick='reset()'>RESET</button></td><td>Reset all analysis data to defaults</td>
</tr>
<tr>
<td><button onclick='imprt()'>IMPORT</button></td><td>Load analysis data from file</td>
</tr>
<tr>
<td><button onclick='xprt()'>EXPORT</button></td><td>Save analysis data to file</td>
</tr>
</table>
<strong>Calculators</strong>
<ul>
<a onclick='lnk(event,"pump_eff")' href=''>Achievable Pump Efficiency</a><br>
<a onclick='lnk(event,"motor_perf")' href=''>Motor Performance</a><br>
<a onclick='lnk(event,"specific_speed")' href=''>Specific Speed</a><br>
<a onclick='lnk(event,"nema")' href=''>NEMA Energy Efficiency</a><br>
<a onclick='gotoHT()' href=''>Head Tool</a><br>
<a onclick='lnk(event,"curve")' href=''>System Curve</a><br>
</ul>
<strong>Information</strong>
<ul>
<li><a onclick='lnk(event,"about")' href=''>About</a></li>
<li><a onclick='lnk(event,"help")' href=''>Help</a></li>
<li><a onclick='lnk(event,"goal")' href=''>Ultimate Goal</a></li>
<li><a onclick='lnk(event,"mvr")' href=''>Measured vs Required</a></li>
<li style='margin-bottom:1rem'><a onclick='lnk(event,"losses")' href=''>System Losses</a></li>
</ul>
<script>
function gotoHT() {
Cond = {flow: cvt(2000,FLOW,unit(FLOW),'gpm'), specific_gravity: 1};
lnk(event,"headtool");
}
function reset() {
loadData(true);
loadPg();
alert("Reset complete.");
}
// io
function imprt() {
Dlg.showOpenDialog(dlgFil(),
function (fn) {
if (fn) {
D = JSON.parse(require('fs').readFileSync(fn[0],'utf8'));
save();
loadData();
loadPg();
}
}
);
}
function xprt() {
Dlg.showSaveDialog(dlgFil(),
function (fn) {
if (fn) {
D.vs = R.app.getVersion()
require('fs').writeFile(fn,JSON.stringify(D));
}
});
}
</script>