File: Profile.py

package info (click to toggle)
python-opem 1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,076 kB
  • sloc: python: 7,777; sh: 27; makefile: 10
file content (178 lines) | stat: -rw-r--r-- 3,758 bytes parent folder | download
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# -*- coding: utf-8 -*-
"""OPEM profile."""
from opem.Static.Amphlett import Static_Analysis as Amphlett_Static_Analysis
Test_Vector = {
    "T": 343.15,
    "PH2": 1,
    "PO2": 1,
    "i-start": 0,
    "i-stop": 100,
    "i-step": 0.005,
    "A": 50.6,
    "l": 0.0178,
    "lambda": 23,
    "N": 1,
    "R": 0,
    "JMax": 1.5,
    "B": 0.016,
    "Name": "Test"}
Result = Amphlett_Static_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)

from opem.Static.Chamberline_Kim import Static_Analysis as Chamberline_Kim_Static_Analysis
Test_Vector = {
    "A": 50.0,
    "E0": 0.982,
    "b": 0.0689,
    "R": 0.328,
    "m": 0.000125,
    "n": 9.45,
    "N": 1,
    "i-start": 1,
    "i-stop": 100,
    "i-step": 0.005,
    "Name": "Test"}
Result = Chamberline_Kim_Static_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)


from opem.Static.Larminie_Dicks import Static_Analysis as Larminie_Dicks_Static_Analysis
Test_Vector = {
    "A": 0.0587,
    "E0": 1.178,
    "B": 0.0517,
    "RM": 0.0018,
    "i_0": 0.00654,
    "i_L": 100.0,
    "i_n": 0.23,
    "N": 23,
    "i-start": 0.1,
    "i-stop": 80,
    "i-step": 0.005,
    "Name": "Test"}
Result = Larminie_Dicks_Static_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)


from opem.Dynamic.Padulles1 import Dynamic_Analysis as Padulles1_Dynamic_Analysis
Test_Vector = {
    "T": 343,
    "E0": 0.6,
    "N0": 88,
    "KO2": 0.0000211,
    "KH2": 0.0000422,
    "tH2": 3.37,
    "tO2": 6.74,
    "B": 0.04777,
    "C": 0.0136,
    "Rint": 0.00303,
    "rho": 1.168,
    "qH2": 0.0004,
    "i-start": 0,
    "i-stop": 100,
    "i-step": 0.005,
    "Name": "Test"}
Result = Padulles1_Dynamic_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)


from opem.Dynamic.Padulles2 import Dynamic_Analysis as Padulles2_Dynamic_Analysis
Test_Vector = {
    "T": 343,
    "E0": 0.6,
    "N0": 5,
    "KO2": 0.0000211,
    "KH2": 0.0000422,
    "KH2O": 0.000007716,
    "tH2": 3.37,
    "tO2": 6.74,
    "tH2O": 18.418,
    "B": 0.04777,
    "C": 0.0136,
    "Rint": 0.00303,
    "rho": 1.168,
    "qH2": 0.0004,
    "i-start": 0.1,
    "i-stop": 100,
    "i-step": 0.005,
    "Name": "Test"}
Result = Padulles2_Dynamic_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)


from opem.Dynamic.Padulles_Hauer import Dynamic_Analysis as Padulles_Hauer_Dynamic_Analysis
Test_Vector = {
    "T": 343,
    "E0": 0.6,
    "N0": 5,
    "KO2": 0.0000211,
    "KH2": 0.0000422,
    "KH2O": 0.000007716,
    "tH2": 3.37,
    "tO2": 6.74,
    "t1": 2,
    "t2": 2,
    "tH2O": 18.418,
    "B": 0.04777,
    "C": 0.0136,
    "Rint": 0.00303,
    "rho": 1.168,
    "qMethanol": 0.0002,
    "CV": 2,
    "i-start": 0.1,
    "i-stop": 100,
    "i-step": 0.005,
    "Name": "Test"}
Result = Padulles_Hauer_Dynamic_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)


from opem.Dynamic.Padulles_Amphlett import Dynamic_Analysis as Padulles_Amphlett_Dynamic_Analysis
Test_Vector = {
    "A": 50.6,
    "l": 0.0178,
    "lambda": 23,
    "JMax": 1.5,
    "T": 343,
    "E0": 1.229,
    "N0": 5,
    "KO2": 0.0000211,
    "KH2": 0.0000422,
    "KH2O": 0.000007716,
    "tH2": 3.37,
    "tO2": 6.74,
    "t1": 2,
    "t2": 2,
    "tH2O": 18.418,
    "B": 0.016,
    "R": 0,
    "rho": 1.168,
    "qMethanol": 0.0002,
    "CV": 2,
    "i-start": 0.1,
    "i-stop": 73,
    "i-step": 0.005,
    "Name": "Test"}
Result = Padulles_Amphlett_Dynamic_Analysis(
    InputMethod=Test_Vector,
    TestMode=True,
    PrintMode=False,
    ReportMode=True)