Keywords

1 Introduction

As the “ultimate energy source for mankind”, hydrogen energy has the advantages of high calorific value, recyclability, cleanliness and non-pollution, which have strengthened the position of hydrogen energy in the future energy system in various countries [7] found that the system pressure can affect the hydrogen content in oxygen by experimenting with a 250 kW electrolyzer, and the electrolyzer can be operated stably at a wide power range of 30–100% by adjusting the system pressure, but they did not compare the effects of other process parameters. Ning et al. [8] conducted an experimental study on the electrolyzer with wide power from the perspective of safety and showed that proper adjustment of lye flow could stabilize the hydrogen content in oxygen within the safety range, but the system pressure was not considered. In order to study the control method of wide power, the establishment of mathematical model of the electrolyzer is particularly important. Fang et al. [9] proposed and simulated a control strategy for a modular switching electrolyzer based on the empirical equation given by Ulleberg [10], and the simulation results showed that this control strategy improved the hydrogen production rate. Ulleberg [10] established a thermal model and a mathematical model of the alkaline electrolyzer based on thermodynamics, heat transfer and electrochemical theory, and this model is applicable and has been widely used in the study of mathematical models of electrolytic cells. However, Ulleberg only considered the effect of temperature and ignored the effect of other factors on the electrolyzer. Mónica et al. [12] added the effect of system pressure to Ulleberg’s model and developed a semi-empirical mathematical model for a 15KW electrolyzer, but this literature did not consider the alkaline flow rate, which was shown to have an effect on the hydrogen content in oxygen [8, 14]. Jiang et al. [11] developed a digital twin model of an alkaline electrolyzer based on experiments and principles with temperature as a variable, but did not visualize and control the model results in real time.

In this paper, the alkaline electrolyzer is studied and its mathematical model and three-dimensional model are established. The mathematical model includes voltage model, Faraday efficiency model, hydrogen concentration in oxygen model and system pressure model. The voltage model and the hydrogen concentration in oxygen model not only consider the pressure and temperature, but also take into account the alkali flow rate which has a great influence on both of them; the alkali flow rate is also used as one of the variables in the Faraday efficiency model, but the influence is very small. In this paper, a three-dimensional model of the hydrogen production system is also developed, since few studies have shown the mathematical model more visually and have controlled and tested it in a simple way. Therefore, a more accurate mathematical model of the alkaline electrolyzer is developed, simulated and validated, and finally combined with the 3D model to form a digital twin model of the alkaline electrolyzer.

2 Alkaline Electrolyzer Digital Twin Model Framework

The digital twin model of the alkaline electrolyzer will be divided into a physical object layer, a data acquisition and control entity layer, an alkaline electrolyzer digital twin core entity layer, and an alkaline electrolyzer digital twin model application layer. The layers are interconnected with each other and progress towards the electrolyzer digital twin model layer by layer. The framework of the digital twin model of the alkaline electrolyzer is shown in Fig. 1.

Fig. 1.
figure 1

Alkaline electrolyzer digital twin model framework

Fig. 2.
figure 2

Process flow chart of electrolytic water to hydrogen system

2.1 Alkaline Electrolyzer Digital Twin Model Hierarchy

The physical object layer is the physical object of the alkaline electrolytic cell. The hydrogen production system of electrolytic water studied in this paper mainly includes alkaline electrolytic cell, gas-liquid separation and post-processing system. The process diagram of the hydrogen production system of electrolytic water is shown in Fig. 2. The power supply supplies direct current to the electrolytic cell, and the gas produced by the alkaline electrolytic cell flows to the gas separator and scrubber through the alkaline liquid heat exchanger. The lye brought out by the gas is returned to the electrolytic cell through the lye filter under the action of the lye circulating pump. The data acquisition and control entity layer is the various sensors and control flow in the hydrogen production system of electrolytic water. This paper focuses on the core entity layer of digital twins. The established mathematical model is tested in the virtual simulation platform, and the model is controlled and verified by PLC. Finally, the running data are transmitted to the three-dimensional model in real time to realize the construction of the digital twin application layer of the hydrogen production system.

2.2 Mathematical Modeling Framework for Alkaline Electrolyzer

The mathematical modeling process of alkaline electrolyzer integrates the methods of mechanism modeling and data modeling, updates the empirical equation based on experimental data and theoretical analysis, and then uses the operational data of the hydrogen production system to fit the empirical equation nonlinearly, and finally establishes the mathematical model of alkaline electrolyzer.

The mechanism modeling is based on the operation mechanism of the alkaline electrolyzer, the derivation and demonstration of the equations using the knowledge in the field of electrochemistry. The final mathematical model is suitable for the studied alkaline electrolyzer.

3 Alkaline Electrolyzer Digital Twin Model Construction

3.1 Alkaline Electrolyzer Mathematical Model Construction

Modeling of alkaline electrolyzer voltage characteristics

The most commonly used voltage model was proposed in 2003 by Ulleberg [10], who derived an empirical equation for the voltage model of alkaline electrolyzers based on thermodynamics and electrochemical properties of alkaline electrolyzers, as shown in Eq. (1):

$$ U = U_{rev} + \frac{{r_{1} + r_{2} T}}{A}I + s\ln (\frac{{t_{1} + t_{2} /T + t_{3} /T^{2} }}{A}I + 1) $$
(1)

where Urev is the reversible voltage, T is the bath temperature, I is the given current, and A is the area of the electrode. s is a specific factor, related to the type and power of the electrolytic bath.

Ernesto Amores et al. [12] based on experiments with a 15KW alkaline electrolyzer, proposed that the voltage model should incorporate the effect of system pressure, but still does not consider the effect of lye flow rate on voltage. The magnitude of the flow rate directly affects the conductivity of the lye and thus the voltage of the alkaline electrolyzer. Therefore, the voltage model of the alkaline electrolyzer should include the effect of the lye flow rate, as in Eq. (2):

$$ U_{cell} = U_{rev} + (a + b + c)I_{s} + s\ln [(t_{1} + \frac{{t_{2} }}{T} + \frac{{t_{3} }}{{T^{2} }})I_{s} + 1] $$
(2)

In Eq. (2):

$$ a = a_{1} + a_{2} T $$
(3)
$$ b = b_{1} + b_{2} p $$
(4)
$$ c = c_{1} + c_{2} v $$
(5)

In Eq. (5), v is the alkaline flow rate, and including the alkaline flow rate as a variable in the model will make the voltage model of the alkaline electrolyzer more accurate.

$$ U_{cell} = U_{rev} + [(a_{1} + b_{1} + c_{1} ) + a_{2} T + b_{2} p + c_{2} v]I_{s} + s\ln [(t_{1} + \frac{{t_{2} }}{T} + \frac{{t_{3} }}{{T^{2} }})I_{s} + 1] $$
(6)

Equation (6) is the voltage of each cell, and the total voltage of the alkaline electrolyzer is the number of cells multiplied by the cell voltage.

$$ U_{elec} = n_{cell} \cdot U_{cell} $$
(7)

Modeling of Faraday efficiency characteristics of alkaline electrolyzer

In electrolytic water hydrogen production systems, the amount of hydrogen produced per unit time is closely related to the amount of electricity consumed by the alkaline electrolyzer per unit time, and the Faraday efficiency is defined as the ratio of the actual hydrogen produced by the system per unit time to the theoretical amount of hydrogen produced per unit time, which can be expressed by an empirical equation, derived by Ulleberg et al. [10]:

$$ \eta_{F} = \frac{{I_{s}^{2} }}{{f_{1} + I_{s}^{2} }} \cdot f_{2} $$
(8)

To take the role of temperature and flow rate into account, Eq. (8) is modified by updating \(f_{1} ,\,f_{2}\) as a function of temperature and flow rate as variables:

$$ f_{1} = f_{11} + f_{t1} T + f_{v1} v $$
(9)
$$ f_{2} = f_{22} + f_{t2} T + f_{v2} v $$
(10)

Modeling of hydrogen concentration characteristics in oxygen in alkaline electrolyzer

In this paper, we address the modeling of hydrogen concentration in oxygen. According to the previous discussion, the hydrogen content in oxygen can be modeled theoretically based on temperature, pressure, and lye flow rate, etc. Hug et al. [13] in 1993 gave an empirical formula for calculating the hydrogen concentration in oxygen:

$$ c_{HIO} = C_{1} + C_{2} T + C_{3} T^{2} + (C_{4} + C_{5} T + C_{6} T^{2} )e^{{\frac{{C_{7} + C_{8} T + C_{9} T^{2} }}{{I_{s} }}}} $$
(11)

Mónica et al. [12] adds the effect of system pressure, but still does not take into account the effect of alkali flow, this paper adds the effect of alkali flow on the basis of Eqs. (11), (12) makes the calculation of hydrogen concentration in oxygen more accurate.

$$ \begin{aligned} c_{HIO} & = [C_{1} + C_{2} T + C_{3} T^{2} + (C_{4} + C_{5} T + C_{6} T^{2} )e^{{\frac{{C_{7} + C_{8} T + C_{9} T^{2} }}{{I_{s} }}}} ] \\ & \quad + [E_{1} + E_{2} p + E_{3} p^{2} + (E_{4} + E_{5} p + E_{6} p^{2} )e^{{\frac{{E_{7} + E_{8} p + E_{9} p^{2} }}{{I_{s} }}}} ] \\ & \quad + [F_{1} + F_{2} v + F_{3} v^{2} + (F_{4} + F_{5} v + F_{6} v^{2} )e^{{\frac{{F_{7} + F_{8} v + F_{9} v^{2} }}{{I_{s} }}}} ] \\ \end{aligned} $$
(12)

3.2 Alkaline Electrolyzer 3D Model Construction

In this paper, we firstly established a 3D model of the hydrogen production system by using Sketch Up, and then imported the established 3D model into the corresponding topology editor. Based on the established 3D model, this paper uses HT for Web to bring the 3D model closer to the physical entity, mainly by using WebGL and other technologies to visualize the flow of liquid in the system and the circulation pump operation and other physical movements, as shown in Fig. 3.

Fig. 3.
figure 3

HT for web-based digital twin model for hydrogen production system

4 Simulation Study of Digital Twin Model of Alkaline Electrolyzer

In this paper, the parameters of the constructed mathematical model of the alkaline electrolyzer were determined based on the single-day operating data of the 1MW alkaline electrolyzer in Chongli, Zhangjiakou, by using Matlab to perform multiple nonlinear regression on the model. The fitting results are also elaborated and analyzed. The parameters of the alkaline electrolyzer are shown in Table 1.

Table 1. Parameters of 1 MW alkaline electrolyzer.

4.1 Alkaline Electrolyzer Voltage Model Simulation Study

The simulation of the voltage model is carried out according to Eq. (6), and there are four parameters in the updated voltage model, so two of them are fixed separately, and the surface plot of the voltage model is drawn with the other two parameters as variables. As shown in Fig. 4, this paper analyzes the factors affecting the alkaline electrolyzer voltage with (temperature-current density), (pressure-current density), and (lye flow-current density) as variables, respectively.

Fig. 4.
figure 4

Results of the voltage model by fixing different parameters: (a) (P = 1.5 MPa, v = 18.5 m3/h); (b) (T = 78 °C, v = 18.5 m3/h); (c) (P = 1.5 MPa, T = 78 °C)

Figure 5 shows more clearly the effect of temperature, pressure and flow on the cell voltage, from which it can be seen that temperature has the most dramatic effect on pressure, which is the reason why the literature [10] only uses temperature as the only variable in the cell voltage model. In Fig. 5(a, b, c) are taken for different temperature, pressure and flow rate to observe the variation of the cell voltage. Where Fig. 5(c) plots the cell voltage for different lye flow rates, it can be seen that there is a slight decrease in voltage as the lye flow rate increases. The increase in the lye flow rate leads to an increase in the amount of lye cooled per unit time, which leads to a decrease in the lye temperature. The voltage tends to increase as the temperature decreases, which is also shown in Fig. 4(a). On the other hand, the increase in the flow of lye will take away the air bubbles adhering to the electrode in time, which will lower the resistance and therefore the voltage of the cell. It can be seen that the latter cause has a greater effect on the voltage than the former one, because the change in resistance directly affects the voltage, and therefore it will present a slight decrease in voltage.

Fig. 5.
figure 5

Cell voltage at different parameter values: (a) temperature; (b) pressure; (c) lye flow

4.2 Simulation Study of Faraday Efficiency Model for Alkaline Electrolyzer

The simulation study of Faraday efficiency model was carried out according to Eqs. (8), (9) and (10), and the Faraday efficiency of alkaline electrolyzer was plotted with (temperature-current density) and (alkali flow-current density) as variables, respectively, as shown in Fig. 6.

In Fig. 7(a), since an increase in temperature leads to a faster movement of the anions and cations in the alkali solution, the resistance of the electrolyte decreases, which can lead to a small amount of current not being used to produce hydrogen and therefore leads to a decrease in Faraday efficiency. In Fig. 7(b), it can be seen that the effect of alkali flow rate on Faraday efficiency is not very large. It was stated earlier that an increase in the lye flow rate leads to a decrease in temperature, but it also leads directly to a decrease in resistance, a cause also explained in the voltage model, and these two causes have opposite effects on the Faraday efficiency of similar order of magnitude. Therefore, the effect of the lye flow rate on the Faraday efficiency is weak.

4.3 Model Simulation Study of Hydrogen Content in Oxygen

According to the mathematical model of hydrogen concentration in oxygen established in this paper, such as Eq. (12), the variation law of hydrogen concentration in oxygen is plotted with temperature, pressure, and lye flow as variables, as shown in Fig. 8(a), (b), and (c) in Fig. 9 respectively plot the curves of the hydrogen concentration in oxygen varying with the current density under different temperatures, pressures, and lye flow rates. In Fig. 9(a), the current is fixed, and as the temperature increases, the concentration of hydrogen in oxygen increases, and the increase in temperature causes the hydrogen dissolved in the alkali solution to escape and the thermal motion of the gas molecules to accelerate, thereby increasing the diffusion rate. An increase in pressure will lead to an increase in the solubility of the gas, but it will also increase the diffusion rate of gas molecules, as shown in Fig. 9(b). The final result is that the increase in pressure will increase the hydrogen content in oxygen. The lye circulates between the electrolytic cell and the separator under the action of the lye circulation pump. If the flow rate of the lye increases, the amount of lye returned to the hydrogen-oxygen separator per unit time will also increase. Moreover, the high permeability of hydrogen will cause a small amount of hydrogen to dissolve in the lye, which will lead to an increase in the concentration of hydrogen in oxygen, as shown in Fig. 9(c).

Fig. 6.
figure 6

Results of the Faraday efficiency model by fixing different parameters: (a) v = 18.5 m3/h; (b) T = 78 °C

Fig. 7.
figure 7

Faraday efficiency at different parameter values: (a) temperature; (b) lye flow

Fig. 8.
figure 8

Results of the hydrogen content in oxygen model by fixing different parameters: (a) (P = 1.5 MPa, v = 18.5 m3/h); (b) (T = 78 °C, v = 18.5 m3/h); (c) (P = 1.5 MPa, T = 78 °C)

Fig. 9.
figure 9

Hydrogen content in oxygen at different parameter values: (a) temperature; (b) pressure; (c) lye flow

5 Conclusions

Based on the data and mechanism, this paper constructs a digital twin model of a 1MW alkaline electrolyzer, including a voltage model, a Faraday efficiency model, a hydrogen concentration model in oxygen, and a system pressure model. The construction of the model is based on data and mathematical formulas, and the simulation results are consistent with the theoretical analysis.

In this paper, we use digital twin technology to simulate the operating characteristics of the alkaline electrolyzer to ensure the safety of the real system operation. The operation characteristics of the hydrogen production system are complex, and the mathematical models of the valve separator and compressor have not been completed, and the digital twin model of the whole hydrogen production system is yet to be solved.