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 | def stored_operating_inputs(type_fuel_cell, voltage_zone):
"""This function gives the operating inputs which correspond to the given type_fuel_cell.
Parameters
----------
type_fuel_cell : str
Type of fuel cell configuration.
voltage_zone : str
Zone of the polarization curve which is considered.
Returns
-------
T_des : float
Desired fuel cell temperature in Kelvin.
Pa_des : float
Desired anode pressure in Pascal.
Pc_des : float
Desired cathode pressure in Pascal.
Sa : float
Stoichiometric ratio of hydrogen.
Sc : float
Stoichiometric ratio of oxygen.
Phi_a_des : float
Desired anode relative humidity.
Phi_c_des : float
Desired cathode relative humidity.
i_max_pola : float
Maximum current density for the polarization curve.
"""
# For the ZSW Generic Stack fuel cell
if type_fuel_cell == "ZSW-GenStack":
T_des = 68 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.2e5, 2.0e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.700e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_Pa_1.61_Pc_1.41":
T_des = 68 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 1.61e5, 1.41e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.200e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 0.700e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_Pa_2.01_Pc_1.81":
T_des = 68 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.01e5, 1.81e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.300e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_Pa_2.4_Pc_2.2":
T_des = 68 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.4e5, 2.2e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.900e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_Pa_2.8_Pc_2.6":
T_des = 68 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.8e5, 2.6e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.900e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_T_62":
T_des = 62 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.2e5, 2.0e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_T_76":
T_des = 76 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.2e5, 2.0e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.100e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "ZSW-GenStack_T_84":
T_des = 84 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.2e5, 2.0e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.6, 1.6 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.398, 0.50 # It is the desired relative humidity.
y_H2_in = 0.7 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.000e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 0.700e4 # A.m-2. It is the maximum current density for the polarization curve.
# For EH-31 fuel cell
elif type_fuel_cell == "EH-31_1.5":
T_des = 74 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 1.5e5, 1.5e5 # Pa. It is the desired pressure of the fuel gas (at the anode/cathode).
Sa, Sc = 1.2, 2.0 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.4, 0.6 # It is the desired relative humidity.
y_H2_in = 1 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.300e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.700e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "EH-31_2.0":
T_des = 74 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.0e5, 2.0e5 # Pa. It is the desired pressure of the fuel gas (at the anode/cathode).
Sa, Sc = 1.2, 2.0 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.4, 0.6 # It is the desired relative humidity.
y_H2_in = 1 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.500e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.300e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "EH-31_2.25":
T_des = 74 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.25e5, 2.25e5 # Pa. It is the desired pressure of the fuel gas (at the anode/cathode).
Sa, Sc = 1.2, 2.0 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.4, 0.6 # It is the desired relative humidity.
y_H2_in = 1 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 2.800e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.700e4 # A.m-2. It is the maximum current density for the polarization curve.
elif type_fuel_cell == "EH-31_2.5":
T_des = 74 + 273.15 # K. It is the desired fuel cell temperature.
Pa_des, Pc_des = 2.5e5, 2.5e5 # Pa. It is the desired pressures of the fuel gas.
Sa, Sc = 1.2, 2.0 # It is the stoichiometric ratio (of hydrogen and oxygen).
Phi_a_des, Phi_c_des = 0.4, 0.6 # It is the desired relative humidity.
y_H2_in = 1 # It is the molar fraction of H2 in the dry anode gas mixture (H2/N2) injected at the inlet.
if voltage_zone == "full":
i_max_pola = 3.000e4 # A.m-2. It is the maximum current density for the polarization curve.
elif voltage_zone == "before_voltage_drop":
i_max_pola = 1.600e4 # A.m-2. It is the maximum current density for the polarization curve.
# For other fuel cells
else:
raise ValueError('the type_fuel_cell given is not valid.')
return T_des, Pa_des, Pc_des, Sa, Sc, Phi_a_des, Phi_c_des, y_H2_in, i_max_pola
|