def stored_operating_inputs(type_fuel_cell):
"""This function gives the operating inputs which correspond to the given type_fuel_cell.
Parameters
----------
type_fuel_cell : str
Type of fuel cell configuration.
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.
i_max_pola = 2.5e4 # 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.
i_max_pola = 1.7e4 # 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.
i_max_pola = 1.7e4 # 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.
i_max_pola = 1.7e4 # 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.
i_max_pola = 1.7e4 # 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, i_max_pola