Skip to content

Commit 929abb0

Browse files
fix : output updated
1 parent 3240ec9 commit 929abb0

2 files changed

Lines changed: 100 additions & 88 deletions

File tree

otherfile/test.html

Lines changed: 99 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -17,92 +17,18 @@
1717
</script>
1818
</head>
1919
<body>
20-
<h1 style="border-bottom:1px solid black;text-align:center;">OPEM Report (Amphlett Model)</h1>
21-
22-
<div style="width:600px;margin:auto;">
23-
<canvas id="Power-Stack" width="100" height="100"></canvas>
24-
</div>
25-
<script>
26-
var ctx = document.getElementById("Power-Stack").getContext('2d');
27-
var myChart = new Chart(ctx, {
28-
type: 'line',
29-
data: {
30-
labels: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
31-
datasets: [{
32-
label: 'Power-Stack',
33-
fill:false,
34-
data: [0.0, 0.1072482958282681, 0.2052761611172405, 0.29979933150428645, 0.3920327165753869, 0.4825532947945601, 0.5717008813767012, 0.6597000002134213, 0.7467102170794577, 0.8328508282477683, 0.9182144215535232, 1.0028749536944233, 1.0868928646385256, 1.1703184750174012, 1.2531943319175447, 1.3355568810485454, 1.417437691058521, 1.498864370613474, 1.5798612689779254, 1.6604500204546115, 1.7406499739060304, 1.8204785361705675, 1.8999514499278993, 1.9790830209466792, 2.057886305741922, 2.136373267906203, 2.2145549093911394, 2.292441381564352, 2.3700420797928925, 2.4473657244989955, 2.524420431023553, 2.6012137701649807, 2.677752820899156, 2.7540442165034262, 2.8300941850850854, 2.9059085853379534, 2.9814929382093656, 3.056852455046042, 3.1319920626950446, 3.2069164259607614],
35-
borderColor:'rgba(255,99,132,1)',
36-
borderWidth: 1
37-
}]
38-
},
39-
options: {
40-
scales: {
41-
yAxes: [{
42-
ticks: {
43-
beginAtZero:false,
44-
},
45-
scaleLabel: {
46-
display: true,
47-
labelString: 'P(W)'
48-
}
49-
}],
50-
xAxes: [{
51-
ticks: {
52-
beginAtZero:false,
53-
},
54-
scaleLabel: {
55-
display: true,
56-
labelString: 'I(A)'
57-
}
58-
}]
59-
}
60-
}
61-
});
62-
</script>
63-
64-
<div style="width:600px;margin:auto;">
65-
<canvas id="Voltage-Stack" width="100" height="100"></canvas>
66-
</div>
67-
<script>
68-
var ctx = document.getElementById("Voltage-Stack").getContext('2d');
69-
var myChart = new Chart(ctx, {
70-
type: 'line',
71-
data: {
72-
labels: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
73-
datasets: [{
74-
label: 'Voltage-Stack',
75-
fill:false,
76-
data: [1.19075, 1.072482958282681, 1.0263808055862025, 0.9993311050142881, 0.9800817914384672, 0.9651065895891202, 0.9528348022945019, 0.9424285717334592, 0.933387771349322, 0.925389809164187, 0.9182144215535232, 0.9117045033585666, 0.905744053865438, 0.9002449807826162, 0.895138808512532, 0.8903712540323636, 0.8858985569115755, 0.8816849238902789, 0.8777007049877363, 0.873921063397164, 0.8703249869530152, 0.8668945410336035, 0.8636142954217724, 0.8604708786724693, 0.8574526273924674, 0.8545493071624812, 0.8517518882273614, 0.8490523635423525, 0.8464435999260331, 0.8439192153444812, 0.8414734770078509, 0.8391012161822519, 0.8367977565309862, 0.8345588534858868, 0.8323806426720839, 0.8302595958108439, 0.8281924828359348, 0.8261763392016329, 0.8242084375513276, 0.8222862630668619],
77-
borderColor:'rgba(99,100,255,1)',
78-
borderWidth: 1
79-
}]
80-
},
81-
options: {
82-
scales: {
83-
yAxes: [{
84-
ticks: {
85-
beginAtZero:false,
86-
},
87-
scaleLabel: {
88-
display: true,
89-
labelString: 'V(V)'
90-
}
91-
}],
92-
xAxes: [{
93-
ticks: {
94-
beginAtZero:false,
95-
},
96-
scaleLabel: {
97-
display: true,
98-
labelString: 'I(A)'
99-
}
100-
}]
101-
}
102-
}
103-
});
104-
</script>
105-
<table style="border:1px solid black;border-collapse: collapse;margin:auto;">
20+
<h1 style="border-bottom:1px solid black;text-align:center;padding:10px;"><span style="color:#ff7600;">OPEM</span> Report (Amphlett Model)</h1>
21+
<h2 style="color:#ff7600;">What is Amphlett ?</h2>
22+
<p style = "text-align:justify;margin:15px;">
23+
Amphlett static model is a parametric model that predicting the performance of a solid polymer electrolyte,
24+
proton exchange membrane (PEM) fuel cell. Main concepts in the Amphlett model includes Nernst voltage, PEMFC losses
25+
(activation polarization loss, ohmic polarization loss and concentration polarization loss), power and efficiency
26+
of fuel cell. This parametric model of PEMFC using a combination of mechanistic and empirical approach. The ideal
27+
standard potential (Nernst potential) of an H2/O2 FC is 1.229 V with liquid water product. The actual cell potential
28+
is decreased from its reference potential because of irreversible losses.
29+
</p>
30+
<h2 style="color:#ff7600;">Inputs</h2>
31+
<table style="border:1px solid black;border-collapse: collapse;margin:15px;">
10632
<tr align="center" style="border:1px solid black;border-collapse: collapse;">
10733
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">
10834
Input
@@ -242,6 +168,92 @@ <h1 style="border-bottom:1px solid black;text-align:center;">OPEM Report (Amphle
242168
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">
243169
23
244170
</td>
245-
</table><p style="text-align:center;position:absoloute;border-top:1px solid black;">Generated By <a href="http://opem.ecsim.ir">OPEM</a> Version 0.6</p>
171+
</table>
172+
<h2 style="color:#ff7600;">Graphs</h2>
173+
174+
<div style="width:600px;margin:15px;">
175+
<canvas id="Power-Stack" width="100" height="100"></canvas>
176+
</div>
177+
<script>
178+
var ctx = document.getElementById("Power-Stack").getContext('2d');
179+
var myChart = new Chart(ctx, {
180+
type: 'line',
181+
data: {
182+
labels: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
183+
datasets: [{
184+
label: 'Power-Stack',
185+
fill:false,
186+
data: [0.0, 0.1072482958282681, 0.2052761611172405, 0.29979933150428645, 0.3920327165753869, 0.4825532947945601, 0.5717008813767012, 0.6597000002134213, 0.7467102170794577, 0.8328508282477683, 0.9182144215535232, 1.0028749536944233, 1.0868928646385256, 1.1703184750174012, 1.2531943319175447, 1.3355568810485454, 1.417437691058521, 1.498864370613474, 1.5798612689779254, 1.6604500204546115, 1.7406499739060304, 1.8204785361705675, 1.8999514499278993, 1.9790830209466792, 2.057886305741922, 2.136373267906203, 2.2145549093911394, 2.292441381564352, 2.3700420797928925, 2.4473657244989955, 2.524420431023553, 2.6012137701649807, 2.677752820899156, 2.7540442165034262, 2.8300941850850854, 2.9059085853379534, 2.9814929382093656, 3.056852455046042, 3.1319920626950446, 3.2069164259607614],
187+
borderColor:'rgba(255,99,132,1)',
188+
borderWidth: 1
189+
}]
190+
},
191+
options: {
192+
scales: {
193+
yAxes: [{
194+
ticks: {
195+
beginAtZero:false,
196+
},
197+
scaleLabel: {
198+
display: true,
199+
labelString: 'P(W)'
200+
}
201+
}],
202+
xAxes: [{
203+
ticks: {
204+
beginAtZero:false,
205+
},
206+
scaleLabel: {
207+
display: true,
208+
labelString: 'I(A)'
209+
}
210+
}]
211+
}
212+
}
213+
});
214+
</script>
215+
216+
<div style="width:600px;margin:15px;">
217+
<canvas id="Voltage-Stack" width="100" height="100"></canvas>
218+
</div>
219+
<script>
220+
var ctx = document.getElementById("Voltage-Stack").getContext('2d');
221+
var myChart = new Chart(ctx, {
222+
type: 'line',
223+
data: {
224+
labels: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
225+
datasets: [{
226+
label: 'Voltage-Stack',
227+
fill:false,
228+
data: [1.19075, 1.072482958282681, 1.0263808055862025, 0.9993311050142881, 0.9800817914384672, 0.9651065895891202, 0.9528348022945019, 0.9424285717334592, 0.933387771349322, 0.925389809164187, 0.9182144215535232, 0.9117045033585666, 0.905744053865438, 0.9002449807826162, 0.895138808512532, 0.8903712540323636, 0.8858985569115755, 0.8816849238902789, 0.8777007049877363, 0.873921063397164, 0.8703249869530152, 0.8668945410336035, 0.8636142954217724, 0.8604708786724693, 0.8574526273924674, 0.8545493071624812, 0.8517518882273614, 0.8490523635423525, 0.8464435999260331, 0.8439192153444812, 0.8414734770078509, 0.8391012161822519, 0.8367977565309862, 0.8345588534858868, 0.8323806426720839, 0.8302595958108439, 0.8281924828359348, 0.8261763392016329, 0.8242084375513276, 0.8222862630668619],
229+
borderColor:'rgba(99,100,255,1)',
230+
borderWidth: 1
231+
}]
232+
},
233+
options: {
234+
scales: {
235+
yAxes: [{
236+
ticks: {
237+
beginAtZero:false,
238+
},
239+
scaleLabel: {
240+
display: true,
241+
labelString: 'V(V)'
242+
}
243+
}],
244+
xAxes: [{
245+
ticks: {
246+
beginAtZero:false,
247+
},
248+
scaleLabel: {
249+
display: true,
250+
labelString: 'I(A)'
251+
}
252+
}]
253+
}
254+
}
255+
});
256+
</script>
257+
<p style="text-align:center;position:absoloute;border-top:1px solid black;">Generated By <a style="text-decoration:none;color:#ff7600;" href="http://opem.ecsim.ir">OPEM</a> Version 0.7</p>
246258
</body>
247259
</html>

otherfile/test.opem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| |_| || |_) || __/| | | | | |
55
\___/ | .__/ \___||_| |_| |_|
66
|_|
7-
Simulation Date : 2018-02-26 11:43:08.517173
7+
Simulation Date : 2018-03-17 23:22:06.710334
88
**********
99
Amphlett Model
1010

0 commit comments

Comments
 (0)