Hydrogen production amount measurement method and device, electronic equipment and storage medium

By calculating the hydrogen generation amount using sensor data and thermodynamic equations in the flow battery system, the measurement problems in sensor dependence and high humidity environments are solved, and cost-effective measurement of the hydrogen amount is achieved.

CN120356988APending Publication Date: 2025-07-22纬景储能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510540281.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, the method of placing a hydrogen concentration sensor in a liquid storage tank or pipeline depends on the sensor accuracy, and cannot continuously measure in a high humidity space and is costly.

Method used

By obtaining sensor data of sealed cathode and anode reservoir, the ideal gas state equation and Antoine equation calculate the amount of dry air in the total gas, and combining pressure, temperature and humidity changes, the hydrogen generation amount is calculated, avoiding dependence on the hydrogen concentration sensor.

Benefits of technology

It realizes accurate measurement of hydrogen generation without hydrogen concentration sensor in high humidity environments, reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120356988A_ABST
    Figure CN120356988A_ABST
Patent Text Reader

Abstract

The invention discloses a hydrogen production amount measuring method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring current moment sensor data and previous moment sensor data in the sealed cathode and anode liquid storage tank; according to the sensor data at the current moment and the sensor data at the previous moment, the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment are calculated on the basis of an ideal gas state equation and an Antow equation; and according to the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment, calculating the generation amount of hydrogen in the time period between the current moment and the previous moment. According to the technical scheme provided by the embodiment of the invention, the problems that in the prior art, a hydrogen concentration sensor is placed in a liquid storage tank or a pipeline, the amount of generated hydrogen is calculated by measuring the hydrogen concentration, the precision of the sensor is too high, continuous measurement cannot be performed in a high-humidity space, and the price is high are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy storage, and particularly to a method, device, electronic device and storage medium for measuring the hydrogen production amount. Background Art

[0002] During the charging and discharging process of a flow battery system, since the voltage is higher than the hydrogen evolution potential, hydrogen gas will be generated at the anode due to the electrolysis of water. For a zinc-based flow battery, when using electrodes such as nickel, a zinc-nickel primary battery will also be formed, and hydrogen gas will be produced due to galvanic corrosion. Due to hydrogen safety considerations, we must quantitatively analyze the hydrogen gas generated by the flow battery during the charging and discharging process. Therefore, measuring the hydrogen production amount is crucial for the design of the system's hydrogen exhaust system.

[0003] Currently, most enterprises place hydrogen concentration sensors in storage tanks or pipelines and calculate the amount of hydrogen gas generated by measuring the hydrogen concentration. However, this measurement method highly depends on the accuracy of the sensor. Since the air layer in the storage tank is always in a high-humidity state, currently available hydrogen concentration sensors on the market cannot continuously measure in a high-humidity space and are relatively expensive. Summary of the Invention

[0004] The present invention provides a method, device, electronic device and storage medium for measuring the hydrogen production amount, so as to solve the problems of the prior art that placing hydrogen concentration sensors in storage tanks or pipelines and calculating the amount of hydrogen gas generated by measuring the hydrogen concentration rely too much on the accuracy of the sensor, cannot continuously measure in a high-humidity space, and are relatively expensive.

[0005] According to one aspect of the present invention, there is provided a method for measuring the hydrogen production amount for a device for measuring the hydrogen production amount. The device includes a sealed anode and cathode storage tank with a one-way intake valve, and a sensor module is provided inside the sealed anode and cathode storage tank. The method includes:

[0006] Obtain the sensor data at the current moment and the sensor data at the previous moment inside the sealed anode and cathode storage tank;

[0007] According to the sensor data at the current moment and the sensor data at the previous moment, based on the ideal gas state equation and the Antoine equation, calculate the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment;

[0008] According to the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment, calculate the hydrogen generation amount during the time period between the current moment and the previous moment.

[0009] Optionally, the obtaining the sensor data at the current moment and the sensor data at the previous moment inside the sealed anode and cathode storage tank includes:

[0010] Obtain the current pressure, current temperature, current humidity, and current liquid level inside the sealed cathode and anode liquid storage tank, as well as the pressure, temperature, humidity, and liquid level inside the tank at the previous moment.

[0011] Optionally, calculating the amount of dry air in the gas at the current moment and the amount of dry air in the gas at the previous moment based on the ideal gas law and Antoine's equation according to the current moment sensor data and the previous moment sensor data includes:

[0012] Calculate the total gas volume at the current moment based on the ideal gas law according to the current pressure, current temperature, and current liquid level inside the tank at the current moment.

[0013] Calculate the amount of water vapor in the total gas volume at the current moment based on Antoine's equation according to the current temperature and current humidity inside the tank at the current moment.

[0014] Calculate the amount of dry air in the total gas volume at the current moment based on the total gas volume at the current moment and the amount of water vapor in the total gas volume at the current moment.

[0015] Calculate the total gas volume at the previous moment based on the ideal gas law according to the pressure, temperature, and liquid level inside the tank at the previous moment.

[0016] Calculate the amount of water vapor in the total gas volume at the previous moment based on Antoine's equation according to the temperature and humidity inside the tank at the previous moment.

[0017] Calculate the amount of dry air in the total gas volume at the previous moment based on the total gas volume at the previous moment and the amount of water vapor in the total gas volume at the previous moment.

[0018] Optionally, calculating the hydrogen production amount during the time period from the current moment to the previous moment according to the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment includes:

[0019] Calculate the difference between the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment, and determine the difference as the hydrogen production amount during the time period from the current moment to the previous moment.

[0020] Optionally, use the following formula to calculate the total gas volume at the current moment based on the ideal gas law according to the current pressure, current temperature, and current liquid level inside the tank at the current moment:

[0021] Wherein, P1 is the pressure in the tank at the current moment, T1 is the temperature in the tank at the current moment, V1 is the volume in the current tank, which can be obtained by multiplying the liquid level in the tank at the current moment by the bottom area of the tank, R is the ideal gas constant, and n1 is the total amount of gas at the current moment;

[0022] Use the following formula to calculate the amount of water vapor in the total amount of gas at the current moment based on the Antoine equation according to the temperature in the tank at the current moment and the humidity in the tank at the current moment:

[0023] Wherein, P sat1 is the saturated water vapor pressure at the current moment temperature;

[0024] Wherein, n water1 is the amount of water vapor in the total amount of gas at the current moment, and RH1 is the humidity in the tank at the current moment;

[0025] Use the following formula to calculate the amount of dry air in the total amount of gas at the current moment based on the total amount of gas at the current moment and the amount of water vapor in the total amount of gas at the current moment:

[0026] n dry1 = n1 - n water1 ; Wherein, n dry1 is the amount of dry air in the total amount of gas at the current moment;

[0027] Use the following formula to calculate the total amount of gas at the previous moment based on the pressure in the tank at the previous moment, the temperature in the tank at the previous moment, and the liquid level in the tank at the previous moment, based on the ideal gas state equation:

[0028] Wherein, P2 is the pressure in the tank at the previous moment, T2 is the temperature in the tank at the previous moment, V2 is the volume in the previous tank, which can be obtained by multiplying the liquid level in the tank at the previous moment by the bottom area of the tank, R is the ideal gas constant, and n2 is the total amount of gas at the previous moment;

[0029] Use the following formula to calculate the amount of water vapor in the total amount of gas at the previous moment based on the temperature in the tank at the previous moment and the humidity in the tank at the previous moment, based on the Antoine equation:

[0030] Wherein, P sat2 is the saturated water vapor pressure at the previous moment temperature;

[0031] Wherein, n water2 is the amount of water vapor in the total amount of gas at the previous moment, and RH2 is the humidity in the tank at the previous moment;

[0032] Use the following formula to calculate the amount of dry air in the total gas volume at the previous moment based on the total gas volume at the previous moment and the amount of water vapor in the total gas volume at the previous moment:

[0033] n dry2 = n2 - n water2 ; where n dry2 is the amount of dry air in the total gas volume at the previous moment.

[0034] Optionally, use the following formula to calculate the hydrogen production amount during the time period between the current moment and the previous moment based on the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment:

[0035] Δ n = n dry1 - n dry2 ; where Δ n is the hydrogen production amount during the time period between the current moment and the previous moment.

[0036] According to another aspect of the present invention, there is provided a hydrogen production amount measuring device, including a sealed cathode and anode liquid storage tank with a one-way intake valve, and a sensor module is arranged in the sealed cathode and anode liquid storage tank.

[0037] Optionally, the sensor module includes a pressure sensor, a temperature sensor, a humidity sensor, and a liquid level sensor;

[0038] The pressure sensor, the temperature sensor, the humidity sensor, and the liquid level sensor are respectively used to obtain the current moment tank pressure, the current moment tank temperature, the current moment tank humidity, the current moment tank liquid level in the sealed cathode and anode liquid storage tank, and the previous moment tank pressure, the previous moment tank temperature, the previous moment tank humidity, the previous moment tank liquid level.

[0039] According to another aspect of the present invention, there is provided an electronic device, and the electronic device includes:

[0040] At least one processor; and

[0041] A memory communicatively connected to the at least one processor; wherein,

[0042] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the hydrogen production amount measurement method according to any embodiment of the present invention.

[0043] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the hydrogen production amount measurement method according to any embodiment of the present invention when executed.

[0044] An embodiment of the present invention provides a method, device, electronic device, and storage medium for measuring the hydrogen production amount. The method includes: obtaining the sensor data at the current moment and the sensor data at the previous moment in the sealed anode and cathode liquid storage tanks; calculating the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment based on the ideal gas state equation and the Antoine equation according to the sensor data at the current moment and the sensor data at the previous moment; calculating the hydrogen generation amount during the time period from the current moment to the previous moment according to the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment. The technical solution provided by the embodiment of the present invention measures the changes in pressure, humidity, volume, and temperature, and finally calculates the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment based on the ideal gas equation and the Antoine equation, which are common formulas in thermodynamics. Since the change in the total gas volume is all due to the change in hydrogen and the air remains unchanged, by subtracting the remaining total gas volume at the current moment from the remaining total gas volume at the previous moment, the hydrogen generation amount during the time period from the current moment to the previous moment can be obtained. The technical solution provided by the embodiment of the present invention can obtain the hydrogen generation amount without setting a hydrogen concentration sensor and without relying on the measurement accuracy of the hydrogen concentration sensor, effectively reducing the cost. The technical solution provided by the embodiment of the present invention solves the problems in the prior art that a hydrogen concentration sensor is placed in the liquid storage tank or pipeline to calculate the amount of hydrogen generated by measuring the hydrogen concentration, which is overly dependent on the accuracy of the sensor, cannot continuously measure in a high-humidity space, and is relatively expensive.

[0045] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained without creative efforts based on these drawings.

[0047] Figure 1 It is a flowchart of a method for measuring the hydrogen production amount provided by an embodiment of the present invention;

[0048] Figure 2Schematic structural diagram of a hydrogen production amount measuring device provided by an embodiment of the present invention;

[0049] Figure 3 Schematic structural diagram of an electronic device for a hydrogen production amount measuring method provided by an embodiment of the present invention. Detailed implementation manners

[0050] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0051] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0052] Figure 1 Flowchart of a hydrogen production amount measuring method provided by an embodiment of the present invention. This embodiment is applicable to measuring hydrogen generated during the charge and discharge process of a flow battery. This method can be executed by a hydrogen production amount measuring device, which can be implemented in the form of hardware and / or software, and the hydrogen production amount measuring device can be configured in any electronic device with communication functions. Figure 2 Schematic structural diagram of a hydrogen production amount measuring device provided by an embodiment of the present invention. Refer to Figure 2 , the device includes a sealed cathode and anode liquid storage tank 1 with a one-way intake valve. A sensor module is arranged in the sealed cathode and anode liquid storage tank 1. The sensor module includes a pressure sensor 21, a temperature sensor 22, a humidity sensor 23, and a liquid level sensor 24. A hydrogen discharge pipeline 3 is arranged on the sealed cathode and anode liquid storage tank 1, and a hydrogen discharge switch 4 and a hydrogen discharge fan 5 are arranged on the hydrogen discharge pipeline 3. Refer to Figure 1 and Figure 2 , the method includes:

[0053] S110. Obtain the sensor data at the current moment and the sensor data at the previous moment inside the sealed cathode and anode liquid storage tank.

[0054] Among them, the sensor data includes pressure, temperature, humidity, and liquid level.

[0055] Specifically, the pressure sensor, temperature sensor, humidity sensor, and liquid level sensor are used to measure the pressure inside the tank, the temperature inside the tank, the humidity inside the tank, and the liquid level inside the tank at the current moment of the sealed cathode and anode liquid storage tank respectively, so as to obtain the sensor data at the current moment and the sensor data at the previous moment inside the sealed cathode and anode liquid storage tank.

[0056] S120. Based on the sensor data at the current moment and the sensor data at the previous moment, and based on the ideal gas state equation and Antoine equation, calculate the amount of dry air in the total gas at the current moment and the amount of dry air in the total gas at the previous moment.

[0057] Specifically, first, based on the sensor data at the current moment and the ideal gas state equation, calculate the amount of substance of the air layer at the current moment. Based on the sensor data at the current moment and the Antoine equation, calculate the content of water vapor in the air layer at the current moment. Subtract the content of water vapor in the air layer at the current moment from the amount of substance of the air layer at the current moment to obtain the amount of dry air in the total gas at the current moment; similarly, based on the sensor data at the previous moment, and based on the ideal gas state equation and Antoine equation respectively, calculate the amount of dry air in the total gas at the previous moment. The calculation process is the same as that of the remaining total gas at the current moment and will not be elaborated here.

[0058] Exemplarily, based on the pressure inside the tank, the temperature inside the tank, and the liquid level inside the tank at the current moment, and based on the ideal gas state equation, calculate the amount of substance of the air layer at the current moment; based on the temperature inside the tank and the humidity inside the tank at the current moment, and based on the Antoine equation, calculate the content of water vapor in the air layer at the current moment; subtract the content of water vapor in the air layer at the current moment from the amount of substance of the air layer at the current moment to obtain the amount of dry air in the total gas at the current moment; similarly, based on the sensor data at the previous moment, and based on the ideal gas state equation and Antoine equation respectively, calculate the amount of dry air in the total gas at the previous moment. The calculation process is the same as that of the remaining total gas at the current moment and will not be elaborated here.

[0059] S130. Calculate the hydrogen generation amount during the time period from the current moment to the previous moment based on the amount of dry air in the total gas at the current moment and the amount of dry air in the total gas at the previous moment.

[0060] Specifically, since the change in the total gas volume is solely due to the change in hydrogen and the air remains unchanged, subtracting the total remaining gas volume at the current moment from that at the previous moment can yield the hydrogen generation amount during the time period between the current moment and the previous moment.

[0061] The technical solution provided by the embodiments of the present invention measures the changes in pressure, humidity, volume, and temperature. Based on the ideal gas equation and Antoine equation, which are commonly used in thermodynamics, the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment are finally calculated. Since the change in the total gas volume is solely due to the change in hydrogen and the air remains unchanged, subtracting the total remaining gas volume at the current moment from that at the previous moment can yield the hydrogen generation amount during the time period between the current moment and the previous moment. The technical solution provided by the embodiments of the present invention can obtain the hydrogen generation amount without setting a hydrogen concentration sensor and without relying on the measurement accuracy of the hydrogen concentration sensor, effectively reducing the cost. The technical solution provided by the embodiments of the present invention solves the problems in the prior art, where a hydrogen concentration sensor is placed in the liquid storage tank or pipeline, and the amount of hydrogen generated is calculated by measuring the hydrogen concentration. There are problems such as excessive reliance on the accuracy of the sensor, inability to continuously measure in a high-humidity space, and high price.

[0062] In some other embodiments, optionally, step S110 specifically includes:

[0063] Obtain the pressure inside the sealed anode and cathode liquid storage tank at the current moment, the temperature inside the tank at the current moment, the humidity inside the tank at the current moment, the liquid level inside the tank at the current moment, as well as the pressure inside the tank at the previous moment, the temperature inside the tank at the previous moment, the humidity inside the tank at the previous moment, and the liquid level inside the tank at the previous moment.

[0064] Specifically, the pressure sensor, temperature sensor, humidity sensor, and liquid level sensor are used to measure the pressure inside the sealed anode and cathode liquid storage tank at the current moment, the temperature inside the tank at the current moment, the humidity inside the tank at the current moment, and the liquid level inside the tank at the current moment, as well as the pressure inside the tank at the previous moment, the temperature inside the tank at the previous moment, the humidity inside the tank at the previous moment, and the liquid level inside the tank at the previous moment.

[0065] The specific measurement process is as follows;

[0066] ① Turn on the external circulation of the system loop, that is, the connection between the outside of the liquid storage tank and the inlet and outlet of the stack needs to be connected to the stack to make the entire measurement system operate normally. After the system circulation is stable, close the hydrogen discharge switch to make the system in a sealed state, and record the initial parameters of each sensor inside the tank; since the system has just been disconnected from the external atmospheric environment, the initial pressure inside the tank is the atmospheric pressure, and charging and discharging have not started, and the internal hydrogen concentration is 0; the entire measurement system includes the measurement device and the flow battery system outside the measurement device.

[0067] ②Start charging. During the charging process, store the data of each sensor until the charging is completed, and record the current data. Among them, the charging power can be set according to the measurement requirements.

[0068] ③If during the charging process, the pressure in the tank reaches the preset safety pressure threshold of 103 kPa, stop the system charging, but keep the system electrolyte circulating, open the hydrogen discharge switch and the hydrogen discharge fan, and run for 5 minutes or longer to ensure that all the hydrogen in the tank is discharged. Then close the hydrogen discharge switch and the hydrogen discharge fan, and continue charging until the end, ensuring that the data recording is complete throughout the process.

[0069] ④After the charging is completed, open the hydrogen discharge switch and the hydrogen discharge fan, and run for 5 minutes or longer to discharge the hydrogen in the tank to ensure that there is no hydrogen residue.

[0070] ⑤Start the measurement during the discharging process, repeat the above steps ② to ④, and the measurement process is the same as the charging measurement process, which will not be elaborated here.

[0071] Since the safety upper limit of the hydrogen concentration is 40,000 ppm, that is, 4% of the volume fraction. Assuming that before the start of the measurement, the pressure in the tank is 100 kPa and the hydrogen concentration is 0, and the temperature and humidity remain unchanged during the operation, and the volume of the air layer in the tank remains unchanged. According to the ideal gas equation, when the hydrogen concentration is 4%, the pressure in the sealed tank at this moment is about 104.16 kPa. Therefore, during the equivalent measurement, before the pressure in the tank rises to this value, the hydrogen discharge switch and the hydrogen discharge fan need to be opened to ensure the safety of the system. To further ensure safety, the current set safety pressure threshold is 103 kPa.

[0072] In some other embodiments, optionally, step S120 specifically includes:

[0073] Calculate the total amount of gas at the current moment based on the ideal gas state equation according to the pressure in the tank, the temperature in the tank, and the liquid level in the tank at the current moment.

[0074] Specifically, use the following formula to calculate the total amount of gas at the current moment based on the ideal gas state equation according to the pressure in the tank, the temperature in the tank, and the liquid level in the tank at the current moment:

[0075] In the formula, P1 is the pressure in the tank at the current moment, T1 is the temperature in the tank at the current moment, V1 is the current volume in the tank, which can be obtained by multiplying the liquid level in the tank at the current moment by the bottom area of the tank, R is the ideal gas constant, and n1 is the total amount of gas at the current moment.

[0076] Calculate the amount of water vapor in the total amount of gas at the current moment based on the Antoine equation according to the temperature in the tank and the humidity in the tank at the current moment.

[0077] Specifically, the following formula is used to calculate the amount of water vapor in the total gas at the current moment based on the Antoine equation according to the temperature and humidity in the tank at the current moment:

[0078] In the formula, P sat1 is the saturated water vapor pressure at the temperature at the current moment;

[0079] In the formula, n water1 is the amount of water vapor in the total gas at the current moment, and RH1 is the humidity in the tank at the current moment.

[0080] Calculate the amount of dry air in the total gas at the current moment based on the total gas amount at the current moment and the amount of water vapor in the total gas at the current moment.

[0081] Specifically, the following formula is used to calculate the amount of dry air in the total gas at the current moment based on the total gas amount at the current moment and the amount of water vapor in the total gas at the current moment:

[0082] n dry1 = n1 - n water1 ; In the formula, n dry1 is the amount of dry air in the total gas at the current moment.

[0083] Calculate the total gas amount at the previous moment based on the pressure in the tank, the temperature in the tank, and the liquid level in the tank at the previous moment, based on the ideal gas state equation.

[0084] Specifically, the following formula is used to calculate the total gas amount at the previous moment based on the pressure in the tank, the temperature in the tank, and the liquid level in the tank at the previous moment, based on the ideal gas state equation:

[0085] In the formula, P2 is the pressure in the tank at the previous moment, T2 is the temperature in the tank at the previous moment, V2 is the volume in the previous tank, which can be obtained by multiplying the liquid level in the tank at the previous moment by the bottom area of the tank, R is the ideal gas constant, and n2 is the total gas amount at the previous moment.

[0086] Calculate the amount of water vapor in the total gas at the previous moment based on the temperature in the tank and the humidity in the tank at the previous moment, based on the Antoine equation.

[0087] Specifically, the following formula is used to calculate the amount of water vapor in the total gas at the previous moment based on the temperature in the tank and the humidity in the tank at the previous moment, based on the Antoine equation:

[0088] In the formula, P sat2 is the saturated water vapor pressure at the temperature at the previous moment;

[0089] In the formula, n water2 is the amount of water vapor in the total gas volume at the previous moment, and RH2 is the humidity in the tank at the previous moment.

[0090] Calculate the amount of dry air in the total gas volume at the previous moment based on the total gas volume at the previous moment and the amount of water vapor in the total gas volume at the previous moment.

[0091] Specifically, the following formula is used to calculate the amount of dry air in the total gas volume at the previous moment based on the total gas volume at the previous moment and the amount of water vapor in the total gas volume at the previous moment:

[0092] n dry2 = n2 - n water2 ; In the formula, n dry2 is the amount of dry air in the total gas volume at the previous moment.

[0093] In some other embodiments, optionally, step S130 specifically includes:

[0094] Calculate the difference between the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment, and determine the difference as the hydrogen generation amount during the time period from the current moment to the previous moment.

[0095] Specifically, the following formula is used to calculate the hydrogen generation amount during the time period from the current moment to the previous moment based on the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment:

[0096] Δ n = n dry1 - n dry2 ; In the formula, Δ n is the hydrogen generation amount during the time period from the current moment to the previous moment.

[0097] The technical solution provided by the embodiments of the present invention measures the changes in pressure, humidity, volume, and temperature, and finally calculates the amount of dry air in the total gas volume at the current moment and the amount of dry air in the total gas volume at the previous moment based on the ideal gas equation and Antoine equation, which are commonly used in thermodynamics. Since the change in the total gas volume is due to the change in hydrogen and the air remains unchanged, subtracting the remaining total gas volume at the previous moment from the remaining total gas volume at the current moment can obtain the hydrogen generation amount during the time period from the current moment to the previous moment. The technical solution provided by the embodiments of the present invention does not require a hydrogen concentration sensor and does not depend on the measurement accuracy of the hydrogen concentration sensor, achieving accurate determination of the hydrogen production amount of the flow battery during charge and discharge without using a hydrogen concentration sensor, effectively reducing the cost.

[0098] Continue to refer to Figure 2 , Figure 2A hydrogen production amount measuring device provided by an embodiment of the present invention is shown in Figure 2 , the device includes a sealed cathode and anode liquid storage tank 1 with a one-way intake valve, a sensor module is arranged in the sealed cathode and anode liquid storage tank, a hydrogen discharge pipeline 3 is arranged on the sealed cathode and anode liquid storage tank 1, and a hydrogen discharge switch 4 and a hydrogen discharge fan 5 are arranged on the hydrogen discharge pipeline 3.

[0099] Optionally, the sensor module includes a pressure sensor 21, a temperature sensor 22, a humidity sensor 23, and a liquid level sensor 24.

[0100] The pressure sensor, temperature sensor, humidity sensor, and liquid level sensor are respectively used to obtain the current moment tank pressure, current moment tank temperature, current moment tank humidity, current moment tank liquid level in the sealed cathode and anode liquid storage tank, and the previous moment tank pressure, previous moment tank temperature, previous moment tank humidity, previous moment tank liquid level.

[0101] The hydrogen production amount measuring device provided by the embodiment of the present invention can execute the hydrogen production amount measuring method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

[0102] Figure 3 A schematic structural diagram of an electronic device for a hydrogen production amount measuring method provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0103] As Figure 3 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by at least one processor. The processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12, and RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0104] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0105] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for measuring hydrogen production.

[0106] In some embodiments, the method for measuring hydrogen production can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for measuring hydrogen production described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for measuring hydrogen production in any other suitable manner (e.g., by means of firmware).

[0107] The various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] A computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0109] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0111] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0112] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0113] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.

[0114] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for measuring hydrogen production, characterized in that, A measuring device for hydrogen production quantity, the device includes a sealed cathode and anode liquid storage tank with a one-way intake valve, and a sensor module is arranged in the sealed cathode and anode liquid storage tank; the method includes: Obtain the sensor data at the current moment and the sensor data at the previous moment in the sealed cathode and anode liquid storage tank; Based on the ideal gas state equation and Antoine equation, calculate the amount of dry air in the total gas at the current moment and the amount of dry air in the total gas at the previous moment according to the sensor data at the current moment and the sensor data at the previous moment; Calculate the hydrogen production quantity in the time period between the current moment and the previous moment according to the amount of dry air in the total gas at the current moment and the amount of dry air in the total gas at the previous moment.

2. The method according to claim 1, wherein The obtaining the sensor data at the current moment and the sensor data at the previous moment in the sealed cathode and anode liquid storage tank includes: Obtain the pressure in the tank at the current moment, the temperature in the tank at the current moment, the humidity in the tank at the current moment, the liquid level in the tank at the current moment, and the pressure in the tank at the previous moment, the temperature in the tank at the previous moment, the humidity in the tank at the previous moment, and the liquid level in the tank at the previous moment of the sealed cathode and anode liquid storage tank.

3. The method according to claim 2, wherein Based on the ideal gas state equation and Antoine equation, calculate the amount of dry air in the gas at the current moment and the amount of dry air in the gas at the previous moment according to the sensor data at the current moment and the sensor data at the previous moment includes: Based on the ideal gas state equation, calculate the total gas amount at the current moment according to the pressure in the tank at the current moment, the temperature in the tank at the current moment, and the liquid level in the tank at the current moment; Based on the Antoine equation, calculate the amount of water vapor in the total gas amount at the current moment according to the temperature in the tank at the current moment and the humidity in the tank at the current moment; Calculate the amount of dry air in the total gas amount at the current moment according to the total gas amount at the current moment and the amount of water vapor in the total gas amount at the current moment; Based on the ideal gas state equation, calculate the total gas amount at the previous moment according to the pressure in the tank at the previous moment, the temperature in the tank at the previous moment, and the liquid level in the tank at the previous moment; Based on the Antoine equation, calculate the amount of water vapor in the total gas amount at the previous moment according to the temperature in the tank at the previous moment and the humidity in the tank at the previous moment; Calculate the amount of dry air in the total gas amount at the previous moment according to the total gas amount at the previous moment and the amount of water vapor in the total gas amount at the previous moment.

4. The method according to claim 1, wherein The calculating the hydrogen production quantity in the time period between the current moment and the previous moment according to the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment includes: Calculate the difference between the amount of dry air in the total gas amount at the current moment and the amount of dry air in the total gas amount at the previous moment, and determine the difference as the hydrogen production quantity in the time period between the current moment and the previous moment.

5. The method according to claim 3, characterized in that, Includes: Use the following formula to calculate the total gas amount at the current moment based on the ideal gas state equation according to the pressure in the tank at the current moment, the temperature in the tank at the current moment, and the liquid level in the tank at the current moment: Wherein, P1 is the pressure in the tank at the current moment, T1 is the temperature in the tank at the current moment, V1 is the volume in the current tank, which can be obtained by multiplying the liquid level in the tank at the current moment by the bottom area of the tank, R is the ideal gas constant, and n1 is the total amount of gas at the current moment; Use the following formula to calculate the amount of water vapor in the total gas amount at the current moment based on the Antoine equation according to the temperature in the tank at the current moment and the humidity in the tank at the current moment: Wherein, P sat1 is the saturated water vapor pressure at the temperature of the current moment; where n water1 is the amount of water vapor in the total gas at the current moment, and RH1 is the humidity in the tank at the current moment; Use the following formula to calculate the amount of dry air in the total gas at the current moment based on the total gas amount at the current moment and the amount of water vapor in the total gas at the current moment: n dry1 = n1 - n water1 ; where n dry1 is the amount of dry air in the total gas volume at the current moment; Use the following formula to calculate the total gas amount at the previous moment based on the pressure in the tank at the previous moment, the temperature in the tank at the previous moment, and the liquid level in the tank at the previous moment, based on the ideal gas state equation: Wherein, P2 is the pressure in the tank at the previous moment, T2 is the temperature in the tank at the previous moment, V2 is the volume in the previous tank, which can be obtained by multiplying the liquid level in the tank at the previous moment by the bottom area of the tank, R is the ideal gas constant, and n2 is the total amount of gas at the previous moment; Use the following formula to calculate the amount of water vapor in the total gas at the previous moment based on the temperature in the tank at the previous moment and the humidity in the tank at the previous moment, based on the Antoine equation: where P sat2 is the saturated water vapor pressure at the temperature of the previous moment; Where n water2 is the amount of water vapor in the total gas volume at the previous moment, and RH2 is the humidity inside the tank at the previous moment; Use the following formula to calculate the amount of dry air in the total gas at the previous moment based on the total gas amount at the previous moment and the amount of water vapor in the total gas at the previous moment: n dry2 = n2 - n water2 ; where n dry2 is the amount of dry air in the total gas volume at the previous moment.

6. The method according to claim 4, characterized in that It includes: Use the following formula to calculate the hydrogen production amount during the time period between the current moment and the previous moment based on the amount of dry air in the total gas at the current moment and the amount of dry air in the total gas at the previous moment: Δ n = n dry1 -n dry2 ; where Δ n is the hydrogen production amount in the time period between the current moment and the previous moment.

7. A measuring device for hydrogen production amount, characterized in that, It includes a sealed cathode and anode liquid storage tank with a one-way intake valve, and a sensor module is arranged in the sealed cathode and anode liquid storage tank.

8. The device according to claim 7, characterized in that, The sensor module includes a pressure sensor, a temperature sensor, a humidity sensor, and a liquid level sensor; The pressure sensor, the temperature sensor, the humidity sensor, and the liquid level sensor are respectively used to obtain the pressure in the tank at the current moment, the temperature in the tank at the current moment, the humidity in the tank at the current moment, the liquid level in the tank at the current moment, and the pressure in the tank at the previous moment, the temperature in the tank at the previous moment, the humidity in the tank at the previous moment, and the liquid level in the tank at the previous moment of the sealed cathode and anode liquid storage tank.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the hydrogen production amount measurement method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the hydrogen production amount measurement method according to any one of claims 1-6 when executed by a processor.