Gas consumption measuring method, device and equipment and readable storage medium
By correcting the time integral and compression factor of the gas flow on the main pipeline and branch pipeline, the problem of inaccurate calculation of gas consumption when the gas source is supplied at the same time is solved, and the accurate measurement of consumption of each gas-using equipment is achieved.
Patent Information
- Application Number
- CN202510256812.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, when the gas source supplies gas to multiple gas-using equipment at the same time, it is impossible to accurately calculate the gas consumption of each gas-using equipment.
By integrating the gas flow on the main pipeline and branch pipeline time, the total consumption volume and sub-consumption volume are calculated, and the parameters such as compression factor and gas constant are used to correct and split to obtain the gas consumption of each gas-using equipment.
When the gas source supplies gas to multiple gas-using equipment at the same time, the gas consumption of each gas-using equipment can be accurately calculated, which improves the accuracy of the calculation.
Smart Images

Figure CN120252889A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of gas measurement, and particularly to a gas consumption measurement method, device, equipment and readable storage medium. Background Art
[0002] In some application scenarios, accurately measuring the consumption of gases such as hydrogen is of crucial significance for optimizing the production process, controlling costs, improving energy utilization efficiency, and ensuring the safe and stable operation of the system.
[0003] In the prior art, a gas flowmeter is set on the inlet pipeline of the gas-using equipment to sample the gas flow, and the time integral of the gas flow sampling values within a statistical period is calculated to obtain the gas volume consumed by the gas-using equipment within the statistical period. It is found in practical applications that the above method can calculate the gas volume consumed by the gas-using equipment more accurately when the gas source supplies gas to a single gas-using equipment. When the gas source supplies gas to multiple gas-using equipment simultaneously, the calculation accuracy of the gas volume consumed by each gas-using equipment is relatively low. Summary of the Invention
[0004] The present application provides a gas consumption measurement method, device, equipment and readable storage medium, which can solve the technical problem of relatively low calculation accuracy when the gas source supplies gas to multiple gas-using equipment simultaneously in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a gas consumption measurement method, and the gas consumption measurement method includes:
[0006] Calculating the time integral of the gas flow sampling values on the main pipeline within a statistical period to obtain the first total consumption volume;
[0007] Calculating the time integral of the gas flow sampling values on each branch pipeline within a statistical period to obtain the sub-consumption volume of each branch pipeline, and summing the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume, where the inlet of the main pipeline is connected to the outlet of the gas source, the outlet is connected to the inlets of multiple branch pipelines, and the outlet of each branch pipeline is connected to the inlet of a gas-using equipment;
[0008] Dividing the first total consumption volume by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using equipment within the statistical period.
[0009] Further, in an embodiment, the gas consumption measurement method further includes:
[0010] Determine the first compressibility factor based on the first pressure and the first temperature, and determine the second compressibility factor based on the second pressure and the second temperature, where the first pressure and the first temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the start moment of the statistical period at the gas source outlet, and the second pressure and the second temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the end moment of the statistical period at the gas source outlet;
[0011] Calculate the total consumed mass based on the gas source volume, the gas constant, the molar mass of the gas, the first temperature, the first pressure, the first compressibility factor, the second temperature, the second pressure, and the second compressibility factor;
[0012] Divide the total consumed mass by the second total consumed volume and multiply by the sub-consumed volume of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0013] Further, in one embodiment, the steps of determining the first compressibility factor based on the first pressure and the first temperature and determining the second compressibility factor based on the second pressure and the second temperature include:
[0014] Substitute the first pressure and the first temperature into the gas compressibility factor lookup table for interpolation calculation to obtain the first compressibility factor, and substitute the second pressure and the second temperature into the gas compressibility factor lookup table for interpolation calculation to obtain the second compressibility factor, where the input quantity of the gas compressibility factor lookup table is the gas pressure and the gas volume, and the output quantity is the compressibility factor.
[0015] Further, in one embodiment, the steps of calculating the total consumed mass based on the gas source volume, the gas constant, the molar mass of the gas, the first temperature, the first pressure, the first compressibility factor, the second temperature, the second pressure, and the second compressibility factor include:
[0016] Calculate the total consumed mass according to a preset formula, and the preset formula is:
[0017]
[0018] where, m z is the total consumed mass, V is the gas source volume, M is the molar mass of the gas, R is the gas constant, P1 is the first pressure, T1 is the first temperature, Z1 is the first compressibility factor, P2 is the second pressure, T2 is the second temperature, and Z2 is the second compressibility factor.
[0019] Further, in one embodiment, after the step of summing the sub-consumed volumes of all branch pipelines to obtain the second total consumed volume, it further includes:
[0020] Divide the sub-consumed volume of each branch pipeline by the second total consumed volume to obtain the weight coefficient of each branch pipeline;
[0021] The step of dividing the first total consumption volume by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period includes:
[0022] Multiplying the first total consumption volume by the weight coefficient of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period;
[0023] The step of dividing the total consumption mass by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period includes:
[0024] Multiplying the total consumption mass by the weight coefficient of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0025] Further, in one embodiment, the sampling operations of the gas flow rates on the main pipeline and each branch pipeline are synchronized.
[0026] Further, in one embodiment, the brands and models of the gas flow rate sampling devices on the main pipeline and each branch pipeline are the same, and they are both arranged near the air inlet of the gas-using device.
[0027] In a second aspect, an embodiment of the present application further provides a gas consumption measurement device, and the gas consumption measurement device includes:
[0028] A main pipeline measurement module, configured to calculate the time integral of the gas flow rate sampling value on the main pipeline during the statistical period to obtain the first total consumption volume;
[0029] A branch pipeline measurement module, configured to calculate the time integral of the gas flow rate sampling value on each branch pipeline during the statistical period to obtain the sub-consumption volume of each branch pipeline, and sum the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume, wherein the air inlet of the main pipeline is connected to the gas source outlet, the air outlet is connected to the air inlets of multiple branch pipelines, and the air outlet of each branch pipeline is connected to the air inlet of a gas-using device;
[0030] A volume output module, configured to divide the first total consumption volume by the second total consumption volume and multiply by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period.
[0031] In a third aspect, an embodiment of the present application further provides a gas consumption measurement device, and the gas consumption measurement device includes a processor, a memory, and a gas consumption measurement program stored on the memory and executable by the processor. When the gas consumption measurement program is executed by the processor, the steps of the above gas consumption measurement method are implemented.
[0032] Fourthly, an embodiment of the present application further provides a readable storage medium, on which a gas consumption measurement program is stored. When the gas consumption measurement program is executed by a processor, the steps of the above gas consumption measurement method are implemented.
[0033] In the present application, the time integral of the gas flow sampling value on the main pipeline within a statistical period is calculated to obtain the first total consumption volume; the time integral of the gas flow sampling value on each branch pipeline within the statistical period is calculated to obtain the sub-consumption volume of each branch pipeline, and the sub-consumption volumes of all branch pipelines are summed to obtain the second total consumption volume. Wherein, the inlet of the main pipeline is connected to the outlet of the gas source, the outlet is connected to the inlets of multiple branch pipelines, and the outlet of each branch pipeline is connected to the inlet of a gas-using device; the first total consumption volume is divided by the second total consumption volume and then multiplied by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device within the statistical period. Through the present application, when the gas source supplies gas to multiple gas-using devices simultaneously, the gas volume consumed by each gas-using device can be accurately calculated. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic flow chart of the gas consumption measurement method in an embodiment of the present application;
[0035] Figure 2 is a schematic principle diagram of the gas consumption measurement method in an embodiment of the present application;
[0036] Figure 3 is for another embodiment of the present application relative to Figure 1 a schematic flow chart of the newly added steps;
[0037] Figure 4 is a schematic diagram of the functional modules of the gas consumption measurement device in an embodiment of the present application;
[0038] Figure 5 is a schematic diagram of the hardware structure of the gas consumption measurement device involved in the solution of the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0040] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0041] In a first aspect, an embodiment of the present application provides a method for measuring gas consumption.
[0042] Figure 1 The flowchart of the gas consumption measurement method in an embodiment of the present application is shown. Figure 2 The schematic diagram of the principle of the gas consumption measurement method in an embodiment of the present application is shown.
[0043] Referring to Figure 1 and Figure 2 , in one embodiment, the gas consumption measurement method includes the following steps:
[0044] S1. Calculate the time integral of the gas flow sampling value on the main pipeline within the statistical period to obtain the first total consumption volume.
[0045] Specifically, a gas flowmeter is set on the main pipeline to obtain the gas flow sampling value on the main pipeline.
[0046] Exemplarily, the statistical period is represented as a time interval [a, b], the gas flow sampling value on the main pipeline at time t is represented as F z (t), and the first total consumption volume is represented as V z1 ,
[0047] S2. Calculate the time integral of the gas flow sampling value on each branch pipeline within the statistical period to obtain the sub-consumption volume of each branch pipeline, and sum the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume. Among them, the inlet of the main pipeline is connected to the outlet of the gas source, the outlet is connected to the inlets of multiple branch pipelines, and the outlet of each branch pipeline is connected to the inlet of a gas-using device.
[0048] Specifically, a gas flowmeter is set on each branch pipeline to obtain the gas flow sampling value on each branch pipeline.
[0049] Exemplarily, the gas flow sampling value on branch pipeline i (i = 1, 2, 3,..., n) at time t is represented as F i (t), the sub-consumption volume of branch pipeline i is represented as V i , The second total consumption volume is represented as V z2 ,
[0050] Optionally, the gas can be hydrogen, oxygen, ammonia, etc. When the gas is hydrogen, the gas-using device can be a hydrogen fuel cell.
[0051] S3. Divide the first total consumption volume by the second total consumption volume and multiply by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device within the statistical period.
[0052] Exemplarily, the gas volume consumed by the gas-using device i within the statistical period is expressed as
[0053] The study found that when the gas source supplies gas to multiple gas-using devices simultaneously, affected by factors such as gas flow interference and system pressure fluctuations, there will be a large deviation between the sampled value and the actual value of the gas flow rate in each branch pipeline. If the scheme of the existing technology is adopted and the sub-consumption volume of the branch pipeline is directly used as the gas volume consumed by the gas-using device within the statistical period, the calculation accuracy will be low.
[0054] In this embodiment, the first total consumption volume is obtained by calculating the time integral of the sampled value of the gas flow rate on the main pipeline, and the second total consumption volume is obtained by calculating the time integral of the sampled values of the gas flow rates on all branch pipelines and summing them. Due to the absence of error accumulation, the first total consumption volume is closer to the sum of the gas volumes consumed by all gas-using devices within the statistical period than the second total consumption volume.
[0055] The following explains from two perspectives why the calculation operation of "dividing the first total consumption volume by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline" can improve the result accuracy.
[0056] Explained from one perspective, taking the ratio of the first total consumption volume to the second total consumption volume as the correction coefficient, and taking the product of the sub-consumption volume of each branch pipeline and the correction coefficient as the gas volume consumed by each gas-using device within the statistical period, the accuracy is improved because the result is obtained after the sub-consumption volume is corrected.
[0057] Explained from another perspective, taking the ratio of the sub-consumption volume of each branch pipeline to the first total consumption volume as the weight coefficient of each branch pipeline, representing the proportion of the gas consumption of each branch pipeline in the total consumption, and taking the product of the first total consumption volume and the weight coefficient of each branch pipeline as the gas volume consumed by each gas-using device within the statistical period, the accuracy is improved because the result is obtained by splitting based on the first total consumption volume with higher accuracy.
[0058] Accordingly, in this embodiment, the time integral of the gas flow rate sampling value on the main pipeline within the statistical period is calculated to obtain the first total consumption volume; the time integral of the gas flow rate sampling value on each branch pipeline within the statistical period is calculated to obtain the sub-consumption volume of each branch pipeline, and the sub-consumption volumes of all branch pipelines are summed to obtain the second total consumption volume. Here, the inlet of the main pipeline is connected to the outlet of the gas source, the outlet is connected to the inlets of multiple branch pipelines, and the outlet of each branch pipeline is connected to the inlet of a gas-using device; the sub-consumption volume of each branch pipeline is obtained by dividing the first total consumption volume by the second total consumption volume and then multiplying by the sub-consumption volume of each branch pipeline, which is the gas volume consumed by each gas-using device within the statistical period. Through this embodiment, when the gas source supplies gas to multiple gas-using devices simultaneously, the gas volume consumed by each gas-using device can be accurately calculated.
[0059] Figure 3 shows a schematic flow chart of another embodiment of the present application relative to Figure 1 the newly added steps.
[0060] Furthermore, in one embodiment, referring to Figure 3 , the gas consumption measurement method further includes:
[0061] S4. Determine the first compression factor according to the first pressure and the first temperature, and determine the second compression factor according to the second pressure and the second temperature, where the first pressure and the first temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the start moment of the statistical period at the outlet of the gas source, and the second pressure and the second temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the end moment of the statistical period at the outlet of the gas source.
[0062] Specifically, a pressure sensor and a temperature sensor are arranged at the outlet of the gas source (such as a gas cylinder, a tube trailer) to obtain the gas pressure sampling value and the gas temperature sampling value at the outlet of the gas source.
[0063] S5. Calculate the total consumption mass according to the gas source volume, the gas constant, the molar mass of the gas, the first temperature, the first pressure, the first compression factor, the second temperature, the second pressure, and the second compression factor.
[0064] Exemplarily, the step of calculating the total consumption mass according to the gas source volume, the gas constant, the molar mass of the gas, the first temperature, the first pressure, the first compression factor, the second temperature, the second pressure, and the second compression factor includes:
[0065] Calculate the total consumption mass according to a preset formula, and the preset formula is:
[0066]
[0067] where m zLet \(m\) be the total consumed mass, \(V\) be the gas source volume, \(M\) be the molar mass of the gas, \(R\) be the gas constant, \(P_1\) be the first pressure, \(T_1\) be the first temperature, \(Z_1\) be the first compressibility factor, \(P_2\) be the second pressure, \(T_2\) be the second temperature, and \(Z_2\) be the second compressibility factor.
[0068] S6. Divide the total consumed mass by the second total consumed volume and then multiply by the sub-consumed volume of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0069] In this embodiment, by means of the second total consumed volume and the sub-consumed volume, the total consumed mass is split into the gas mass consumed by each gas-using device during the statistical period, thereby providing richer measurement results.
[0070] Further, in one embodiment, the step of determining the first compressibility factor according to the first pressure and the first temperature and determining the second compressibility factor according to the second pressure and the second temperature includes:
[0071] Substitute the first pressure and the first temperature into the gas compressibility factor lookup table for interpolation calculation to obtain the first compressibility factor, and substitute the second pressure and the second temperature into the gas compressibility factor lookup table for interpolation calculation to obtain the second compressibility factor. Wherein, the input quantities of the gas compressibility factor lookup table are gas pressure and gas volume, and the output quantity is the compressibility factor.
[0072] In this embodiment, the compressibility factor is determined by means of table lookup and interpolation, thereby simplifying the calculation.
[0073] Of course, in other embodiments, the compressibility factor can also be determined by theoretical formulas, which is more accurate but more complex in calculation.
[0074] Further, in one embodiment, after the step of summing the sub-consumed volumes of all branch pipelines to obtain the second total consumed volume, the following steps are also included:
[0075] Divide the sub-consumed volume of each branch pipeline by the second total consumed volume to obtain the weight coefficient of each branch pipeline;
[0076] The step of dividing the first total consumed volume by the second total consumed volume and then multiplying by the sub-consumed volume of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period includes:
[0077] Multiply the first total consumed volume by the weight coefficient of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period;
[0078] The step of dividing the total consumed mass by the second total consumed volume and then multiplying by the sub-consumed volume of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period includes:
[0079] Multiply the total consumption mass by the weight coefficient of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0080] In this embodiment, first calculate the weight coefficient of each branch pipeline, and then multiply the weight coefficient of each branch pipeline by the first total consumption volume and the total consumption mass respectively to obtain the gas volume and gas mass consumed by each gas-using device during the statistical period, thereby simplifying the calculation.
[0081] Furthermore, in one embodiment, the sampling operations of the gas flow rates on the main pipeline and each branch pipeline are synchronized. In this way, the integration calculation time period is unified, avoiding calculation errors caused by inconsistent integration calculations and flow rate changes.
[0082] Exemplarily, the sampling frequencies of the gas flow rates on the main pipeline and each branch pipeline are equal, and the sampling starts simultaneously.
[0083] Exemplarily, the sampling frequency is 10 times per second.
[0084] Furthermore, in one embodiment, the brands and models of the gas flow rate sampling devices on the main pipeline and each branch pipeline are the same, and they are all arranged near the air inlet of the gas-using device. In this way, calculation errors caused by different measurement accuracies and different environmental conditions are avoided.
[0085] In a second aspect, an embodiment of the present application further provides a gas consumption measurement device.
[0086] Figure 4 The functional module schematic diagram of the gas consumption measurement device in one embodiment of the present application is shown.
[0087] Refer to Figure 4 , in one embodiment, the gas consumption measurement device includes:
[0088] The main pipeline measurement module 10 is used to calculate the time integral of the gas flow rate sampling value on the main pipeline during the statistical period to obtain the first total consumption volume;
[0089] The branch pipeline measurement module 20 is used to calculate the time integral of the gas flow rate sampling value on each branch pipeline during the statistical period to obtain the sub-consumption volume of each branch pipeline, and sum the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume. Among them, the air inlet of the main pipeline is connected to the gas source outlet, the air outlet is connected to the air inlets of multiple branch pipelines, and the air outlet of each branch pipeline is connected to the air inlet of a gas-using device;
[0090] The volume output module 30 is used to divide the first total consumption volume by the second total consumption volume and multiply by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period.
[0091] Further, in one embodiment, the gas consumption measurement device further includes:
[0092] A gas source measurement module 40, configured to determine a first compression factor according to a first pressure and a first temperature, determine a second compression factor according to a second pressure and a second temperature, and calculate a total consumed mass based on the gas source volume, the gas constant, the molar mass of the gas, the first temperature, the first pressure, the first compression factor, the second temperature, the second pressure, and the second compression factor, where the first pressure and the first temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the start time of the statistical period at the gas source outlet, and the second pressure and the second temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the end time of the statistical period at the gas source outlet;
[0093] A mass output module 50, configured to divide the total consumed mass by the second total consumed volume and multiply by the sub-consumed volume of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0094] Further, in one embodiment, the gas source measurement module 40 is configured to:
[0095] Substitute the first pressure and the first temperature into the gas compression factor lookup table for interpolation calculation to obtain the first compression factor, and substitute the second pressure and the second temperature into the gas compression factor lookup table for interpolation calculation to obtain the second compression factor, where the input of the gas compression factor lookup table is the gas pressure and the gas volume, and the output is the compression factor.
[0096] Further, in one embodiment, the gas source measurement module 40 is configured to:
[0097] Calculate the total consumed mass according to a preset formula, and the preset formula is:
[0098]
[0099] where, m z is the total consumed mass, V is the gas source volume, M is the molar mass of the gas, R is the gas constant, P1 is the first pressure, T1 is the first temperature, Z1 is the first compression factor, P2 is the second pressure, T2 is the second temperature, and Z2 is the second compression factor.
[0100] Further, in one embodiment, the branch pipeline measurement module 20 is further configured to divide the sub-consumed volume of each branch pipeline by the second total consumed volume to obtain the weight coefficient of each branch pipeline;
[0101] A volume output module 30 is configured to multiply the first total consumed volume by the weight coefficient of each branch pipeline to obtain the gas volume consumed by each gas-using device during the statistical period;
[0102] The mass output module 50 is used to multiply the total consumed mass by the weight coefficient of each branch pipeline to obtain the gas mass consumed by each gas-using device during the statistical period.
[0103] Further, in one embodiment, the sampling operations of the gas flow rates on the main pipeline and each branch pipeline are synchronized.
[0104] Further, in one embodiment, the brands and models of the sampling devices for the gas flow rates on the main pipeline and each branch pipeline are the same, and they are both arranged near the air inlet of the gas-using device.
[0105] Among them, the function realization of each module in the above gas consumption measurement device corresponds to each step in the above gas consumption measurement method embodiment, and its function and realization process will not be elaborated here one by one.
[0106] In a third aspect, an embodiment of the present application provides a gas consumption measurement device, and the gas consumption measurement device can be a device with data processing functions such as a personal computer (PC), a laptop, a server, etc.
[0107] Figure 5 The schematic diagram of the hardware structure of the gas consumption measurement device involved in the embodiment solution of the present application is shown.
[0108] Refer to Figure 5 , in the embodiment of the present application, the gas consumption measurement device may include a processor, a memory, a communication interface, and a communication bus.
[0109] Among them, the communication bus can be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0110] The communication interface includes interfaces such as input / output (I / O) interfaces, physical interfaces, and logical interfaces for realizing the interconnection of internal components of the gas consumption measurement device, as well as interfaces for realizing the interconnection of the gas consumption measurement device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display screen (Display), a keyboard (Keyboard), etc.
[0111] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical memory, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0112] The processor can be a general-purpose processor, which can call the gas consumption measurement program stored in the memory and execute the gas consumption measurement method provided by the embodiments of the present application. For example, the general-purpose processor can be a central processing unit (CPU). Among them, the method executed when the gas consumption measurement program is called can refer to the various embodiments of the gas consumption measurement method of the present application, which will not be elaborated here.
[0113] Those skilled in the art can understand that Figure 5 the hardware structure shown in
[0114] In a fourth aspect, the embodiments of the present application further provide a readable storage medium.
[0115] The gas consumption measurement program is stored on the readable storage medium of the present application. When the gas consumption measurement program is executed by a processor, the steps of the gas consumption measurement method as described above are implemented.
[0116] Among them, the method implemented when the gas consumption measurement program is executed can refer to the various embodiments of the gas consumption measurement method of the present application, which will not be elaborated here.
[0117] It should be noted that the serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0118] In the description of the specification, claims and the above-mentioned drawings of this application, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices. The descriptions such as "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit that "first", "second" and "third" are different types.
[0119] In the description of the embodiments of this application, "exemplary", "for example" or "for instance" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary", "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary", "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0120] In the description of the embodiments of this application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B; "and / or" in the text is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "a plurality of" means two or more than two.
[0121] In some processes described in the embodiments of this application, a plurality of operations or steps appear in a specific order. However, it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of this application or may be executed in parallel. The serial numbers of the operations are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0122] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) as described above and includes several instructions for causing a terminal device to execute the methods described in the various embodiments of this application.
[0123] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A gas consumption measurement method, characterized in that, The gas consumption measurement method includes: Calculating the time integral of the gas flow sampling value on the main pipeline within the statistical period to obtain the first total consumption volume; Calculating the time integral of the gas flow sampling value on each branch pipeline within the statistical period to obtain the sub-consumption volume of each branch pipeline, and summing up the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume. Here, the inlet of the main pipeline is connected to the outlet of the gas source, the outlet is connected to the inlets of multiple branch pipelines, and the outlet of each branch pipeline is connected to the inlet of a gas-using device; Dividing the first total consumption volume by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device within the statistical period.
2. The gas consumption measurement method according to claim 1, characterized in that, The gas consumption measurement method further includes: Determining the first compression factor according to the first pressure and the first temperature, and determining the second compression factor according to the second pressure and the second temperature. Here, the first pressure and the first temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the start time of the statistical period at the outlet of the gas source, and the second pressure and the second temperature are respectively the gas pressure sampling value and the gas temperature sampling value at the end time of the statistical period at the outlet of the gas source; Calculating the total consumption mass according to the gas source volume, the gas constant, the gas molar mass, the first temperature, the first pressure, the first compression factor, the second temperature, the second pressure, and the second compression factor; Dividing the total consumption mass by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas mass consumed by each gas-using device within the statistical period.
3. The gas consumption measurement method according to claim 2, characterized in that, The steps of determining the first compression factor according to the first pressure and the first temperature, and determining the second compression factor according to the second pressure and the second temperature include: Substituting the first pressure and the first temperature into the gas compression factor lookup table for interpolation calculation to obtain the first compression factor, and substituting the second pressure and the second temperature into the gas compression factor lookup table for interpolation calculation to obtain the second compression factor. Here, the input quantities of the gas compression factor lookup table are the gas pressure and the gas volume, and the output quantity is the compression factor.
4. The gas consumption measurement method according to claim 2, characterized in that, The steps of calculating the total consumption mass according to the gas source volume, the gas constant, the gas molar mass, the first temperature, the first pressure, the first compression factor, the second temperature, the second pressure, and the second compression factor include: Calculating the total consumption mass according to a preset formula. The preset formula is: where m z is the total consumed mass, V is the gas source volume, M is the molar mass of the gas, R is the gas constant, P1 is the first pressure, T1 is the first temperature, Z1 is the first compression factor, P2 is the second pressure, T2 is the second temperature, and Z2 is the second compression factor.
5. The gas consumption measurement method according to claim 2, characterized in that, After the step of summing up the sub-consumption volumes of all branch pipelines to obtain the second total consumption volume, it further includes: Dividing the sub-consumption volume of each branch pipeline by the second total consumption volume to obtain the weight coefficient of each branch pipeline; The step of dividing the first total consumption volume by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using device within the statistical period includes: Multiplying the first total consumption volume by the weight coefficient of each branch pipeline to obtain the gas volume consumed by each gas-using device within the statistical period; The step of dividing the total consumption mass by the second total consumption volume and multiplying by the sub-consumption volume of each branch pipeline to obtain the gas mass consumed by each gas-using device within the statistical period includes: Multiplying the total consumption mass by the weight coefficient of each branch pipeline to obtain the gas mass consumed by each gas-using device within the statistical period.
6. The gas consumption measurement method according to any one of claims 1 to 5, characterized in that The sampling operations of the gas flow rates on the main pipeline and each branch pipeline are synchronized.
7. The gas consumption measurement method according to any one of claims 1 to 5, characterized in that, The brands and models of the gas flow sampling devices on the main pipeline and each branch pipeline are the same, and they are all arranged near the air inlet of the gas-using equipment.
8. A gas consumption measuring device, characterized in that, The gas consumption measurement device includes: A main pipeline measurement module, configured to calculate the time integral of the gas flow sampling values on the main pipeline within a statistical period to obtain a first total consumption volume; A branch pipeline measurement module, configured to calculate the time integral of the gas flow sampling values on each branch pipeline within a statistical period to obtain the sub-consumption volume of each branch pipeline, and sum up the sub-consumption volumes of all branch pipelines to obtain a second total consumption volume. Wherein, the air inlet of the main pipeline is connected to the gas source outlet, the air outlet is connected to the air inlets of multiple branch pipelines, and the air outlet of each branch pipeline is connected to the air inlet of a gas-using equipment; A volume output module, configured to divide the first total consumption volume by the second total consumption volume and multiply by the sub-consumption volume of each branch pipeline to obtain the gas volume consumed by each gas-using equipment within the statistical period.
9. A gas consumption measurement device, characterized in that, The gas consumption measurement equipment includes a processor, a memory, and a gas consumption measurement program stored on the memory and executable by the processor. When the gas consumption measurement program is executed by the processor, the steps of the gas consumption measurement method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that, A gas consumption measurement program is stored on the readable storage medium. When the gas consumption measurement program is executed by a processor, the steps of the gas consumption measurement method according to any one of claims 1 to 7 are implemented.