Self-adaptive virtual inertia control method and device of water electrolysis hydrogen production system and terminal

By using an adaptive virtual inertia control method, the power output of the water electrolysis hydrogen production system is dynamically adjusted, which solves the problem that fixed virtual inertia control cannot take into account both grid frequency stability and system dynamic characteristics, and achieves accurate response to grid frequency support and improved system stability.

CN121939435APending Publication Date: 2026-04-28中国船舶集团风电发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511968189.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

The fixed virtual inertia control of existing water electrolysis hydrogen production systems is difficult to balance grid frequency stability and system dynamic characteristics, and cannot adapt to complex dynamic changes in grid frequency.

Method used

An adaptive virtual inertia control method is adopted. By obtaining the grid frequency change rate and the initial given power of the water electrolysis hydrogen production system, the virtual inertia coefficient is calculated. Combined with a PI controller and a DC/DC module, the power output of the electrolyzer is dynamically adjusted to achieve accurate response to the grid frequency.

Benefits of technology

The system achieves precise power response under grid frequency variations in the water electrolysis hydrogen production system, enhancing the initiative and reliability of grid frequency support while taking into account the system's dynamic characteristics and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121939435A_ABST
    Figure CN121939435A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of water electrolysis hydrogen production, in particular to a self-adaptive virtual inertia control method and device of a water electrolysis hydrogen production system and a terminal. The method comprises the following steps: acquiring the frequency change rate of a power grid and the initial given power of a water electrolysis hydrogen production system; calculating a virtual inertia coefficient according to the frequency change rate; according to the frequency change rate, the virtual inertia coefficient and the initial given power, a dynamic power reference value of the water electrolysis hydrogen production system is calculated; and actual electrical parameters of the electrolytic cell are measured, a current deviation value is calculated according to the dynamic power reference value and the actual electrical parameters, the current deviation value is input into the PI controller, and the duty ratio of the DC / DC module is output to control the power of the electrolytic cell. The method can solve the problem that the fixed virtual inertia control in the prior art is difficult to consider the balance between the power grid frequency stability and the system dynamic characteristics and cannot adapt to the complex dynamic change of the power grid frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water electrolysis hydrogen production technology, and in particular to an adaptive virtual inertia control method, device and terminal for a water electrolysis hydrogen production system. Background Technology

[0002] In recent years, new energy power generation technologies have developed rapidly, and the grid-connected scale of new energy equipment such as wind power and photovoltaics has continued to expand, gradually replacing traditional synchronous generators. The rotational inertia of synchronous machines is the core support for grid frequency stability, but the low inertia characteristics of new energy equipment lead to a decrease in grid frequency regulation capability and an increase in the risk of frequency fluctuations. It is urgent to make up for this shortcoming through technical means.

[0003] Currently, the inertia support potential of water electrolysis hydrogen production systems, as flexible loads, has attracted attention. Existing technologies often employ fixed virtual inertia control strategies for frequency support in such systems. This involves pre-setting a fixed virtual inertia coefficient and adjusting the system's power output to respond to changes in grid frequency, thereby helping to maintain grid frequency stability.

[0004] However, fixed virtual inertia control has significant limitations: if the coefficient is too small, it is difficult to provide sufficient support and cannot effectively suppress frequency fluctuations; if the coefficient is too large, it will lead to slow dynamic response of the system and even cause oscillations. It is difficult to balance the stability of the power grid frequency and the dynamic characteristics of the system, and it cannot adapt to the complex dynamic changes of the power grid frequency. Summary of the Invention

[0005] This invention provides an adaptive virtual inertia control method, device, and terminal for a water electrolysis hydrogen production system, to solve the problem that fixed virtual inertia control in the prior art is unable to balance the stability of the power grid frequency and the dynamic characteristics of the system, and cannot adapt to the complex dynamic changes of the power grid frequency.

[0006] In a first aspect, embodiments of the present invention provide an adaptive virtual inertia control method for a water electrolysis hydrogen production system, comprising: Obtain the frequency change rate of the power grid and the initial set power of the water electrolysis hydrogen production system; Calculate the virtual inertia coefficient based on the frequency change rate; Based on the frequency change rate, the virtual inertia coefficient, and the initial given power, calculate the dynamic power reference value of the water electrolysis hydrogen production system; The actual electrical parameters of the electrolytic cell are measured. Based on the dynamic power reference value and the actual electrical parameters, the current deviation value is calculated and input into the proportional-integral (PI) controller. The DC-to-DC converter module (DC / DC) is then output to control the duty cycle of the electrolytic cell's power.

[0007] In one possible implementation, calculating the virtual inertia coefficient based on the frequency change rate includes: according to Calculate the virtual inertia coefficient; in, Represents the virtual inertia coefficient. This represents the minimum value of the virtual inertia coefficient. This represents the maximum value of the virtual inertia coefficient. Indicates the rate of change of frequency. Indicates the frequency of the power grid. , These represent control coefficients.

[0008] In one possible implementation, the dynamic power reference value of the water electrolysis hydrogen production system is calculated based on the frequency change rate, the virtual inertia coefficient, and the initial given power, including: Calculate the power correction amount of the water electrolysis hydrogen production system based on the frequency change rate and the virtual inertia coefficient; The initial given power is corrected using the power correction amount to obtain the dynamic power reference value of the water electrolysis hydrogen production system.

[0009] In one possible implementation, the power correction of the water electrolysis hydrogen production system is calculated based on the frequency change rate and the virtual inertia coefficient, including: according to Calculate the power correction amount for the water electrolysis hydrogen production system; in, This indicates the power correction amount of the water electrolysis hydrogen production system.

[0010] In one possible implementation, the initial given power is corrected using the power correction amount to obtain a dynamic power reference value for the water electrolysis hydrogen production system, including: according to Calculate the dynamic power reference value of the water electrolysis hydrogen production system; in, This represents the dynamic power reference value of the water electrolysis hydrogen production system. This represents the initial given power.

[0011] In one possible implementation, calculating the current deviation value based on the dynamic power reference value and the actual electrical parameters includes: Calculate the dynamic current reference value based on the dynamic power reference value and the actual voltage in the actual electrical parameters; The current deviation value is calculated based on the dynamic current reference value and the actual current in the actual electrical parameters.

[0012] In one possible implementation, the dynamic current reference value is calculated based on the dynamic power reference value and the actual voltage in the actual electrical parameters, including: according to Calculate the dynamic current reference value; in, Indicates the dynamic current reference value. Indicates the actual voltage; Based on the dynamic current reference value and the actual current in the actual electrical parameters, the current deviation value is calculated, including: according to Calculate the current deviation value; in, Indicates the current deviation value. This represents the actual current.

[0013] Secondly, embodiments of the present invention provide an adaptive virtual inertia control device for a water electrolysis hydrogen production system, comprising: The acquisition module is used to acquire the frequency change rate of the power grid and the initial given power of the water electrolysis hydrogen production system; The calculation module is used to calculate the virtual inertia coefficient based on the frequency change rate. The calculation module is also used to calculate the dynamic power reference value of the water electrolysis hydrogen production system based on the frequency change rate, the virtual inertia coefficient and the initial given power. The calculation module is also used to measure the actual electrical parameters of the electrolytic cell and calculate the current deviation value based on the dynamic power reference value and the actual electrical parameters. The control module is used to input the current deviation value into the PI controller and output the duty cycle of the DC / DC module to control the power of the electrolytic cell.

[0014] Thirdly, embodiments of the present invention provide a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the adaptive virtual inertia control method for the water electrolysis hydrogen production system as described in the first aspect or any possible implementation of the first aspect.

[0015] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the adaptive virtual inertia control method for a water electrolysis hydrogen production system as described in the first aspect or any possible implementation thereof.

[0016] This invention provides an adaptive virtual inertia control method, device, and terminal for a water electrolysis hydrogen production system. By acquiring the frequency change rate of the power grid and the initial setpoint power of the water electrolysis hydrogen production system, and calculating the virtual inertia coefficient based on the frequency change rate, this invention avoids the problems in existing technologies where a fixed virtual inertia coefficient results in insufficient support due to an excessively small coefficient, or slow dynamic response and even oscillations due to an excessively large coefficient. It also balances the stability of the power grid frequency with the dynamic characteristics of the system. Then, based on the frequency change rate, the virtual inertia coefficient, and the initial setpoint power, a dynamic power reference value for the water electrolysis hydrogen production system is calculated. The actual electrical parameters of the electrolyzer are measured, and the current deviation value is calculated based on the dynamic power reference value and the actual electrical parameters. This current deviation value is then input into a PI controller, which outputs the duty cycle of the DC / DC module to control the power of the electrolyzer. This invention forms a complete control link from frequency change rate acquisition and adaptive inertia coefficient calculation to power-current closed-loop control, enabling the electrolyzer power to accurately respond to changes in the power grid frequency, enhancing the initiative and reliability of power grid frequency support. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the implementation of the adaptive virtual inertia control method for the water electrolysis hydrogen production system provided in this embodiment of the invention. Figure 2 This is a schematic diagram of an adaptive virtual inertia control method for a water electrolysis hydrogen production system provided in another embodiment of the present invention; Figure 3 This is a schematic diagram of the adaptive virtual inertia control device of the water electrolysis hydrogen production system provided in this embodiment of the invention; Figure 4 This is a schematic diagram of the terminal provided in an embodiment of the present invention. Detailed Implementation

[0019] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0021] Figure 1 The following is a detailed flowchart of the implementation of an adaptive virtual inertia control method for a water electrolysis hydrogen production system provided in an embodiment of the present invention: Step 101: Obtain the frequency change rate of the power grid and the initial given power of the water electrolysis hydrogen production system.

[0022] This step is the basic input stage. Its core purpose is to accurately obtain the grid frequency change rate and the initial given power of the water electrolysis hydrogen production system. This provides a reliable data benchmark for subsequent adaptive virtual inertia coefficient calculation, power correction, and current closed-loop control, ensuring that the entire control logic is accurate and adaptable from the source. This is a prerequisite for achieving stable grid frequency support and optimization of system dynamic characteristics.

[0023] The acquisition of the power grid frequency change rate is achieved through two steps: frequency acquisition and filtering. First, a phase-locked loop (PLL) technique is used to acquire the real-time power grid frequency. The PLL possesses high frequency response and high accuracy characteristics, enabling it to quickly track minute fluctuations in the power grid frequency and accurately capture the frequency dynamics of the power grid under scenarios such as fluctuations in new energy grid connection and load changes. This provides raw data support for subsequent change rate calculations and avoids misjudgments in control strategies due to frequency acquisition errors.

[0024] Then, the real-time grid frequency acquired by the phase-locked loop is input into a high-pass filter to filter out low-frequency steady-state components and noise interference in the frequency signal, extracting the high-frequency components reflecting the dynamic changes in grid frequency, i.e., the grid frequency change rate. This processing step can effectively eliminate steady-state frequency fluctuations during normal grid operation, focusing on dynamic frequency change scenarios that require inertia support, ensuring the relevance and effectiveness of the frequency change rate data, and laying the foundation for the accurate calculation of the adaptive virtual inertia coefficient.

[0025] See Figure 2 The diagram shows an adaptive virtual inertia control method for a water electrolysis hydrogen production system. The real-time frequency of the power grid acquired by the phase-locked loop is... ,right Perform high-pass filtering The frequency change rate of the power grid is obtained. .in, Represents the time constant. It represents a complex frequency variable and is an operator in the Laplace transform, used to describe the dynamic characteristics of a system in the complex frequency domain.

[0026] Optionally, the initial given power is the basic operating power of the water electrolysis hydrogen production system. Its setting needs to take into account both hydrogen production demand and grid operation constraints. The specific acquisition logic is as follows: The initial power setting is determined comprehensively based on the rated operating parameters of the water electrolysis hydrogen production system, the actual hydrogen production capacity demand, and grid dispatch instructions. For example, by combining equipment parameters such as the rated power of the electrolyzer, electrolyte concentration, and operating temperature, the system is ensured to operate within a safe and efficient range; at the same time, grid dispatch requirements are taken into account to avoid conflicts between the initial power setting and grid load allocation, thereby achieving a balance between hydrogen production demand and grid support demand.

[0027] The initial set power provides a basic operating power reference for the system and is the core benchmark for obtaining the dynamic power reference value through subsequent power correction. This parameter can be preset and input through the system control interface or remotely issued by the power grid dispatch center, possessing flexible adjustment characteristics to adapt to the needs of different hydrogen production scenarios and power grid operating states.

[0028] Step 102: Calculate the virtual inertia coefficient based on the rate of change of frequency.

[0029] This step is the core decision-making process of this scheme. Its purpose is to dynamically calculate the virtual inertia coefficient adapted to the power grid state based on the frequency change rate, break the limitations of the traditional fixed virtual inertia coefficient, and provide a flexible and accurate control basis for subsequent power correction calculation. It is the key to achieving "both frequency stability and system dynamic characteristics".

[0030] In one embodiment, this step includes: according to Calculate the virtual inertia coefficient; in, Represents the virtual inertia coefficient. This represents the minimum value of the virtual inertia coefficient. This represents the maximum value of the virtual inertia coefficient. Indicates the rate of change of frequency. Indicates the frequency of the power grid. , These represent control coefficients.

[0031] During the calculation process, it is necessary to ensure that By using upper and lower limit constraints, the virtual inertia coefficient is prevented from exceeding the safe operating range of the system, thus preventing control failure caused by excessive or insufficient inertia.

[0032] By setting , The range of virtual inertia coefficients can be limited. Ensure the system has basic frequency support capabilities to avoid ineffective support. Limit the upper limit of inertia to prevent the system from responding too slowly or oscillating.

[0033] By setting , It can change the trend of the curve of virtual inertia coefficient versus frequency change rate, thereby adjusting the sensitivity of the water electrolysis hydrogen production system to different frequency change rates. Used to adjust the rate of change of the virtual inertia coefficient with frequency. These coefficients are used to change the curvature of the function curve between the two. By adjusting these two coefficients, the sensitivity of the hydrogen production system to different rates of frequency change can be flexibly altered. For example, when the grid frequency fluctuates drastically, i.e. The virtual inertia coefficient is relatively large and approaches rapidly. Provides strong support; when frequency fluctuations are smooth. The virtual inertia coefficient remains relatively small. Nearby, to ensure the system's dynamic response speed.

[0034] See Figure 2 In the virtual inertia coefficient calculation module, input the frequency change rate. ,as well as , , , Output .

[0035] In this step, the virtual inertia coefficient is adjusted in real time by driving the rate of change of frequency, replacing the traditional fixed inertia mode and solving the technical pain point that "fixed coefficients are difficult to balance stability and dynamic characteristics." By using upper and lower limit constraints and control coefficient adjustment, the virtual inertia coefficient is ensured to be neither too small (leading to insufficient support) nor too large (causing system oscillation), achieving a balance between support effect and response speed. , , , These parameters allow for compatibility with water electrolysis hydrogen production systems of varying capacities and power grids with different fluctuation characteristics, thereby enhancing the versatility of the technical solution.

[0036] Step 103: Calculate the dynamic power reference value of the water electrolysis hydrogen production system based on the frequency change rate, virtual inertia coefficient, and initial given power.

[0037] This step is the core adjustment and connection link. Its core purpose is to obtain the dynamic power reference value of the water electrolysis hydrogen production system through two progressive calculations based on the frequency change rate and initial given power obtained in step 101 and the virtual inertia coefficient calculated in step 102. This transforms the grid frequency demand into an executable power control target for the system, providing a precise basis for subsequent current closed-loop control. It is a key bridge to achieve the balance between grid frequency support and system dynamic characteristics.

[0038] In one embodiment, this step may include: The power correction amount of the water electrolysis hydrogen production system is calculated based on the frequency change rate and the virtual inertia coefficient. The initial given power is corrected using the power correction amount to obtain the dynamic power reference value of the water electrolysis hydrogen production system.

[0039] Optionally, the power correction is a dynamic adjustment component that adapts to changes in grid frequency, calculated through the coupling of the virtual inertia coefficient and the frequency change rate.

[0040] according to Calculate the power correction for a water electrolysis hydrogen production system; in, This indicates the power correction amount for the water electrolysis hydrogen production system.

[0041] The core logic of this formula is: the more drastic the fluctuations in the power grid frequency, the higher the virtual inertia coefficient. Adaptive increase, corresponding The absolute value increases synchronously to ensure that the system outputs sufficient power regulation to support the grid frequency; conversely, it decreases. Reduce the impact of excessive adjustment on the system's dynamic response.

[0042] The dynamic power reference value is obtained by superimposing the aforementioned power correction amount on an initial given power as a baseline. Optionally, according to... Calculate the dynamic power reference value of the water electrolysis hydrogen production system; in, This represents the dynamic power reference value of the water electrolysis hydrogen production system. This represents the initial given power.

[0043] like Figure 2 As shown, and The product of , we get , and then with Add them together to get This calculation logic retains the basic power required for the system to meet hydrogen production needs, while also... This enables real-time response to changes in grid frequency, achieving a dual-objective adaptation of "hydrogen production demand + grid support".

[0044] This step enables the precise conversion of "grid demand - system power", that is, by using a quantitative formula to transform the abstract grid frequency change demand into a dynamic power target that the system can execute, thus solving the problem of "mismatch between power regulation and frequency change" in traditional fixed inertia control. By ensuring the basic hydrogen production capacity with the initial given power and responding to the grid frequency demand with the power adjustment amount, we can avoid sacrificing hydrogen production efficiency by simply pursuing frequency support, and also prevent the defect of focusing only on hydrogen production while ignoring grid stability. because The dynamic adjustment of the virtual inertia coefficient and frequency change rate allows the dynamic power reference value to be adapted to different power grid fluctuation scenarios, further enhancing the system's active support capability for the power grid and its own dynamic characteristics.

[0045] Step 104: Measure the actual electrical parameters of the electrolytic cell, calculate the current deviation value based on the dynamic power reference value and the actual electrical parameters, and input the current deviation value into the PI controller to output the duty cycle of the DC / DC module to control the power of the electrolytic cell.

[0046] This step is the core closed-loop execution link. Its core purpose is to convert the obtained dynamic power reference value into an executable current control target by measuring the actual electrical parameters of the electrolyzer. Then, the duty cycle of the DC / DC module is adjusted by the output of the PI controller to achieve rapid and accurate control of the electrolyzer power, ultimately achieving the goal of grid frequency support and system dynamic characteristic optimization.

[0047] Optionally, the measurement of actual electrical parameters focuses on the core characterizing parameters of the electrolyzer's operating status, ensuring that the data accurately reflects the equipment's operating conditions and provides reliable input for subsequent calculations and control. Actual electrical parameters include the actual voltage of the electrolyzer and the actual current flowing through it. High-precision voltage and current sensors can be used for real-time acquisition; these sensors must possess rapid response characteristics to match the response requirements of dynamic changes in the power grid frequency. During the acquisition process, electromagnetic interference and other noise signals are filtered simultaneously to ensure the stability and accuracy of the measurement data, avoiding control strategy deviations due to data distortion.

[0048] In one embodiment, the current deviation value is calculated based on the dynamic power reference value and the actual electrical parameters, including: Calculate the dynamic current reference value based on the dynamic power reference value and the actual voltage in the actual electrical parameters; Calculate the current deviation value based on the dynamic current reference value and the actual current in the actual electrical parameters.

[0049] Optionally, a dynamic current reference value is calculated based on the dynamic power reference value and the actual voltage in the actual electrical parameters, including: according to Calculate the dynamic current reference value; in, Indicates the dynamic current reference value. Indicates the actual voltage; Calculate the current deviation value based on the dynamic current reference value and the actual current in the actual electrical parameters, including: according to Calculate the current deviation value; in, Indicates the current deviation value. This represents the actual current.

[0050] See Figure 3 As shown, we obtain Then, multiply by ,get Subtract ,get Finally, The input PI controller implements closed-loop regulation of the deviation signal (utilizing the proportional (P) element's rapid response to deviation and the integral (I) element's elimination of steady-state error to output a smooth and precise control signal), converting the current deviation value into control commands for the DC / DC module to ensure that the actual power quickly tracks the target. The duty cycle adjusts the actual input power by changing the electrolytic cell's supply voltage or current conduction time. When power needs to be increased, the duty cycle increases, increasing the electrolytic cell's energy input; when power needs to be decreased, the duty cycle decreases, reducing the energy input, ultimately controlling the real-time current. Accurate tracking of dynamic current reference value This enables the implementation of dynamic power reference values.

[0051] This process, from electrical parameter measurement and deviation calculation to duty cycle output, forms a closed-loop logic of "target-measurement-adjustment-execution," ensuring the accuracy and real-time performance of power control. By correcting the current reference value with real-time voltage, it avoids interference from fluctuations in the electrolyzer's own operating conditions on the control effect, improving the system's anti-interference capability. Through the collaboration of the PI controller and the DC / DC module, it achieves rapid and accurate control of the electrolyzer's power, providing stable frequency support for the power grid while avoiding slow dynamic response or oscillations in the system, thus balancing frequency stability and system dynamic characteristics.

[0052] This invention provides an adaptive virtual inertia control method for a water electrolysis hydrogen production system. The method involves acquiring the frequency change rate of the power grid and the initial setpoint power of the system; calculating the virtual inertia coefficient based on the frequency change rate; calculating the dynamic power reference value of the system based on the frequency change rate, the virtual inertia coefficient, and the initial setpoint power; measuring the actual electrical parameters of the electrolyzer; calculating the current deviation value based on the dynamic power reference value and the actual electrical parameters; and inputting the current deviation value into a PI controller, which outputs the duty cycle of the DC / DC module to control the electrolyzer power. This invention dynamically calculates the virtual inertia coefficient using the frequency change rate, avoiding the problems of insufficient support due to a small virtual inertia coefficient and slow dynamic response, or even oscillations, when the virtual inertia coefficient is fixed in the prior art. It also considers both power grid frequency stability and system dynamic characteristics. From frequency change rate acquisition and adaptive inertia calculation to power-current closed-loop control, a complete control link is formed, enabling the electrolyzer power to accurately respond to changes in power grid frequency, enhancing the initiative and reliability of power grid frequency support.

[0053] In this embodiment of the invention, the virtual inertia coefficient can be flexibly adjusted to be sensitive to the rate of frequency change, and the dynamic power reference value takes into account both the basic needs of hydrogen production and the needs of grid regulation, adapting to grids with different fluctuation characteristics and water electrolysis hydrogen production systems under different operating conditions. By leveraging the collaboration of the PI controller and the DC / DC module, combined with real-time electrical parameter correction, the actual current is ensured to quickly track the reference current, achieving zero steady-state error control of the electrolyzer power and improving system operating efficiency and stability.

[0054] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0055] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.

[0056] Figure 3 The diagram shows a schematic of an adaptive virtual inertia control device for a water electrolysis hydrogen production system according to an embodiment of the present invention. For ease of explanation, only the parts relevant to the embodiment of the present invention are shown, and are described in detail below: like Figure 4 As shown, the adaptive virtual inertia control device of the water electrolysis hydrogen production system includes: an acquisition module 31, a calculation module 32, and a control module 33.

[0057] The acquisition module 31 is used to acquire the frequency change rate of the power grid and the initial given power of the water electrolysis hydrogen production system, as well as to measure the actual electrical parameters of the electrolyzer. Calculation module 32 is used to calculate the virtual inertia coefficient based on the frequency change rate; The calculation module 32 is also used to calculate the dynamic power reference value of the water electrolysis hydrogen production system based on the frequency change rate, virtual inertia coefficient and initial given power. The calculation module 32 is also used to calculate the current deviation value based on the dynamic power reference value and the actual electrical parameters; The control module 33 is used to input the current deviation value into the PI controller and output the duty cycle of the DC / DC module to control the power of the electrolytic cell.

[0058] In one possible implementation, when the calculation module 32 calculates the virtual inertia coefficient based on the rate of change of frequency, it is used for: according to Calculate the virtual inertia coefficient; in, Represents the virtual inertia coefficient. This represents the minimum value of the virtual inertia coefficient. This represents the maximum value of the virtual inertia coefficient. Indicates the rate of change of frequency. Indicates the frequency of the power grid. , These represent control coefficients.

[0059] In one possible implementation, when the calculation module 32 calculates the dynamic power reference value of the water electrolysis hydrogen production system based on the frequency change rate, the virtual inertia coefficient, and the initial given power, it is used for: Calculate the power correction for the water electrolysis hydrogen production system based on the frequency change rate and the virtual inertia coefficient; The initial given power is corrected by using a power correction factor to obtain the dynamic power reference value of the water electrolysis hydrogen production system.

[0060] In one possible implementation, when the calculation module 32 calculates the power correction amount for the water electrolysis hydrogen production system based on the frequency change rate and the virtual inertia coefficient, it is used for: according to Calculate the power correction for a water electrolysis hydrogen production system; in, This indicates the power correction amount for the water electrolysis hydrogen production system.

[0061] In one possible implementation, the calculation module 32 corrects the initial given power using a power correction amount. When obtaining the dynamic power reference value of the water electrolysis hydrogen production system, it is used for: according to Calculate the dynamic power reference value of the water electrolysis hydrogen production system; in, This represents the dynamic power reference value of the water electrolysis hydrogen production system. This represents the initial given power.

[0062] In one possible implementation, when the calculation module 32 calculates the current deviation value based on the dynamic power reference value and the actual electrical parameters, it is used for: Calculate the dynamic current reference value based on the dynamic power reference value and the actual voltage in the actual electrical parameters; Calculate the current deviation value based on the dynamic current reference value and the actual current in the actual electrical parameters.

[0063] In one possible implementation, when the calculation module 32 calculates the dynamic current reference value based on the dynamic power reference value and the actual voltage in the actual electrical parameters, it is used for: according to Calculate the dynamic current reference value; in, Indicates the dynamic current reference value. Indicates the actual voltage; Calculate the current deviation value based on the dynamic current reference value and the actual current in the actual electrical parameters, including: according to Calculate the current deviation value; in, Indicates the current deviation value. This represents the actual current.

[0064] The above embodiment provides an adaptive virtual inertia control device for a water electrolysis hydrogen production system. The device acquires the frequency change rate of the power grid and the initial setpoint power of the water electrolysis hydrogen production system via an acquisition module. Based on the frequency change rate, a calculation module calculates the virtual inertia coefficient. Based on the frequency change rate, the virtual inertia coefficient, and the initial setpoint power, a dynamic power reference value for the water electrolysis hydrogen production system is calculated. The actual electrical parameters of the electrolyzer are measured, and the current deviation value is calculated based on the dynamic power reference value and the actual electrical parameters. Finally, a control module inputs the current deviation value into a PI controller, which outputs the duty cycle of the DC / DC module to control the power of the electrolyzer. In this embodiment, the virtual inertia coefficient is dynamically calculated using the frequency change rate, avoiding the problems in the prior art where a fixed virtual inertia coefficient results in insufficient support due to an excessively small coefficient, or slow dynamic response and even oscillations due to an excessively large coefficient. This approach also considers both power grid frequency stability and system dynamic characteristics. From frequency change rate acquisition and adaptive inertia calculation to power-current closed-loop control, a complete control link is formed, enabling the electrolyzer power to accurately respond to changes in power grid frequency, enhancing the initiative and reliability of power grid frequency support.

[0065] In this embodiment of the invention, the virtual inertia coefficient can be flexibly adjusted to be sensitive to the rate of frequency change, and the dynamic power reference value takes into account both the basic needs of hydrogen production and the needs of grid regulation, adapting to grids with different fluctuation characteristics and water electrolysis hydrogen production systems under different operating conditions. By leveraging the collaboration of the PI controller and the DC / DC module, combined with real-time electrical parameter correction, the actual current is ensured to quickly track the reference current, achieving zero steady-state error control of the electrolyzer power and improving system operating efficiency and stability.

[0066] Figure 4 This is a schematic diagram of a terminal provided in an embodiment of the present invention. Figure 1 As shown, the terminal 4 in this embodiment includes a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, it implements the steps in the above embodiments of the adaptive virtual inertia control method for various water electrolysis hydrogen production systems, for example... Figure 3 Steps 101 to 104 are shown. Alternatively, when processor 40 executes computer program 42, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 3 The functions of each module / unit are shown.

[0067] For example, computer program 42 can be divided into one or more modules / units, one or more of which are stored in memory 41 and executed by processor 40 to complete the present invention. One or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 42 in terminal 4. For example, computer program 42 can be divided into... Figure 4 The modules / units shown are shown.

[0068] Terminal 4 may include, but is not limited to, processor 40 and memory 41. Those skilled in the art will understand that... ​ This is merely an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown, or combine certain components, or different components. For example, the terminal may also include input / output devices, network access devices, buses, etc.

[0069] The processor 40 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0070] The memory 41 can be an internal storage unit of the terminal 4, such as a hard disk or RAM of the terminal 4. The memory 41 can also be an external storage device of the terminal 4, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal 4. Furthermore, the memory 41 can include both internal and external storage units of the terminal 4. The memory 41 is used to store computer programs and other programs and data required by the terminal. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0071] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0072] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0073] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0074] In the embodiments provided by this invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0075] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0076] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0077] If integrated modules / units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the adaptive virtual inertia control method embodiments of the various water electrolysis hydrogen production systems described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0078] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. An adaptive virtual inertia control method for a water electrolysis hydrogen production system, characterized in that, include: Obtain the frequency change rate of the power grid and the initial set power of the water electrolysis hydrogen production system; Calculate the virtual inertia coefficient based on the frequency change rate; Based on the frequency change rate, the virtual inertia coefficient, and the initial given power, calculate the dynamic power reference value of the water electrolysis hydrogen production system; The actual electrical parameters of the electrolytic cell are measured. Based on the dynamic power reference value and the actual electrical parameters, the current deviation value is calculated and input into the PI controller. The output of the DC / DC module controls the duty cycle of the electrolytic cell to control its power.

2. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 1, characterized in that, Based on the frequency change rate, the virtual inertia coefficient is calculated, including: according to Calculate the virtual inertia coefficient; in, Represents the virtual inertia coefficient. This represents the minimum value of the virtual inertia coefficient. This represents the maximum value of the virtual inertia coefficient. Indicates the rate of change of frequency. Indicates the frequency of the power grid. , These represent control coefficients.

3. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 2, characterized in that, Based on the frequency change rate, the virtual inertia coefficient, and the initial given power, the dynamic power reference value of the water electrolysis hydrogen production system is calculated, including: Calculate the power correction amount of the water electrolysis hydrogen production system based on the frequency change rate and the virtual inertia coefficient; The initial given power is corrected using the power correction amount to obtain the dynamic power reference value of the water electrolysis hydrogen production system.

4. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 3, characterized in that, Based on the frequency change rate and the virtual inertia coefficient, the power correction of the water electrolysis hydrogen production system is calculated, including: according to Calculate the power correction amount for the water electrolysis hydrogen production system; in, This indicates the power correction amount of the water electrolysis hydrogen production system.

5. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 4, characterized in that, The initial given power is corrected using the power correction amount to obtain the dynamic power reference value of the water electrolysis hydrogen production system, including: according to Calculate the dynamic power reference value of the water electrolysis hydrogen production system; in, This represents the dynamic power reference value of the water electrolysis hydrogen production system. This represents the initial given power.

6. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 5, characterized in that, Based on the dynamic power reference value and the actual electrical parameters, the current deviation value is calculated, including: Calculate the dynamic current reference value based on the dynamic power reference value and the actual voltage in the actual electrical parameters; The current deviation value is calculated based on the dynamic current reference value and the actual current in the actual electrical parameters.

7. The adaptive virtual inertia control method for the water electrolysis hydrogen production system according to claim 6, characterized in that, Based on the dynamic power reference value and the actual voltage in the actual electrical parameters, calculate the dynamic current reference value, including: according to Calculate the dynamic current reference value; in, Indicates the dynamic current reference value. Indicates the actual voltage; Based on the dynamic current reference value and the actual current in the actual electrical parameters, the current deviation value is calculated, including: according to Calculate the current deviation value; in, Indicates the current deviation value. This represents the actual current.

8. An adaptive virtual inertia control device for a water electrolysis hydrogen production system, characterized in that, include: The acquisition module is used to acquire the frequency change rate of the power grid and the initial given power of the water electrolysis hydrogen production system, as well as to measure the actual electrical parameters of the electrolyzer. The calculation module is used to calculate the virtual inertia coefficient based on the frequency change rate. The calculation module is also used to calculate the dynamic power reference value of the water electrolysis hydrogen production system based on the frequency change rate, the virtual inertia coefficient and the initial given power. The calculation module is also used to calculate the current deviation value based on the dynamic power reference value and the actual electrical parameters; The control module is used to input the current deviation value into the PI controller and output the duty cycle of the DC / DC module to control the power of the electrolytic cell.

9. A terminal, comprising a memory and a processor, the memory for storing a computer program, the processor for calling and running the computer program stored in the memory, characterized in that, When the processor executes the computer program, it implements the steps of the adaptive virtual inertia control method for the water electrolysis hydrogen production system as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the adaptive virtual inertia control method for the water electrolysis hydrogen production system as described in any one of claims 1 to 7.