Simulation test platform and method of hydrogen energy comprehensive energy supply system

By building a model of the integrated hydrogen energy supply system using Simscape and Thermolib, and implementing real-time simulation using NI VeriStand and RT-Linux, the problems of complex structure and resource waste of existing platforms are solved, and efficient simulation testing is achieved.

CN115630515BActive Publication Date: 2026-03-31SHANDONG UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

The existing simulation and testing platform for integrated hydrogen energy supply systems has a complex structure, which is not conducive to its widespread use. Furthermore, it fails to meet the simulation speed and accuracy requirements of different modules, resulting in wasted simulation resources and low efficiency.

Method used

Simscape was used to build the power system model, and Thermolib was used to build the hydrogen energy and thermal system models. Different solution baseline step sizes were set, and real-time simulation was achieved using NI VeriStand and RT-Linux. The multi-timescale characteristics were combined to improve simulation efficiency.

Benefits of technology

It simplifies the simulation model structure, facilitates expansion and maintenance, balances simulation speed and accuracy requirements, saves computing resources, improves simulation efficiency, and supports system design, operation optimization, and analysis and testing of control strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115630515B_ABST
    Figure CN115630515B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of hydrogen-containing comprehensive energy comprehensive utilization, and provides a simulation test platform and method for hydrogen energy comprehensive energy supply system.In the application, an electric power system model is built through Simscape, a hydrogen energy system model and a thermal system model are built through Thermolib, the structure of each model in the simulation test platform is simplified, and expansion and maintenance are facilitated.Meanwhile, different solving reference steps are set for the electric power system model, the hydrogen energy system model and the thermal system model according to different time scale characteristics, the different needs of different modules in the simulation test platform for simulation speed and simulation accuracy are taken into account, calculation resources are saved on the basis of ensuring simulation accuracy, and simulation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of comprehensive utilization technology of hydrogen-containing energy, and particularly relates to a simulation test platform and method for a comprehensive hydrogen energy supply system. Background Technology

[0002] Constructing a novel energy system using hydrogen energy as the energy conversion medium is of great significance for ensuring energy security, optimizing the energy structure, and protecting the ecological environment. A hydrogen integrated energy supply system, centered on electrolyzers and fuel cells, coordinates and optimizes the distribution, conversion, and storage of hydrogen, electricity, and heat energy. It is considered one of the most feasible new energy storage and conversion methods for the future. However, hydrogen integrated energy supply systems involve heterogeneous coupling of multiple energy sources, and the operating mechanisms and conditions of equipment such as electrolyzers and fuel cells are complex. Therefore, establishing a relatively accurate simulation and testing platform for hydrogen integrated energy supply systems is of great importance for the analysis and testing of theoretical research on system design, operational optimization, and control strategies.

[0003] The inventors discovered that the existing simulation test platform for integrated hydrogen energy supply system has a complex structure, which is not conducive to its widespread use. Furthermore, the integrated hydrogen energy supply system has obvious multi-timescale characteristics, and the existing simulation test platform does not take into account the different requirements of different modules in the simulation test platform for simulation speed and accuracy, which to some extent wastes simulation resources and cannot guarantee simulation efficiency. Summary of the Invention

[0004] To address the aforementioned issues, this invention proposes a simulation testing platform and method for a hydrogen energy integrated power supply system. Under the same environment, a mechanistic model of the hydrogen energy integrated power supply system is built based on Thermolib and Simscape, simplifying the simulation model structure and facilitating expansion and maintenance. Different simulation accuracies are adopted according to the different timescale characteristics of electrothermal hydrogen, balancing simulation speed and accuracy. NI VeriStand is used as the real-time simulation monitoring and deployment software, and the RT-Linux operating system is used as the simulation model solving computational environment, achieving real-time simulation combining data and the model. This saves computational resources, improves simulation efficiency, and enables analysis and testing of theoretical research on system design, operational optimization, and control strategies.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a simulation test platform for a hydrogen energy integrated power supply system, employing the following technical solution:

[0006] A simulation test platform for a hydrogen energy integrated power supply system includes a power system model, a hydrogen energy system model, and a thermal system model;

[0007] The power system model is built based on Simscape; the hydrogen energy system model and the thermal system model are built based on Thermolib; different solution baseline step sizes are set for the power system model, the hydrogen energy system model and the thermal system model.

[0008] Furthermore, the power system model includes a wind power generation module, a photovoltaic power generation module, an inverter module, and an electrical load module.

[0009] Furthermore, the hydrogen energy system model includes an electrolyzer module, a hydrogen storage tank module, and a fuel cell module.

[0010] Furthermore, the thermal system model includes a water pump, a heat exchanger module, and a heat load module.

[0011] Furthermore, the modules in the power system model, the hydrogen energy system model, and the thermal system model are connected through pipes and energy flow data buses.

[0012] Furthermore, the energy flow data bus includes a current data bus and a hydrogen flow data bus;

[0013] The current data bus extracts the voltage, current, and frequency of the wind power generation module and photovoltaic power generation module in the power system model, and transmits the voltage, current, and frequency to the electrolyzer module in the hydrogen energy system model; the hydrogen flow data bus extracts the flow rate, pressure, and temperature of the electrolyzer module, and transmits the flow rate, pressure, and temperature to the hydrogen storage tank module in the hydrogen energy system model; the hydrogen flow data bus also extracts the flow rate, pressure, and temperature of the hydrogen storage tank module, and transmits the flow rate, pressure, and temperature to the fuel cell module in the hydrogen energy system model.

[0014] Furthermore, the power system model, the hydrogen energy system model, and the thermal system model are deployed on a real-time target machine running the RT-Linux operating system using NI VeriStand, and the calculations are performed on the target machine. Based on the multi-timescale characteristics, the solution baseline step size is set to the millisecond level of the power system requirements. Using the frequency division function of NI VeriStand, the step size of the hydrogen energy system model and the thermal system model is multiplied to the minute or second level.

[0015] Furthermore, the parallel processing capabilities of the CPU are utilized for the solution calculation.

[0016] Furthermore, NI VeriStand enables interaction between the user and the target device via Ethernet; when reading wind speed, light intensity, temperature and humidity data, NI VeriStand uses a first-step long sampling time for wind speed and light intensity data, and a second-step long sampling time for temperature and humidity data, wherein the first-step long sampling time is shorter than the second-step long sampling time.

[0017] To achieve the above objectives, in a second aspect, the present invention also provides a simulation method for a hydrogen energy integrated power supply system, employing the following technical solution:

[0018] A simulation method for a hydrogen energy integrated power supply system employs a simulation test platform for a hydrogen energy integrated power supply system as described in the first aspect, comprising:

[0019] NI VeriStand imports input and output ports from the model library, and during modeling, the input and output ports are connected to the input and output ports of each model by dragging and dropping.

[0020] Using the Build Model feature, C language code is automatically generated based on the model, and a C / C++ compiler is automatically called to compile the C language code into a dynamic link library file with the same name as the model;

[0021] Use NI VeriStand software to create a real-time simulation project;

[0022] The power system model, hydrogen energy system model, and thermal system model were deployed on a real-time target machine running the RT-Linux operating system using NI VeriStand, and the calculations were performed on the target machine. Based on the multi-timescale characteristics, the baseline solution step size was set to the millisecond level of the power system requirements. Using the frequency division function of NI VeriStand, the step size of the hydrogen energy system model and the thermal system model was increased exponentially to the minute or second level, and the CPU parallel processing function was used for the calculations. NI VeriStand facilitated interaction between the user and the target machine via Ethernet.

[0023] When reading wind speed, light intensity, temperature and humidity data, NI VeriStand uses a first-step long sampling time for wind speed and light intensity data, and a second-step long sampling time for temperature and humidity data. The first-step long sampling time is shorter than the second-step long sampling time.

[0024] Link the NI VeriStand UI components to the channels to display changes in channel data and issue control commands to the model via the channels.

[0025] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0026] 1. In this invention, a power system model is built using Simscape, and a hydrogen energy system model and a thermal system model are built using Thermolib. This simplifies the structure of each model in the simulation test platform and facilitates expansion and maintenance. At the same time, different solution reference step sizes are set for the power system model, hydrogen energy system model, and thermal system model according to different time scale characteristics. This takes into account the different requirements of different modules in the simulation test platform for simulation speed and accuracy, saving computing resources and improving simulation efficiency while ensuring simulation accuracy.

[0027] 2. This invention constructs a mechanism model of a hydrogen energy integrated supply system based on Thermolib and Simscape within the same MATLAB / Simulink environment, simplifying the simulation model structure and facilitating expansion and maintenance. Different simulation accuracies are adopted according to the different timescale characteristics of electrothermal hydrogen, balancing simulation speed and accuracy. NI VeriStand is used as the real-time simulation monitoring and deployment software, and the RT-Linux operating system is used as the simulation model solving environment, achieving real-time simulation combining data and models, saving computing resources and improving simulation efficiency. Based on the simulation testing platform in this invention, analysis and testing of theoretical research on system design, operation optimization, and control strategies can be realized. Attached Figure Description

[0028] The accompanying drawings, which form part of this embodiment, are used to provide a further understanding of this embodiment. The illustrative embodiments and their descriptions are used to explain this embodiment and do not constitute an improper limitation of this embodiment.

[0029] Figure 1 This is an architectural diagram of Embodiment 1 of the present invention;

[0030] Figure 2 This is a schematic diagram of the simulation method in Embodiment 2 of the present invention. Detailed Implementation

[0031] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0032] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0033] Example 1:

[0034] As described in the background section, existing simulation test platforms for integrated hydrogen energy supply systems are complex in structure, hindering widespread adoption. Furthermore, they fail to consider the varying speed and accuracy requirements of different modules within the platform, wasting simulation resources and compromising efficiency. Integrated hydrogen energy supply systems typically feature a high proportion of renewable energy. Combined with the distinct spatiotemporal characteristics of user electrical and thermal loads, the real-time nature of external data such as wind speed, sunlight, and temperature is crucial for the scientific validity and accuracy of the simulation system. Additionally, the timescale for electricity is generally in the millisecond / second range, for heat in the minute / hour range, and for hydrogen (gas) in the second / minute range. Therefore, integrated hydrogen energy supply systems exhibit significant multi-timescale characteristics. Provided the model is accurate, real-time simulation better reflects these characteristics than traditional offline simulation. Thus, establishing a real-time simulation test platform for integrated hydrogen energy supply systems is essential. To address the aforementioned issues, such as... Figure 1 As shown, this embodiment provides a simulation test platform for a hydrogen energy integrated power supply system, including a power system model, a hydrogen energy system model, and a thermal system model;

[0035] The power system model is built using Simscape; the hydrogen energy system model and the thermal system model are built using Thermolib; different solution baseline step sizes are set for the power system model, the hydrogen energy system model, and the thermal system model. Simscape is a tool that provides modeling and simulation of multi-domain physical systems, extending the functionality of Simulink.

[0036] Specifically, the power system model was built using Simscape, and the hydrogen energy system model and thermal system model were built using Thermolib. This simplified the structure of each model in the simulation test platform, making it easier to expand and maintain. At the same time, different solution reference step sizes were set for the power system model, hydrogen energy system model, and thermal system model according to different time scale characteristics. This took into account the different requirements of different modules in the simulation test platform for simulation speed and accuracy, saving computing resources and improving simulation efficiency while ensuring simulation accuracy.

[0037] The power system model includes a wind power generation module, a photovoltaic power generation module, an inverter module, and an electrical load module. The hydrogen energy system model includes an electrolyzer module, a hydrogen storage tank module, and a fuel cell module. The thermal system model includes a water pump module, a heat exchanger module, and a heat load module. The modules in the power system model, the hydrogen energy system model, and the thermal system model are connected via pipes and an energy flow data bus.

[0038] The energy flow data bus includes a current data bus and a hydrogen flow data bus. The current data bus extracts the voltage, current, and frequency of the wind power generation module and photovoltaic power generation module in the power system model, and transmits the voltage, current, and frequency to the electrolyzer module in the hydrogen energy system model. The hydrogen flow data bus extracts the flow rate, pressure, and temperature of the electrolyzer module, and transmits the flow rate, pressure, and temperature to the hydrogen storage tank module in the hydrogen energy system model. The hydrogen flow data bus also extracts the flow rate, pressure, and temperature of the hydrogen storage tank module, and transmits the flow rate, pressure, and temperature to the fuel cell module in the hydrogen energy system model.

[0039] The power system model, hydrogen energy system model, and thermal system model were deployed on a real-time target machine running RT-Linux using NI VeriStand, and the calculations were performed on the target machine. Based on the multi-timescale characteristics, the baseline solution step size was set to the millisecond level of the power system requirements. Using the frequency division function of NI VeriStand, the step size of the hydrogen energy system model and the thermal system model was increased exponentially to the minute or second level. The parallel processing capabilities of the CPU were then utilized for the calculations.

[0040] The NI VeriStand enables interaction between the user and the target device via Ethernet. When reading wind speed, light intensity, temperature, and humidity data, the NI VeriStand uses a first-step long sampling time for wind speed and light intensity data, and a second-step long sampling time for temperature and humidity data. The first-step long sampling time is shorter than the second-step long sampling time.

[0041] This embodiment builds a mechanism model of a hydrogen energy integrated supply system based on Thermolib and Simscape within the same MATLAB / Simulink environment, simplifying the simulation model structure and facilitating expansion and maintenance. Different simulation accuracies are adopted according to the different timescale characteristics of electrothermal hydrogen, balancing simulation speed and accuracy. NI VeriStand is used as the real-time simulation monitoring and deployment software, and the RT-Linux operating system is used as the simulation model solving environment, achieving real-time simulation combining data and the model, saving computing resources and improving simulation efficiency. Based on the simulation test platform in this embodiment, analysis and testing of theoretical research on system design, operation optimization, and control strategies can be realized.

[0042] Example 2:

[0043] This embodiment provides a simulation method for a hydrogen energy integrated power supply system, employing the simulation test platform for the hydrogen energy integrated power supply system described in Embodiment 1, including:

[0044] S1. Connect the model to the NI VeriStand dedicated interface. NI VeriStand is software for real-time testing applications, featuring stimulus generation, data acquisition, and calculation of channels and custom channel conversions. After installing NI VeriStand, it will import its dedicated input and output port models from the Simulink model library. During modeling, these ports are connected to the input and output ports of the model by dragging and dropping.

[0045] S2. Generate a real-time simulation model. Using Simulink's Build Model function, C language code is automatically generated based on the model, and a C / C++ compiler is automatically invoked to compile it into a dynamic link library (.dll) file with the same name as the model. This file is the real-time simulation model file.

[0046] S3. Configure the NI VeriStand real-time engine. Use the NI VeriStand software to create a real-time simulation project. In the system browser, select the real-time simulation model to import, which will automatically generate the corresponding model input ports, output ports, and channels for running status and parameters.

[0047] S4. Deploy the real-time simulation target machine. RT-Linux (Real-Time Linux) is a real-time operating system within Linux. NI VeriStand deploys the model to a real-time target machine running RT-Linux, solving the real-time simulation model on the target machine. Due to its multi-timescale characteristics, the model solution baseline step size can be set to the millisecond level of power system requirements. Utilizing NI VeriStand's frequency division function, the step size for the thermal and hydrogen models can be multiplied to the minute or second level, leveraging the computer's CPU parallel capabilities to fully utilize computing resources. NI VeriStand enables interaction between the user and the target machine via Ethernet.

[0048] S5. Read actual external data. When reading data such as wind speed, light intensity, temperature, and humidity from the database, the NI VeriStand interface uses a small sampling time step for data closely related to the power system, such as wind speed and light intensity, to improve the accuracy of the power system, based on the time scale characteristics of different energy sources. For data related to the thermal system, such as temperature and humidity, which change slowly, a larger sampling time step is used to match the solution step size of the corresponding model and save computing resources.

[0049] S6. Build a user monitoring interface. Link the NI VeriStand UI components to a specific channel to display changes in the channel's data and issue control commands to the real-time simulation model through that channel, thereby achieving real-time monitoring and interaction.

[0050] The above description is merely a preferred embodiment of this practice and is not intended to limit the scope of this practice. Various modifications and variations can be made to this practice by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this practice should be included within the protection scope of this practice.

Claims

1. A simulation test platform of a hydrogen energy comprehensive energy supply system, characterized in that, The hydrogen energy system model comprises an electrolytic tank module, a hydrogen storage tank module and a fuel cell module. The hydrogen energy system model comprises an electrolytic tank module, a hydrogen storage tank module and a fuel cell module. The power system model is a model based on Simscape, and the hydrogen energy system model and the thermal system model are models based on Thermolib. Different solving reference step lengths are set for the power system model, the hydrogen energy system model and the thermal system model. According to the multi-time scale characteristics, the solving reference step length is set to be millisecond level for the power system demand, and the step length of the hydrogen energy system model and the thermal system model is increased to minute or second level by using the frequency division function of NI Verstand. When reading wind speed, illumination, temperature and humidity data, NI VeriStand adopts a first step length sampling time for wind speed and illumination data, and a second step length sampling time for temperature and humidity data, and the first step length sampling time is smaller than the second step length sampling time.

2. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 1, characterized in that, The power system model, the hydrogen energy system model and the thermal system model are connected through pipes and an energy flow data bus.

3. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 1, characterized in that, The hydrogen flow data bus extracts the flow, pressure and temperature of the electrolytic tank module and transmits the flow, pressure and temperature to the hydrogen storage tank module in the hydrogen energy system model.

4. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 1, characterized in that, The power system model comprises a wind power generation module, a photovoltaic power generation module, an inverter module and an electrical load module. The thermal system model comprises a water pump, a heat exchanger module and a thermal load module.

5. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 1, characterized in that, The energy flow data bus comprises a current data bus.

6. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 5, characterized in that, The current data bus extracts the voltage, current and frequency of the wind power generation module and the photovoltaic power generation module in the power system model and transmits the voltage, current and frequency to the electrolytic tank module in the hydrogen energy system model.

7. The simulation test platform of a hydrogen energy comprehensive energy supply system according to claim 5, characterized in that, The power system model, the hydrogen energy system model and the thermal system model are deployed to a real-time target machine installed with an RT-Linux operating system by using NI VeriStand, and are solved and calculated on the target machine.

8. A simulation method of a hydrogen energy integrated power supply system, characterized by, The solving and calculation is performed by using CPU parallel function. NI VeriStand realizes the interaction between the user and the target machine through Ethernet. The simulation test platform of the hydrogen energy comprehensive energy supply system comprises: NI VeriStand imports input ports and output ports in the model library, and connects the input ports and the output ports to the input and output ports of each model by dragging during modeling. Build Model function is used to automatically generate C language code according to the model, and a C / C++ compiler is automatically called to compile the C language code into a dynamic link library file with the same name as the model. NI VeriStand software is used to create a real-time simulation project. The power system model, the hydrogen energy system model and the thermal system model are deployed to a real-time target machine installed with an RT-Linux operating system by using the NI VeriStand, and calculation is solved on the target machine; according to the multi-time scale characteristics, a solving reference step is set to be millisecond level of power system demand, the step of the hydrogen energy system model and the thermal system model is increased to minute or second level by using the frequency division function of the NI Verstand, and solving calculation is performed by using CPU parallel function; and the NI VeriStand realizes the interaction between a user and the target machine through Ethernet; When reading wind speed, illumination, temperature and humidity data, the NI VeriStand adopts a first step sampling time for wind speed and illumination data, and a second step sampling time for temperature and humidity data, and the first step sampling time is less than the second step sampling time; The UI component of the NI VeriStand is linked with a channel, the change of channel data is displayed, and a control instruction is issued to the model through the channel.

Citation Information

Patent Citations

  • Integrated energy multi-energy-flow unified real-time simulation system and method based on Thermolib software package

    CN112307629A