Simulation test system and method for green hydrogen system control strategy
By introducing a simulation test system into the green hydrogen system, including simulation module library, system scenario model energy management module, real-time simulation module and test verification module, the problem of slow design and development of green hydrogen system in the existing technology has been solved, and rapid development has been achieved and verify control strategies, improve development efficiency and reduce costs.
Patent Information
- Application Number
- CN202411402734.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-07
AI Technical Summary
The lack of effective testing platforms in the existing technology has led to a slow design and research and development process of green hydrogen systems, and the inability to quickly optimize and improve control strategies.
Provide a simulation test system for green hydrogen system control strategy, including simulation module library, system scenario model energy management module, real-time simulation module and test verification module. Through these modules, the topology structure of green hydrogen system is constructed and simulated and run, and the operation status is monitored. , perform data visualization and abnormal detection.
It greatly shortens the development and verification cycle of green hydrogen system control strategy, improves product development efficiency, and reduces development costs.
Smart Images

Figure CN119396023A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of simulation testing technology, and in particular to a simulation testing system and method for a green hydrogen system control strategy. Background Art
[0003] Today, the economic viability of water electrolysis hydrogen production technology depends on the reduction of wind power and photovoltaic power generation costs, as well as the operation mode of electrolyzer products. In order to achieve the goal of increasing the proportion of green hydrogen, it is necessary to conduct a lot of research and testing on the control strategy of the electric-hydrogen coupled green hydrogen system, and continuously optimize and improve the control strategy. However, there is no good test platform to help, which makes the design and development process of the green hydrogen system relatively slow. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a simulation test system and method for a green hydrogen system control strategy, which can greatly shorten the development and verification cycle of the green hydrogen system control strategy, improve product development efficiency, and reduce development costs.
[0005] In order to solve the above technical problems, one embodiment of the present invention provides a simulation test system for a green hydrogen system control strategy, the system comprising a simulation module library, a system scenario model energy management module, a real-time simulation module and a test verification module;
[0006] The simulation module library is used to store and call the basic modules in the pre-built green hydrogen system, wherein the basic modules include thermal equipment modules, PEM electric hydrogen production modules, power equipment modules and gas transmission equipment modules;
[0007] The system scenario model energy management module is used to use the simulation module library to build a green hydrogen system topology structure according to a preset system control strategy;
[0008] The real-time simulation module is used to call pre-built simulation software to simulate and build the green hydrogen system topology structure, obtain a green hydrogen system simulation model, and simulate and run the green hydrogen system simulation model;
[0009] The test verification module is used to monitor the operating status of the green hydrogen system simulation model, obtain system operating data, visualize the system operating data, obtain a data trend curve, and use a pre-trained anomaly detection model to perform an operating status detection operation based on the green hydrogen coefficient over the entire life cycle on the data trend curve to obtain an abnormal operating status, and extract an abnormal strategy point corresponding to the abnormal operating status from the system control strategy.
[0010] In addition, the PEM electric hydrogen production module is obtained by mathematically modeling a pre-constructed proton exchange membrane water electrolysis hydrogen production method, which is used to convert mathematical relationships into simulation codes;
[0011] The mathematical relationship of the PEM electric hydrogen production module is:
[0012]
[0013] In the formula, represents the molar flow rate of hydrogen produced by the cathode in the proton exchange membrane water electrolysis hydrogen production method, as the output of the PEM electric hydrogen production module; gn is the abbreviation of generated, which means generation; H2 represents hydrogen; n c represents the number of electrolytic units contained in the electrolyzer in the PEM electric hydrogen production module; I represents the current passing through the electrolyzer, which serves as the input of the PEM electric hydrogen production module; F represents the Faraday constant; η F is the current efficiency, which is used to indicate the ratio of the actual amount of hydrogen generated to the theoretical amount;
[0014] The simulation code relationship is expressed as:
[0015] In addition, the green hydrogen system topology includes renewable energy, energy storage batteries, power grid, power load, electrolyzer, hydrogen storage bottle, fuel cell and ammonia synthesis device;
[0016] The renewable energy, energy storage battery, power load, electrolyzer and fuel cell are respectively connected to the power grid, the electrolyzer is connected to the hydrogen storage bottle, and the hydrogen storage bottle is respectively connected to the fuel cell and the synthetic ammonia device;
[0017] The renewable energy is used to supply power to the power grid and ensure the power quality of the power grid, wherein the renewable energy includes wind energy and solar energy;
[0018] The power grid is used to supply power to the power load and the electrolyzer, and the power load is used to consume the electric energy in the power grid;
[0019] The electrolyzer is used to generate hydrogen by electrolyzing water, and transport the hydrogen to the gas storage bottle for storage;
[0020] The hydrogen storage bottle is used to store hydrogen and transport the hydrogen to the fuel cell and the synthetic ammonia device;
[0021] The fuel cell is used to consume hydrogen to generate electricity to supply power to the power grid, and the synthetic ammonia device is used to consume hydrogen and produce liquid ammonia.
[0022] In addition, the green hydrogen system topology may include a power subsystem and a hydrogen subsystem.
[0023] In addition, the power subsystem includes renewable energy, power grid, energy management system, fuel cell, power load and PEM electric hydrogen production module;
[0024] The power subsystem is used to use the energy management system to provide power support based on voltage and frequency to the power grid;
[0025] According to the control instructions of the energy management system, the fuel cell is used to flexibly supply power to the power grid;
[0026] The power load and the PEM electric hydrogen production module are used to consume the electricity in the power grid.
[0027] In addition, the hydrogen subsystem includes an equipment interface, a PEM electric hydrogen production module, a three-way valve, a compressor, a fuel cell and an ammonia synthesis device;
[0028] The hydrogen subsystem is used to obtain current parameters using a device interface;
[0029] Sending the current parameter to the PEM electric hydrogen production module to obtain hydrogen data, and sending the hydrogen data to the three-way valve;
[0030] The hydrogen is split by using the three-way valve to obtain a first hydrogen branch and a second hydrogen branch;
[0031] Using the compressor to send the first hydrogen branch from the first port of the three-way valve to the fuel cell, converting chemical energy into electrical energy, and obtaining fuel cell power generation data;
[0032] The compressor is used to send the second hydrogen branch from the second port of the three-way valve to the synthetic ammonia device to obtain data such as hydrogen consumption and liquid ammonia production.
[0033] In addition, in the real-time simulation module, 50e are set for the power subsystem and the hydrogen subsystem respectively. -6 The green hydrogen system is solved at multiple rates with two different time steps of 0.1 s and 0.5 s.
[0034] In addition, the system scenario model energy management module includes a wind turbine power input terminal, a photovoltaic power input terminal, an electric load power input terminal, an electric energy storage charge state input terminal, an electric hydrogen production power control output terminal, an electric energy storage charge and discharge power control output terminal, and a fuel cell power generation power control output terminal.
[0035] In addition, in the test verification module, the parameter types corresponding to the data trend curve include at least wind and solar new energy power generation load, electric hydrogen production load, electric energy storage charging and discharging power, fuel cell power generation power, power grid purchase amount, electric hydrogen production, cumulative carbon emission reduction, fuel cell hydrogen consumption and electric energy storage SOC.
[0036] A specific embodiment of the present invention further provides a method for controlling a simulation test system of the green hydrogen system control strategy, characterized in that the method comprises:
[0037] Get a library of pre-built simulation blocks;
[0038] Using the simulation module library, a green hydrogen system topology is constructed according to the real system topology and the preset system control strategy;
[0039] Calling simulation software to simulate and build the green hydrogen system topology structure to obtain a green hydrogen system simulation model, and performing real-time simulation operation on the green hydrogen system simulation model;
[0040] Monitoring the operating status of the green hydrogen system simulation model to obtain system operating data;
[0041] Performing visualization operation on the system operation data to obtain a data trend curve;
[0042] By using a pre-trained anomaly detection model, an operation status detection operation based on the full life cycle of the green hydrogen coefficient is performed on the data trend curve to obtain an abnormal operation state, and an abnormal strategy point corresponding to the abnormal operation state is extracted from the system control strategy.
[0043] In the embodiment of the present invention, a physical model is constructed according to multidisciplinary physical mechanisms and formulas such as working fluid thermophysical property data, fluid characteristic equations, and energy conservation equations to obtain a thermal equipment module, a PEM electric hydrogen production module, a power equipment module, and a gas transmission equipment module, and these modules are integrated into a simulation module library. Then, through a preset system control strategy, according to the real system topology, the simple dragging, wiring, and basic parameter settings of each module can be used to quickly and conveniently complete the creation of the entire green hydrogen system model; then, the effectiveness of the constructed model is simulated and verified in simulation software such as Simulink, and the control strategy is tested and iteratively optimized. In addition, the present invention also integrates a test verification module, and realizes the automation of anomaly detection through the anomaly detection model in the test verification module, and further improves the detection efficiency of the green hydrogen system through automation and artificial intelligence. Therefore, the present invention provides a simulation test system and method for a green hydrogen system control strategy, which can greatly shorten the development and verification cycle of the green hydrogen system control strategy, improve product development efficiency, and reduce development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The embodiments of the present invention are exemplarily described by the images in the corresponding drawings, which do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute a scale limitation unless otherwise stated.
[0045] Figure 1 is a schematic diagram of a PEM electric hydrogen production module in a simulation test system of a green hydrogen system control strategy provided in an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the distribution of various basic modules in the simulation module library in the simulation test of the green hydrogen system control strategy provided according to an embodiment of the present invention;
[0047] Figure 3 is a schematic diagram of the structure of a green hydrogen system scenario topology in a simulation test of a green hydrogen system control strategy provided according to an embodiment of the present invention;
[0048] Figure 4 It is a schematic diagram of a simulation scenario model of a green hydrogen system coupled with wind, solar, hydrogen and electricity storage in a simulation test of a green hydrogen system control strategy provided according to an embodiment of the present invention;
[0049] Figure 5 is a schematic diagram of an energy management module of a system scenario model in a simulation test of a green hydrogen system control strategy provided according to an embodiment of the present invention;
[0050] Figure 6 It is a flow chart of a simulation test control method of a green hydrogen system control strategy provided in accordance with an embodiment of the present invention;
[0051] Table 1 shows the various devices and their parameters in the green hydrogen system topology structure in the simulation test of the green hydrogen system control strategy provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more obvious, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0053] An embodiment of the present application relates to a simulation test system for a green hydrogen system control strategy, which mainly includes a simulation module library, a system scenario model energy management module, a real-time simulation module and a test verification module.
[0054] The simulation module library is a database structure used to store and call models established by physical mechanisms and mathematical methods (such as PEM hydrogen production modules, power grid modules, transformer modules, etc.). In addition, the user end can also modify the existing modules in the simulation module library by direct editing to adapt to different control scenarios.
[0055] The system scenario model energy management model is an operational process of system modeling and debugging. According to the existing system topology and parameter design, the existing design is quickly converted into a simulation model by dragging and dropping the basic modules of the model library to connect.
[0056] The real-time simulation module is composed of real-time simulation management software and a real-time simulator, and is used to perform real-time simulation operation on each working condition of the unified scenario model.
[0057] The real-time simulation management software compiles the green hydrogen system scenario model into a .c file and compiles it into a binary file on the real-time simulation platform. It realizes the communication between the host and the target machine, the communication between the CPU and the FPGA, and the communication between the CPUs in the target machine, and can control the model simulation, including model download, node allocation, simulation execution, stop and other functions.
[0058] The real-time simulator solves the green hydrogen system scenario model in real time, uses multi-core, multi-rate and XHP ultra-high-speed mode to provide the optimal solution for solving the model, and reduces computing resources.
[0059] The test verification module includes a pre-trained anomaly detection model to assist R&D personnel in discovering design loopholes and deficiencies, thereby improving the accuracy and efficiency of R&D products in detection.
[0060] Furthermore, in an embodiment of the present invention, each basic module of the simulation module library is stored in the simulation module library, and the expression form of these modules is only input and output. The specific calculation process is hidden and encapsulated. Among them, some modules are models simulated based on data calculation, such as the PEM hydrogen production module of proton exchange membrane water electrolysis (PEM hydrogen production), etc., while some modules are simpler modules that come with the simulation system, such as power grid modules, transformer modules, etc.
[0061] Since PEM hydrogen production has good adaptability to new energy power generation systems with large fluctuations, it has great development potential and has received a high degree of attention. Therefore, in the embodiment of the present invention, the simulation modeling process of hydrogen production by proton exchange membrane water electrolysis (PEM hydrogen production) is described in detail.
[0062] After the PEM electric hydrogen production equipment is powered on, water is electrolyzed into hydrogen ions (H+) and oxygen ions (O2-). The hydrogen ions are transferred to the anode through the proton exchange membrane and combined with electrons to generate hydrogen; the oxygen ions are generated through the cathode with the participation of electrons. The chemical reaction formula is shown below:
[0063] Cathode: 4H + +4e - →2H2
[0064] anode:
[0065] Overall reaction:
[0066] In an embodiment of the present invention, hydrogen production modeling describes the relationship between the amount of hydrogen produced in the hydrogen production system and factors such as current and temperature, and is used to evaluate the performance of the hydrogen production system, optimize the parameters of the hydrogen production system, and control the operation of the hydrogen production system. In the current solution method, the hydrogen production is usually calculated based on the Faraday principle. The Faraday principle refers to the fact that in a closed circuit, the amount of charge transferred through the electrolyte is proportional to the number of moles of the substance reacting in the electrolyte. According to Faraday's law, the molar flow rate of hydrogen produced by the PEM electrolyzer at a given current and time can be obtained. However, not all charges passing through the electrolyte participate in the water decomposition reaction, so it is necessary to introduce a correction factor, namely the Faraday efficiency, to represent the ratio of the actual amount of gas produced to the theoretical value.
[0067] Therefore, it can be known that the mathematical relationship of the PEM electric hydrogen production module is:
[0068]
[0069] In the formula, represents the molar flow rate of hydrogen produced by the cathode in the proton exchange membrane water electrolysis hydrogen production method, as the output of the PEM electric hydrogen production module; gn is the abbreviation of generated, which means generation; H2 represents hydrogen; n c represents the number of electrolytic units contained in the electrolyzer in the PEM electric hydrogen production module; I represents the current passing through the electrolyzer, which serves as the input of the PEM electric hydrogen production module; F represents the Faraday constant; η F is the current efficiency, which is used to indicate the ratio of the actual amount of hydrogen generated to the theoretical amount;
[0070] The code simulation relationship is expressed as:
[0071] According to the above principles, the PEM hydrogen production model is constructed and packaged. The module inlet and outlet ports represent the external input current data and the model output hydrogen property data, respectively, and the PEM hydrogen production module is obtained, such as Figure 1Then, similar to the construction process of the PEM hydrogen production module, other basic modules are constructed, such as Figure 2 shown.
[0072] Furthermore, in an embodiment of the present invention, the system scenario model energy management system module is used to utilize the simulation module library to construct a green hydrogen system topology structure according to a preset system control strategy, thereby realizing a real system topology.
[0073] The system control strategy is an experimental design that needs to be verified by the scheme, including power control and hydrogen output control and consumption control.
[0074] For details, refer to Figure 3 As shown, in the embodiment of the present invention, the green hydrogen system topology includes renewable energy, energy storage batteries, power grids, power loads, electrolyzers, hydrogen storage bottles, fuel cells and synthetic ammonia devices;
[0075] The renewable energy, energy storage battery, power load, electrolyzer and fuel cell are respectively connected to the power grid, the electrolyzer is connected to the hydrogen storage bottle, and the hydrogen storage bottle is respectively connected to the fuel cell and the synthetic ammonia device;
[0076] The renewable energy is used to supply power to the power grid and ensure the power quality of the power grid, wherein the renewable energy includes energy storage batteries, wind energy and solar energy;
[0077] The power grid is used to supply power to the power load and the electrolyzer, and the power load is used to consume the electric energy in the power grid;
[0078] The electrolyzer is used to generate hydrogen by electrolyzing water, and transport the hydrogen to the gas storage bottle for storage;
[0079] The hydrogen storage bottle is used to store hydrogen and transport the hydrogen to the fuel cell and the synthetic ammonia device;
[0080] The fuel cell is used to consume hydrogen to generate electricity to supply power to the power grid, and the synthetic ammonia device is used to consume hydrogen and produce liquid ammonia.
[0081] Specifically, in the embodiment of the present invention, the equipment and parameters of the green hydrogen system are shown in the following table:
[0082]
[0083] Table 1 Equipment and parameters in green hydrogen system
[0084] In the embodiment of the present invention, a simulation scenario model of a wind-solar-hydrogen-electricity-storage-hydrogen-coupled green hydrogen system is constructed in Matlab / Simulink according to the above green hydrogen system topology and equipment parameters, such as Figure 4 shown.
[0085] Among them, the green hydrogen system topology can be divided into two aspects: power subsystem and hydrogen subsystem.
[0086] On the one hand, the power subsystem includes renewable energy, power grid, energy management system, fuel cell, power load and PEM electric hydrogen production module;
[0087] The power subsystem is used to use the energy management system to perform power balance calculation and distribution on the entire power system;
[0088] According to control instructions, using the fuel cell to flexibly supply power to the power grid;
[0089] The power load and the PEM electric hydrogen production module are used to consume the electricity in the power grid.
[0090] Specifically, in the embodiment of the present invention, wind turbines and photovoltaic power generation provide new energy generation for the entire power system, and the energy management system and the power grid jointly support the voltage and frequency of the entire power system to ensure the quality of power. Fuel cells can supply power to the entire power system according to optimization algorithms and control instructions, improving the flexibility and economy of power supply. Electric hydrogen production and other power loads jointly consume the power system's electricity and ensure the stable electrolysis of hydrogen.
[0091] On the other hand, the hydrogen subsystem includes an equipment interface, a PEM electric hydrogen production module, a three-way valve, a compressor, a fuel cell and an ammonia synthesis device;
[0092] The hydrogen subsystem is used to obtain current parameters using a device interface;
[0093] Sending the current parameter to the PEM electric hydrogen production module to obtain hydrogen data, and sending the hydrogen data to the three-way valve;
[0094] The hydrogen is split by using the three-way valve to obtain a first hydrogen branch and a second hydrogen branch;
[0095] Using the compressor to send the first hydrogen branch from the first port of the three-way valve to the fuel cell, converting chemical energy into electrical energy, and obtaining fuel cell power generation data;
[0096] The compressor is used to send the hydrogen data of the second branch from the second port of the three-way valve to the synthetic ammonia device to obtain data such as hydrogen consumption and liquid ammonia production.
[0097] Specifically, in the embodiment of the present invention, the inlet of the electric hydrogen production equipment model receives current parameters, and the output port is hydrogen working fluid. The hydrogen produced by the electric hydrogen production equipment is divided into two hydrogen supply branches through a three-way valve, and the outlet port 1 of the three-way valve is hydrogen branch 1, and the outlet port 2 of the three-way valve is hydrogen branch 2. Hydrogen branch 1 is pressurized by a compressor and enters a local storage tank to supply hydrogen for fuel cell power generation. Hydrogen branch 2 is pressurized by a compressor and sent to a hydrogen consumption device through a transportation pipeline, such as a device for supplying hydrogen for synthetic ammonia.
[0098] Then, in the embodiment of the present invention, in order to ensure the stable, economical and orderly operation of the entire green hydrogen system, a classic control strategy is designed for the green hydrogen system - hydrogen production is prioritized, and the remaining electricity is connected to the grid. Figure 5 As shown, the control strategy is directly written in Matlab / Simulink using the M-functuon module. The control strategy input and output port parameters system scenario model energy management module includes the wind turbine power input terminal, photovoltaic power input terminal, electric load power input terminal, electric energy storage charge state input terminal, electric hydrogen production power control output terminal, electric energy storage charge and discharge power control output terminal and fuel cell power generation power control output terminal.
[0099] Furthermore, in an embodiment of the present invention, the real-time simulation module is used to call a green hydrogen system simulation model pre-built in the simulation software Matlab, and perform functional operations such as compiling and loading the model to complete real-time simulation operation of the green hydrogen system simulation model.
[0100] Specifically, in the embodiment of the present invention, the green hydrogen system simulation model is compiled using the real-time simulation management software RT-LAB, the Simulink model is converted into a .c file, and compiled into a binary file based on the real-time simulation machine platform environment.
[0101] Among them, the RT-LAB software can realize the communication between the host and the target machine, the communication between the CPU and the FPGA, and the communication between the CPUs in the target machine, and can control the model simulation, including model download, node allocation, simulation execution, stop and other functions. The Parameter Control Panel module attached to RT-LAB can realize the online adjustment of various parameters in the model (such as the gain coefficient of the regulator, the integral constant, etc.) without interrupting the operation of the model simulation. The results after parameter adjustment are immediately visible.
[0102] In the embodiment of the present invention, a real-time simulation target machine is used to solve the green hydrogen system simulation model in real time. Multi-core, multi-rate and XHP ultra-high-speed modes provide the best solution for solving the model and reduce computing resources. The power and hydrogen subsystems of the green hydrogen system simulation model are set to 50e -6 Two different time steps of 0.1 and 0.5 seconds are used for multi-core and multi-rate solving.
[0103] Furthermore, in an embodiment of the present invention, the test verification module is used to monitor the operating status of the green hydrogen system simulation model to obtain system operating data, perform visualization operations on the system operating data to obtain a data trend curve, and use a pre-trained anomaly detection model to perform an operating status detection operation based on the green hydrogen coefficient over the entire life cycle on the data trend curve to obtain an abnormal operating status, and extract an abnormal strategy point corresponding to the abnormal operating status from the system control strategy.
[0104] In an embodiment of the present invention, after the green hydrogen system simulation model is simulated and run in real time, the real-time simulation platform monitor page displays the current green hydrogen system operating status, that is, the operating status and data of each device in the system in real time. Then, the scope module is used to display the data trend curve during the entire operation cycle. Monitor whether the operating status of the green hydrogen system is normal under this control strategy, whether the operating status of each device is within the normal range, and whether there is a dead zone in the operation of the entire system. By monitoring the operating status of the entire green hydrogen system throughout its life cycle, abnormal operating status is discovered, the control strategy is corrected, and the operating status monitoring is repeated. This is repeated and iterated continuously to achieve the purpose of controlling strategy testing and optimization.
[0105] In addition, in the embodiment of the present invention, there are multiple important parameters that affect the operation of the green hydrogen system, so there are also multiple data trend curves. Specifically, the data trend curve in the embodiment of the present invention at least includes wind and solar new energy power generation load, electric hydrogen production load, electric energy storage charging and discharging power, fuel cell power generation power, power grid purchase, electric hydrogen production, cumulative carbon emission reduction, fuel cell hydrogen consumption and electric energy storage SOC.
[0106] In the embodiment of the present invention, the real-time simulation operation is started according to the preset simulation conditions. As the photovoltaic power generation of the wind turbine increases, the hydrogen production gradually rises to full load state. At a certain moment (8 moments), the hydrogen production is running at full load, the electric energy storage is started, and the excess electric energy enters the energy storage system. At another moment (35 moments), the photovoltaic power generation drops to 0, and the load power enters a high-load operation state. At this time, the new energy power generation cannot meet the power supply, the electric energy storage enters the discharge state, and the fuel cell is also started, which together ensures the stable operation of the entire green hydrogen system.
[0107] The data trend curve will undergo cluster changes at the above-mentioned 8 and 35 moments, and will undergo slow trend changes at other moments. The present invention can quickly perform anomaly detection through an anomaly detection model, thereby verifying the reliability of the control system operation, thereby accelerating the design development process.
[0108] In the embodiment of the present invention, a physical model is constructed according to multidisciplinary physical mechanisms and formulas such as working fluid thermophysical property data, fluid characteristic equations, and energy conservation equations to obtain a thermal equipment module, a PEM electric hydrogen production module, a power equipment module, and a gas transmission equipment module, and these modules are integrated into a simulation module library. Then, through a preset system control strategy, according to the real system topology, the simple dragging, wiring, and basic parameter settings of each module can be used to quickly and conveniently complete the creation of the entire green hydrogen system model; wherein, the real system topology generally refers to the actual physical layout and connection method of a system. Then, the present invention simulates and verifies the effectiveness of the constructed model in simulation software such as Simulink, tests and iteratively optimizes the control strategy. In addition, the present invention also integrates a test verification module, realizes the automation of anomaly detection through the anomaly detection model in the test verification module, and further improves the detection efficiency of the green hydrogen system through automation and artificial intelligence. Therefore, the present invention provides a simulation test system for the control strategy of a green hydrogen system, which can greatly shorten the development and verification cycle of the control strategy of the green hydrogen system, improve product development efficiency, and reduce development costs.
[0109] Further, see Figure 6 As shown, the embodiment of the present invention also provides a simulation test system execution control method for a green hydrogen system control strategy, including:
[0110] S1. Get a pre-built simulation module library.
[0111] The simulation module library is a database structure used to store and call models established by physical mechanisms and mathematical methods (such as PEM hydrogen production modules, power grid modules, transformer modules, etc.). In addition, the user end can also modify the existing modules in the simulation module library by direct editing to adapt to different control scenarios.
[0112] The present invention utilizes the simulation module library to obtain basic modules for constructing a simulation model.
[0113] S2. Using the simulation module library, according to a preset system control strategy, a green hydrogen system topology is constructed.
[0114] In the embodiment of the present invention, the system control strategy of the green hydrogen system refers to a strategy for coupling electric hydrogen, including a hydrogen sub-process and an electric power sub-process.
[0115] Among them, the power sub-process refers to the use of wind turbines and photovoltaic power generation to provide new energy power generation for the entire power system. The energy management system and the power grid jointly support the voltage and frequency of the entire power system to ensure the quality of power. Fuel cells can supply power to the entire power system according to optimization algorithms and control instructions, improving the flexibility and economy of power supply. Electric hydrogen production and other power loads jointly consume the power system's electricity and ensure the stable electrolysis of hydrogen.
[0116] The hydrogen sub-process refers to the electric hydrogen production equipment model inlet accepting current parameters, and the output port is hydrogen working fluid. The hydrogen produced by the electric hydrogen production equipment is divided into two hydrogen supply branches through a three-way valve. The three-way valve outlet port 1 is hydrogen branch 1, and the three-way valve outlet port 2 is hydrogen branch 2. Hydrogen branch 1 is pressurized by a compressor and enters a local storage tank to supply hydrogen for fuel cell power generation. Hydrogen branch 2 is pressurized by a compressor and sent to the synthetic ammonia unit through a transportation pipeline.
[0117] In an embodiment of the present invention, the steps of the power sub-process and the hydrogen sub-process are combined to obtain a green hydrogen system simulation scenario model.
[0118] S3. Call pre-built simulation software to simulate and build the green hydrogen system topology structure to obtain a green hydrogen system simulation model, and simulate and run the green hydrogen system simulation model.
[0119] Wherein, the simulation software is RT-LAB, which can realize the communication between the host and the target machine, the communication between the CPU and the FPGA, and the communication between the CPUs in the target machine, and can control the model simulation, including the functions of model download, node allocation, simulation execution, stop, etc. The Parameter Control Panel module attached to RT-LAB can realize the online adjustment of various parameters in the model (such as the gain coefficient of the regulator, the integral constant, etc.) without interrupting the operation of the model simulation. The results after parameter adjustment are immediately visible.
[0120] In the embodiment of the present invention, a real-time simulation target machine is used to solve the green hydrogen system simulation model in real time. Multi-core, multi-rate and XHP ultra-high-speed modes provide the best solution for solving the model and reduce computing resources. 50e are set for the power and hydrogen subsystems of the green hydrogen system simulation model. -6 The green hydrogen system is solved at multiple rates with two different time steps of 0.1 s and 0.5 s.
[0121] S4. Monitor the operating status of the green hydrogen system simulation model to obtain system operating data.
[0122] In an embodiment of the present invention, a real-time simulation operation is started according to preset simulation conditions. As the photovoltaic power generation of the wind turbine increases, hydrogen production gradually rises to full load. At a certain moment (8 moments), hydrogen production is running at full load, the electric energy storage is started, and excess electric energy enters the energy storage system. At another moment (35 moments), photovoltaic power generation drops to 0, and the load power enters a high-load operation state. At this time, new energy power generation cannot meet the power supply, the electric energy storage enters the discharge state, and the fuel cell is also started, which together ensures the stable operation of the entire green hydrogen system.
[0123] In an embodiment of the present invention, data of important parameters such as wind and solar new energy power generation load, electric hydrogen production power load, electric energy storage charging and discharging power, fuel cell power generation power, power grid purchase amount, electric hydrogen production, cumulative carbon emission reduction, fuel cell hydrogen consumption and electric energy storage SOC in the above process are monitored to obtain system operation data.
[0124] S5. Perform visualization operation on the system operation data to obtain a data trend curve.
[0125] S6. Using a pre-trained anomaly detection model, perform an operation on the data trend curve based on the full life cycle of the green hydrogen coefficient to obtain an abnormal operation state, and extract an abnormal strategy point corresponding to the abnormal operation state from the system control strategy.
[0126] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present embodiment, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present embodiment.
Claims
1. A simulation test system for green hydrogen system control strategy, characterized in that: The system includes a simulation module library, a system scenario model energy management module, a real-time simulation module and a test verification module; The simulation module library is used to store and call the basic modules in the pre-built green hydrogen system, wherein the basic modules include thermal equipment modules, PEM electric hydrogen production modules, power equipment modules and gas transmission equipment modules; The system scenario model energy management module is used to use the simulation module library to build a green hydrogen system topology structure according to a preset system control strategy; The real-time simulation module is used to call pre-built simulation software to simulate and build the green hydrogen system topology structure, obtain a green hydrogen system simulation model, and simulate and run the green hydrogen system simulation model; The test verification module is used to monitor the operating status of the green hydrogen system simulation model, obtain system operating data, visualize the system operating data, obtain a data trend curve, and use a pre-trained anomaly detection model to perform an operating status detection operation based on the green hydrogen coefficient over the entire life cycle on the data trend curve to obtain an abnormal operating status, and extract an abnormal strategy point corresponding to the abnormal operating status from the system control strategy.
2. The simulation test system for the green hydrogen system control strategy according to claim 1 is characterized in that: The PEM electric hydrogen production module is obtained by mathematically modeling a pre-constructed proton exchange membrane water electrolysis hydrogen production method, and is used to convert mathematical relationships into simulation codes; The mathematical relationship of the PEM electric hydrogen production module is: In the formula, represents the molar flow rate of hydrogen generated by the cathode in the proton exchange membrane water electrolysis hydrogen production method, as the output of the hydrogen equipment module; gn is the abbreviation of generated, which means generation; H2 represents hydrogen; n c represents the number of electrolytic units contained in the electrolyzer in the PEM electric hydrogen production module; I represents the current passing through the electrolyzer, which serves as the input of the PEM electric hydrogen production module; F represents the Faraday constant; η F is the current efficiency, which is used to indicate the ratio of the actual amount of hydrogen generated to the theoretical amount; The simulation code relationship is expressed as:
3. The simulation test system for the green hydrogen system control strategy according to claim 2 is characterized in that: The green hydrogen system topology includes renewable energy, energy storage batteries, power grid, power load, electrolyzer, hydrogen storage bottle, fuel cell and ammonia synthesis device; The renewable energy, energy storage battery, power load, electrolyzer and fuel cell are respectively connected to the power grid, the electrolyzer is connected to the hydrogen storage bottle, and the hydrogen storage bottle is respectively connected to the fuel cell and the synthetic ammonia device; The renewable energy is used to supply power to the power grid and ensure the power quality of the power grid, wherein the renewable energy includes wind energy and solar energy; The power grid is used to supply power to the power load and the electrolyzer, and the power load is used to consume the electric energy in the power grid; The electrolyzer is used to generate hydrogen by electrolyzing water, and transport the hydrogen to the gas storage bottle for storage; The hydrogen storage bottle is used to store hydrogen and transport the hydrogen to the fuel cell and the synthetic ammonia device; The fuel cell is used to consume hydrogen to generate electricity to supply power to the power grid, and the synthetic ammonia device is used to consume hydrogen and produce liquid ammonia.
4. The simulation test system for the green hydrogen system control strategy according to claim 3 is characterized in that: The green hydrogen system topology may include a power subsystem and a hydrogen subsystem.
5. The simulation test system for the green hydrogen system control strategy according to claim 4 is characterized in that: The power subsystem includes renewable energy, power grid, energy management system, fuel cell, power load and PEM electric hydrogen production module; The power subsystem is used to use the energy management system to provide power support based on voltage and frequency to the power grid; According to the control instructions of the energy management system, the fuel cell is used to flexibly supply power to the power grid; The power load and the PEM electric hydrogen production module are used to consume the electricity in the power grid.
6. The simulation test system for the green hydrogen system control strategy according to claim 4 is characterized in that: The hydrogen subsystem includes an equipment interface, a PEM electric hydrogen production module, a three-way valve, a compressor, a fuel cell and an ammonia synthesis device; The hydrogen subsystem is used to obtain current parameters using a device interface; Sending the current parameter to the PEM electric hydrogen production module to obtain hydrogen data, and sending the hydrogen data to the three-way valve; The hydrogen is split by using the three-way valve to obtain a first hydrogen branch and a second hydrogen branch; Using the compressor to send the first hydrogen branch from the first port of the three-way valve to the fuel cell, converting chemical energy into electrical energy, and obtaining fuel cell power generation data; The compressor is used to send the second hydrogen branch from the second port of the three-way valve to the synthetic ammonia device to obtain data such as hydrogen consumption and liquid ammonia production.
7. The simulation test system for the green hydrogen system control strategy according to claim 6 is characterized in that: In the real-time simulation module, 50e are set for the power subsystem and the hydrogen subsystem respectively. -b The green hydrogen system is solved at multiple rates with two different time steps of 0.1 s and 0.5 s.
8. The simulation test system for the green hydrogen system control strategy according to claim 7 is characterized in that: The system scenario model energy management module includes a wind turbine power input terminal, a photovoltaic power input terminal, an electric load power input terminal, an electric energy storage charge state input terminal, an electric hydrogen production power control output terminal, an electric energy storage charge and discharge power control output terminal, and a fuel cell power generation power control output terminal.
9. The simulation test system for the green hydrogen system control strategy according to claim 8 is characterized in that: In the test verification module, the parameter types corresponding to the data trend curve include at least wind and solar new energy power generation load, electric hydrogen production power load, electric energy storage charging and discharging power, fuel cell power generation power, power grid purchase amount, electric hydrogen production, cumulative carbon emission reduction, fuel cell hydrogen consumption and electric energy storage SOC.
10. A method executed by a simulation test system of the green hydrogen system control strategy according to any one of claims 1 to 9, characterized in that: The method comprises: Get a library of pre-built simulation blocks; Using the simulation module library, according to the preset system control strategy, a green hydrogen system topology structure is constructed; Calling pre-built simulation software to simulate and build the green hydrogen system topology structure to obtain a green hydrogen system simulation model, and simulating and running the green hydrogen system simulation model; Monitoring the operating status of the green hydrogen system simulation model to obtain system operating data; Performing visualization operation on the system operation data to obtain a data trend curve; By using a pre-trained anomaly detection model, an operation status detection operation based on the full life cycle of the green hydrogen coefficient is performed on the data trend curve to obtain an abnormal operation state, and an abnormal strategy point corresponding to the abnormal operation state is extracted from the system control strategy.
Citation Information
Cited By
Simulation test system and method for green ammonia system control strategy
CN120993771A