Natural gas calorific value test result correction method, system, equipment and medium

By iteratively calculating the nitrogen content and calorific value, and using the S-GERG88 state equation to correct the natural gas calorific value test results of laser absorption spectroscopy, the test deviation problem caused by ignoring the nitrogen component was solved, and the test accuracy and reliability of energy measurement were improved.

CN120703025APending Publication Date: 2025-09-26PETROCHINA CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410335112.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The existing laser absorption spectroscopy method ignores the nitrogen component when testing the calorific value of natural gas, resulting in higher test results, affecting the accuracy of the natural gas calorific value test and thus affecting the fairness of energy measurement.

Method used

Through an iterative calculation method, the S-GERG88 state equation is used to combine the initial calorific value, carbon dioxide content, relative density and temperature data to calculate the nitrogen content. The calorific value is adjusted through an iterative process until the difference is less than the preset value. The target calorific value and compressibility factor are determined and the test results are corrected.

Benefits of technology

The accuracy of natural gas calorific value testing using laser absorption spectroscopy and the calculation results of operating compression factors have been significantly improved, thereby enhancing the accuracy and applicability of energy measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120703025A_ABST
    Figure CN120703025A_ABST
Patent Text Reader

Abstract

The invention discloses a natural gas calorific value test result correction method, system, equipment and medium, and relates to the technical field of natural gas analys.The method comprises the steps that according to the initial calorific value, the carbon dioxide content and the relative density obtained through testing and pressure data and temperature data of a test point, the first nitrogen content is obtained through calculation based on an S-GERG88 state equation; calculating a first calorific value by using the first nitrogen content and the initial calorific value, and performing iterative calculation according to the first calorific value to obtain a second nitrogen content until the absolute value of the difference between the second nitrogen content and the first nitrogen content is smaller than a preset value; determining the first calorific value corresponding to the obtained second nitrogen content as a target calorific value; through an iterative algorithm, the accuracy of a natural gas calorific value test result and a natural gas working condition compression factor calculation result through the laser absorption spectrometry can be greatly improved, and then the path reliability and applicability of natural gas energy metering through the laser absorption spectrometry are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural gas analysis, and more particularly to a method, system, equipment and medium for correcting natural gas calorific value test results. Background Art

[0002] Commercial natural gas is generally composed of alkanes from methane to hexane, carbon dioxide, and nitrogen. Alkanes are the primary source of natural gas's calorific value. The shift in natural gas trade measurement from volumetric to energy-based measurement has made natural gas calorific value a measurement parameter as important as volumetric value. With the continuous advancement of energy-based measurement, instruments and equipment that use laser absorption principles to measure natural gas calorific value online have emerged. Compared with online gas chromatography, this technology offers advantages such as fast analysis speed, low operating costs, and long maintenance cycles.

[0003] Laser absorption technology is based on the theory of laser absorption spectroscopy. The infrared absorption of saturated alkanes induces skeletal vibrations in the C-H bond. Different alkanes have specific absorption spectra. Laser absorption spectroscopy can quantitatively analyze the C-H bonds of alkanes in natural gas, thereby correlating absorbance with calorific value. For CO2 components in natural gas other than alkanes, laser absorption can also accurately determine their content based on the Lambert-Beer law. However, for N2, the laser cannot easily induce vibrations in the N-N triple bond, which allows for quantitative analysis, due to the exceptionally strong triple bond between the two nitrogen atoms. Furthermore, commercial natural gas generally contains a significant percentage of nitrogen. Ignoring this nitrogen will result in an overstated calorific value, impacting the accuracy of natural gas calorific value testing and hindering the fairness and integrity of subsequent energy measurement. Summary of the Invention

[0004] The purpose of the present invention is to provide a method, system, device and medium for correcting natural gas calorific value test results, thereby improving the accuracy of natural gas calorific value test results using laser absorption spectroscopy, and at the same time improving the accuracy of natural gas operating compressibility factor calculation results, thereby improving the accuracy and applicability of laser absorption spectroscopy in the field of energy measurement that does not rely on natural gas composition analysis.

[0005] The above technical objectives of the present invention are achieved through the following technical solutions:

[0006] In a first aspect, the present application provides a method for correcting natural gas calorific value test results, comprising the following specific steps:

[0007] The first nitrogen content is calculated based on the S-GERG88 state equation according to the initial calorific value, carbon dioxide content, relative density, and pressure and temperature data of the test point obtained from the test;

[0008] Calculating a first calorific value using the first nitrogen content and the initial calorific value, performing iterative calculations based on the first calorific value to obtain a second nitrogen content calculated in each iterative calculation, until the absolute value of the difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value;

[0009] The first calorific value corresponding to the second nitrogen content obtained in the latter iteration of two consecutive iterative calculations is determined as the target calorific value.

[0010] On the basis of the above technical solution, the present invention can also be improved as follows.

[0011] Furthermore, the above method further includes:

[0012] Based on the S-GERG88 equation of state, the target compressibility factor is calculated using the target calorific value;

[0013] The target calorific value and target compression factor are used to calculate the natural gas energy value within a specific time period, which serves as the basis for natural gas trade transfer.

[0014] Furthermore, the first heat value is specifically:

[0015]

[0016] Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

[0017] Furthermore, the above method further includes: using the target compressibility factor and combining the actual flow rate, pressure data and temperature data of the test point to calculate the volume parameter of the natural gas; the natural gas energy value is specifically:

[0018]

[0019] Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Q f Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

[0020] In a second aspect, the present application provides a natural gas calorific value test result correction system, which is applied to any one of the natural gas calorific value test result correction methods of the first aspect, and the system comprises:

[0021] The first module is used to calculate the first nitrogen content based on the S-GERG88 state equation according to the initial calorific value, carbon dioxide content, relative density, and pressure and temperature data of the test point obtained by the test;

[0022] The second module is configured to calculate a first calorific value using the first nitrogen content and the initial calorific value, and perform iterative calculation based on the first calorific value to obtain a second nitrogen content calculated in each iterative calculation, until the absolute value of the difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value;

[0023] The third module is used to determine the first calorific value corresponding to the second nitrogen content obtained in the latter iteration of two consecutive iterative calculations as the target calorific value.

[0024] Furthermore, the above system also includes:

[0025] The fourth module is used to calculate the target compressibility factor based on the S-GERG88 state equation and the target calorific value;

[0026] The fifth module is used to calculate the natural gas energy value used as the basis for natural gas trade delivery within a specific time period using the target calorific value and the target compression factor.

[0027] Furthermore, in the above-mentioned second module, the first heat value is specifically:

[0028]

[0029] Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

[0030] Furthermore, the fifth module is further configured to calculate the volume parameters of natural gas using the target compressibility factor in combination with the actual flow rate, pressure data, and temperature data of the test point. In the fifth module, the energy value of natural gas is specifically:

[0031]

[0032] Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Q f Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

[0033] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods in the first aspect when executing the computer program.

[0034] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute any one of the methods in the first aspect.

[0035] Compared with the prior art, the present invention has at least the following beneficial effects:

[0036] In this application, the initial calorific value obtained by the test, as well as the carbon dioxide content, relative density, and pressure data and temperature data of the test point obtained during the test process, are first calculated using the S-GERG88 state equation to obtain the first nitrogen content. The first calorific value is calculated using the obtained first nitrogen content and the initial calorific value. It can be seen that calculating the nitrogen content by calorific value and calculating the calorific value by nitrogen content is an iterative cycle process. When the absolute value of the difference between the obtained nitrogen content and the nitrogen content obtained last time is less than the preset value, the iterative process is terminated, and the calorific value corresponding to the nitrogen content obtained last time is determined as the target calorific value, that is, the target calorific value is the final corrected calorific value, thereby improving the accuracy of the natural gas calorific value test results of the laser absorption spectroscopy method, and at the same time improving the accuracy of the calculation results of the natural gas operating compression factor, and also improving the accuracy and applicability of the laser absorption spectroscopy method that does not rely on natural gas composition analysis in the field of energy metering.

[0037] In this application, an iterative algorithm can greatly improve the accuracy of the natural gas calorific value test results and the natural gas operating compressibility factor calculation results of the laser absorption spectroscopy method, thereby improving the path reliability and applicability of natural gas energy metering using laser absorption spectroscopy. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0039] Figure 1 A flowchart of a correction method according to an embodiment of the present invention;

[0040] Figure 2 Schematic diagram of an iterative algorithm for natural gas calorific value test results according to an embodiment of the present invention;

[0041] Figure 3 Schematic diagram of the measurement of natural gas energy value in an embodiment of the present invention;

[0042] Figure 4 Schematic diagram of the connection of the correction system in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0044] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.

[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not require further definition or explanation in subsequent drawings.

[0046] The S-GERG88 equation of state, developed by the European Gas Research Group for calculating the compressibility factor of natural gas under operating conditions, is recommended by the International Organization for Standardization as a standard method for calculating the compressibility factor of natural gas under operating conditions. The calculation process also provides the corresponding nitrogen content. Because the compressibility factor under operating conditions is one of the most important physical properties of natural gas, it is relevant to various fields, including natural gas exploration, development, gathering and transportation, flow metering, and processing and utilization. Because the instrumentation required for field measurement methods is expensive and difficult to popularize, calculation methods have developed rapidly. Representative methods include empirical formulas and equations of state. Two equations for calculating the compressibility factor of natural gas under operating conditions were recommended at the fourth and fifth plenary meetings of the International Organization for Standardization (ISO) Technical Committee on Natural Gas (TC193) and Subcommittee on Analytical Techniques (TC193 / SC1).

[0047] Example 1:

[0048] This embodiment provides a method for correcting natural gas calorific value test results. Figure 1 As shown, the following specific steps are included:

[0049] S1, based on the initial calorific value, carbon dioxide content, relative density, and pressure and temperature data of the test point obtained from the test, the first nitrogen content is calculated based on the S-GERG88 state equation.

[0050] Specifically, the calculation formula of nitrogen content is expressed as: N2 =f(Hs,x CO2 ,d,p,T), where x N2 Indicates nitrogen content, Hs indicates calorific value, x CO2 represents the carbon dioxide content, d represents the relative density, p represents the pressure, and T represents the temperature.

[0051] This solution, based on the S-GERG88 equation of state, accurately calculates nitrogen content and the calorific value of natural gas. The calculation uses calorific value test results (excluding the influence of nitrogen content), CO2 content, and the relative density of natural gas as inputs. Through algorithm iteration, a more accurate nitrogen content and calorific value of natural gas are obtained, significantly improving the accuracy and reliability of calorific value test results for nitrogen-containing natural gas.

[0052] S2, using the first nitrogen content and the initial calorific value to calculate a first calorific value, performing iterative calculation based on the first calorific value to obtain a second nitrogen content calculated in each iterative calculation, until the absolute value of the difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value.

[0053] The specific iterative process is as follows:

[0054] (1) Using the initial calorific value (k = 0), carbon dioxide content, relative density, and pressure and temperature data at the flow measurement point of the metering station as input parameters, the S-GERG88 state equation is called to calculate the nitrogen content (k = 0) and compressibility factor (k = 0), where k represents the number of iterations.

[0055] (2) According to the nitrogen content (k=0) obtained in step (1), the initial calorific value is adjusted according to the algorithm formula to obtain a new high calorific value, namely the first calorific value (k=1).

[0056] (3) The first calorific value (k=1), carbon dioxide content, relative density, and the pressure data and temperature data entered in step (1) are used as input, and the S-GERG88 state equation is called again to calculate the nitrogen content (k=1) and the compressibility factor (k=1). The new calorific value is then calculated using the nitrogen content, and the new nitrogen content is calculated again using the calorific value, and this is repeated.

[0057] (4) The absolute value of the difference between the latest nitrogen content (k+1) and the previous nitrogen content (k) is 10 -5 The comparison result is the judgment condition, then the above preset value is 10 -5 ; When the absolute value of the difference is greater than 10 -5 When the absolute value of the difference is less than 10 -5When , the calculation is completed and the final accurate calorific value, nitrogen content and compression factor are obtained.

[0058] Specifically, the correction algorithm diagram of the natural gas calorific value test results can be found in Figure 2 ,exist Figure 2 middle, represents the initial calorific value or the first calorific value, d represents the relative density, x CO2 represents the carbon dioxide content, x N2 Indicates nitrogen content, Z indicates compression factor, and superscript k indicates the number of iterations. It can be seen that the nitrogen content and compression factor are obtained by the first calculation based on the initial calorific value, relative density, carbon dioxide content and other data, that is, Figure 2 in Z (0) ; Then calculate the calorific value using the nitrogen content obtained in the first calculation, that is Figure 2 in Thus, the first iteration calculation is completed; similarly, the above process of calculating nitrogen content by calorific value and then calculating new calorific value by the calculated nitrogen content is repeated until the absolute value of the difference between nitrogen content (k+1) and the previous nitrogen content (k) is less than 10 -5 ,Right now Figure 2 in This ends the iterative calculation process.

[0059] S3, determining the first calorific value corresponding to the second nitrogen content obtained in the latter iteration of two consecutive iterative calculations as the target calorific value.

[0060] Among them, from Figure 2 It can be seen that after the iterative calculation is completed, the nitrogen content, calorific value and compression factor of the last time are used as subsequent calculation parameters, that is, Figure 2 in Z=Z (k+1) , Figure 2 H in s It indicates the target heat value.

[0061] Optionally, the above method further includes:

[0062] S4, based on the S-GERG88 equation of state, and using the target calorific value to calculate the target compressibility factor.

[0063] Among them, from the above steps, it can be known that the target compression factor and target nitrogen content corresponding to the target calorific value can be calculated according to the S-GERG88 state equation. Figure 2 The target compression factor and target nitrogen content are and Z = Z (k+1) .

[0064] S5, using the target calorific value and the target compression factor, calculates the natural gas energy value within a specific time period as a basis for natural gas trade delivery.

[0065] Optionally, the method further includes: calculating the volume parameter of natural gas using the target compressibility factor in combination with actual flow, pressure data, and temperature data of the test point; the natural gas energy value is specifically:

[0066] E=∑H s *Q, where

[0067] Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Q f Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

[0068] The calculation diagram of the natural gas energy value used as the basis for natural gas trade transfer within a specific time period is shown in the following figure. Figure 3 , Figure 3 The calorific value in is the target calorific value in this solution. Figure 3 Q in the formula represents the volume parameter of natural gas, which is calculated by converting the target compression factor and the target nitrogen content into volume.

[0069] Optionally, the first calorific value is specifically:

[0070]

[0071] Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

[0072] Among them, when performing the first iterative calculation, Figure 2 It can be seen that the first calorific value calculated in the first iteration is expressed as: In this formula, Indicates the first calorific value, Indicates the initial heat output, Indicates the first nitrogen content; formula With the formula The difference is that there is no initial nitrogen content in the first calculation, so the nitrogen content is represented as 0.

[0073] Specifically, the following is a further explanation based on actual conditions. The composition information of a natural gas is shown in Table 1 below. The calorific value test result obtained by direct measurement using laser absorption spectroscopy is 40.73 MJ / m 3 , which is consistent with the result of 40.33MJ / m calculated using ISO 6976. 3 There is a relative deviation of 1.01%. According to GB / T 18603-2014 "Technical Requirements for Natural Gas Metering Systems", the maximum allowable errors of online calorific value for Class A stations and Class B (C) stations are 0.5% and 1.0%, respectively. The current laser absorption calorific value test results have large deviations and are difficult to use for actual natural gas energy measurement.

[0074] Table 1 Test results of actual composition and calorific value of natural gas

[0075]

[0076]

[0077] Furthermore, the calculation method in this application is used to iteratively calculate the calorific value, nitrogen content and working condition compression factor (5 MPa, 20°C). The iterative calculation process data is shown in Table 2 below:

[0078] Table 2 Iterative calculation process data table

[0079]

[0080] Specifically, it can be seen from Table 2 above that after 4 iterations, the final calorific value calculated is 40.25 MJ / m 3 , N2 concentration is 1.38%, and the calorific value deviates from the actual value by 0.08MJ / m 3 , the relative deviation is -0.198%, and the N2 concentration deviation is -0.13%, both of which are less than 1.01% and 1.25% before optimization and correction, which improves the accuracy of the natural gas calorific value test results; the calculated compressibility factor (5Mpa, 20℃) Z value is 0.8975, which is less than 0.03% relative to the compressibility factor 0.8973 calculated based on the detailed composition, and the relative deviation from 0.8952 before the algorithm correction is 0.26%, which further improves the accuracy of the volumetric quantity in the natural gas energy metering process; therefore, through the iterative algorithm in this application, the accuracy of the natural gas calorific value test results and the natural gas operating compressibility factor calculation results of the laser absorption spectroscopy method can be greatly improved, thereby improving the path reliability and applicability of natural gas energy metering using laser absorption spectroscopy.

[0081] Example 2:

[0082] The embodiment of the present application provides a natural gas calorific value test result correction system, which is applied to a natural gas calorific value test result correction method in any one of the embodiments 1, such as Figure 4 As shown, the system includes:

[0083] The first module is used to calculate the first nitrogen content based on the S-GERG88 state equation according to the initial calorific value, carbon dioxide content, relative density, and pressure data and temperature data of the test point obtained from the test.

[0084] The second module is used to calculate the first calorific value using the first nitrogen content and the initial calorific value, and perform iterative calculation based on the first calorific value to obtain the second nitrogen content calculated in each iterative calculation until the absolute value of the difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value.

[0085] Optionally, in the second module, the first calorific value is specifically:

[0086]

[0087] Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

[0088] The third module is used to determine the first calorific value corresponding to the second nitrogen content obtained in the latter iteration of two consecutive iterative calculations as the target calorific value.

[0089] Optionally, the above system further includes:

[0090] The fourth module is used to calculate the target compressibility factor based on the S-GERG88 state equation and the target calorific value;

[0091] The fifth module is used to calculate the natural gas energy value used as the basis for natural gas trade delivery within a specific time period using the target calorific value and the target compression factor.

[0092] Optionally, the fifth module is further configured to calculate the volume parameters of natural gas using the target compressibility factor in combination with the actual flow rate, pressure data, and temperature data of the test point. In the fifth module, the energy value of natural gas is specifically:

[0093] E=∑H s *Q, where

[0094] Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Qf Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

[0095] Example 3:

[0096] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods in Example 1 when executing the computer program.

[0097] Example 4:

[0098] An embodiment of the present application provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute any one of the methods in Example 1.

[0099] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for correcting natural gas calorific value test results, characterized in that: The specific steps include: The first nitrogen content is calculated based on the S-GERG88 state equation according to the initial calorific value, carbon dioxide content, relative density, and pressure and temperature data of the test point obtained from the test; Calculating a first calorific value using the first nitrogen content and the initial calorific value, performing iterative calculation based on the first calorific value to obtain a second nitrogen content calculated in each iterative calculation, until an absolute value of a difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value; The first calorific value corresponding to the second nitrogen content obtained in the latter iteration of the two consecutive iterative calculations is determined as the target calorific value.

2. A natural gas calorific value test result correction method according to claim 1, characterized in that: The method further comprises: Based on the S-GERG88 equation of state, a target compressibility factor is calculated using the target calorific value; The target calorific value and the target compression factor are used to calculate the natural gas energy value serving as the basis for natural gas trade transfer within a specific time period.

3. A natural gas calorific value test result correction method according to claim 1, characterized in that: The first calorific value is specifically: Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, x N2 represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

4. A natural gas calorific value test result correction method according to claim 1, characterized in that: The method further includes: calculating the volume parameter of natural gas using the target compressibility factor in combination with actual flow, pressure data, and temperature data of the test point; the natural gas energy value is specifically: E=∑H s *Q, where Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Q f Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

5. A natural gas calorific value test result correction system, applied to a natural gas calorific value test result correction method according to any one of claims 1 to 4, characterized in that: The system comprises: The first module is used to calculate the first nitrogen content based on the S-GERG88 state equation according to the initial calorific value, carbon dioxide content, relative density, and pressure and temperature data of the test point obtained by the test; a second module, configured to calculate a first calorific value by using the first nitrogen content and the initial calorific value, and perform iterative calculation based on the first calorific value to obtain a second nitrogen content calculated in each iterative calculation, until an absolute value of a difference between the second nitrogen contents calculated in two consecutive iterative calculations is less than a preset value; The third module is used to determine the first calorific value corresponding to the second nitrogen content obtained in the latter iteration of the two consecutive iterative calculations as the target calorific value.

6. A natural gas calorific value test result correction system according to claim 5, characterized in that: The system further comprises: A fourth module is configured to calculate a target compressibility factor based on the S-GERG88 equation of state and using the target calorific value; The fifth module is used to calculate the natural gas energy value serving as the basis for natural gas trade transfer within a specific time period using the target calorific value and the target compression factor.

7. A natural gas calorific value test result correction system according to claim 5, characterized in that: In the second module, the first calorific value is specifically: Where, Indicates the first calorific value, Indicates the first calorific value or initial calorific value, x N2 represents the first nitrogen content or the second nitrogen content, and k represents the number of iterations.

8. A natural gas calorific value test result correction system according to claim 6, characterized in that: The fifth module is further configured to calculate the volume parameters of natural gas using the target compressibility factor in combination with the actual flow rate, pressure data, and temperature data of the test point. The natural gas energy value in the fifth module is specifically: E=∑H s *Q, where Where E represents the energy value of natural gas, Q represents the volume parameter of natural gas under standard reference conditions, and H s Indicates the target calorific value, Q f Indicates the volume flow rate under actual working conditions, T indicates temperature data, P indicates pressure data, x i represents the molar percentage composition of natural gas, subscript b represents reference conditions, subscript atm represents atmospheric conditions, subscript f represents operating conditions, and Z represents the compressibility factor.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the method according to any one of claims 1 to 4 is implemented when the processor executes the computer program.

10. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable a computer to execute the method according to any one of claims 1 to 4.

Citation Information

Cited By

  • Natural gas volume flow correction method and system based on machine learning

    CN121048706A

  • Novel device and method for on-line measurement of gas sulfur content in sulfur-containing gas field pipeline

    CN121856511A