11.5.2.12. rheia.CASES.H2_FUEL.h2_fuel.Evaluation.charge_pemel

Evaluation.charge_pemel(p_pemel)

For a given power supplied to the electrolyzer, this function determines the actual hydrogen produced. First, the method evaluates if the power supplied lies within the operating bounds of the electrolyzer stack. If the power is situated below the lower limit, the electrolyzer does not run. Instead, when the power is situated above the upper limit, the electrolyzer operates at nominal conditions. At nominal conditions, the current is known and the hydrogen mass flow rate is quantified. Otherwise, the input current is determined through the fitted polynomial on the power - current relation of the electrolyzer stack. As the power is an output from the electrolyzer model, considering this polynomial avoids the use of root finding methods and is therefore more robust in optimization and uncertainty quantification approaches. Finally, when hydrogen is produced, the running hours of the electrolyzer stack is increased by 1 and the hydrogen mass flow rate is returned.

Parameters

p_pemel (float) – The power available for electrolysis [W].

Returns

m_h2 – The produced hydrogen mass flow rate [kg/h].

Return type

float