11.5.3.15. rheia.CASES.H2_POWER.h2_power.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. 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.

When the hydrogen mass is determined that can be generated, the current hydrogen tank capacity is addressed. If the capacity exceeds the maximum storage tank capacity, the current applied to the electrolyzer is re-evaluated, such that this current matches the hydrogen production that leads to a full hydrogen tank.

Finally, when hydrogen is produced, the running hours of the electrolyzer stack is increased by 1 and the power consumed by the electrolyzer array is returned.

Parameters

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

Returns

p_consumed – The power consumed by the electrolyzer array [W].

Return type

float