PERFORMANCE EVALUATION METHOD FOR NATURAL GAS ANALYSIS SYSTEM
20230408467 ยท 2023-12-21
Inventors
- Chao ZHANG (Beijing, CN)
- Bing Liu (Beijing, CN)
- Nan Xing (Beijing, CN)
- Jing TIAN (Beijing, CN)
- Li Xiao (Beijing, CN)
- Jianhong Wu (Beijing, CN)
- Liang Tian (Beijing, CN)
- Yonghao Liu (Beijing, CN)
- Dongyu An (Beijing, CN)
- Tao Song (Beijing, CN)
- Yujie Ren (Beijing, CN)
- Yu Cao (Beijing, CN)
- Xin Li (Beijing, CN)
Cpc classification
G01N30/8675
PHYSICS
Y02P90/82
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A method for evaluating performance of a natural gas analysis system includes obtaining components of a natural gas analysis system as well as the maximum allowable error and the maximum allowable deviation of a calorific value of each of the components. The method includes determining components and uncertainties of a standard gas mixture; obtaining a final peak area of each of the components in each group of standard gas mixture. The method includes obtaining calibration functions of the natural gas analysis system and analytical functions of respective components. The method includes obtaining an uncertainty and a calorific value uncertainty of each of the components. The method includes judging whether the evaluation result from the natural gas analysis system to be evaluated is qualified, and providing a performance evaluation conclusion for the natural gas analysis system.
Claims
1. A method for evaluating performance of a natural gas analysis system, comprising: obtaining components of the natural gas analysis system as well as a maximum allowable error and a maximum allowable deviation of a calorific value of each of the components; determining, according to the components of the natural gas analysis system, components and uncertainties of a standard gas mixture by using a principle of uniform distribution; performing, by the natural gas analysis system to be evaluated, 10 times component analysis in turn on the components of each group of standard gas mixture, and recording original data regarding peak areas; performing drift correction on the original data regarding peak areas to obtain drift-corrected peak areas; performing gross error elimination on the drift-corrected peak areas and obtaining final peak areas of respective components of each group of standard gas mixture; performing regression analysis between the components of the standard gas mixture and the final peak areas subjected to the drift correction by using a generalized least squares method to obtain calibration functions of the natural gas analysis system and analytical functions of the respective components; calculating, by using the calibration function of the natural gas analysis system, a peak area related to each of components in 10,000 groups of natural gas mixtures, then calculating, by using the analytical function, a component related to each peak area, and calculating and obtaining an uncertainty and a calorific value uncertainty of each of the components; and judging whether an evaluation result from the natural gas analysis system to be evaluated is qualified, and providing a performance evaluation conclusion for the natural gas analysis system.
2. The method for evaluating performance of a natural gas analysis system according to claim 1, wherein determining components and uncertainties of a standard gas mixture comprises steps of: determining categories of the standard gas mixture according to categories of elementary substances of the natural gas analysis system, wherein the categories of elementary substances of the standard gas mixture should be identical with the categories of elementary substances of the natural gas analysis system; determining a quantity of groups of standard gas mixtures that are required according to an order of an analytical function regarding category of each elementary substance; determining a quantity of groups of standard gas mixtures according to an order of an analytical function obtained from the last performance evaluation on the natural gas analysis system; and determining uncertainty of the standard gas mixture according to the uncertainty of the natural gas analysis system.
3. The method for evaluating performance of a natural gas analysis system according to claim 2, wherein obtaining final peak areas of respective components of each group of standard gas mixture comprises steps of: performing, by the natural gas analysis system to be evaluated, 10 times component analysis in turn on the components of each group of standard gas mixture, and recording atmospheric pressures and original data regarding peak areas; subjecting the original data regarding peak areas to drift correction to obtain drift-corrected peak areas; and subjecting the drift-corrected peak areas to gross error elimination to obtain final peak areas of the respective components of each group of standard gas mixture.
4. The method for evaluating performance of a natural gas analysis system according to claim 3, wherein to obtain calibration functions of the natural gas analysis system and analytical functions of the respective components comprises steps of: calculating an average peak area and a standard deviation of each component according to an uncertainty and a final peak area of each component in the standard gas mixture; calculating, respectively with respect to first-order, second-order, and third-order polynomials, a regression coefficient and goodness-of-fit of a calibration function of each component by using the generalized least squares method for regression processing according to data regarding peak area and component of each component in the standard gas mixture; and determining a final calibration function of each component according to the first-order, second-order, and third-order calibration functions of each component, wherein one with goodness-of-fit close to 1 is taken as the optimum, but in a case that there are identical goodness-of-fits, the one with the lower order is better; calculating, respectively with respect to first-order, second-order and third-order polynomials, a regression coefficient and goodness-of-fit of an analytical function of each component by using the generalized least squares method for regression processing according to data regarding content and peak area of each component; and determining a final analytical function of each component according to the first-order, second-order, and third-order analytical functions of each component, wherein one with goodness-of-fit close to 1 is taken as the optimum, but in the case that there are identical goodness-of-fits, the one with the lower order is better.
5. The method for evaluating performance of a natural gas analysis system according to claim 4, wherein calculating and obtaining an uncertainty and a calorific value uncertainty of each of the components comprises steps of: a method for constructing a Monte Carlo model to simulate 10,000 groups of natural gas mixtures, in which the components of each group of natural gas mixture should be within an analysis range of the natural gas analysis system to be evaluated, composition of the 10,000 groups of natural gas mixtures are calculated and obtained by using a subtraction method on the basis of identical intervals and by using methane as balance gas, and unnatural natural gas components should be avoided; calculating high-level calorific values of the 10,000 groups of simulated natural gas mixtures, respectively, according to the components of the 10,000 groups of simulated natural gas mixtures; calculating a peak area related to each component of each group of simulated natural gas mixture by using the calibration function; calculating a measured component related to the resulted peak area of each component of each group of simulated natural gas mixture by using the analytical function; calculating an analytical uncertainty of each component of each group of simulated natural gas mixture; calculating an average measurement error and an uncertainty of each component in the simulated natural gas mixture; calculating high-level calorific values of each group of measured components and uncertainties of each group of measured components according to measured mole fractions; and calculating an average measurement error of the high-level calorific values of the simulated natural gas mixtures and a standard uncertainty of the high-level calorific values of the simulated natural gas mixtures.
6. A device for evaluating performance of a natural gas analysis system, comprising: a first processing unit configured to obtain components of the natural gas analysis system as well as a maximum allowable error and a maximum allowable deviation of a calorific value of each of the components; a second processing unit configured to determine components and uncertainties of a standard gas mixture according to the components of the natural gas analysis system and using the principle of uniform distribution; a third processing unit configured to perform, by the natural gas analysis system to be evaluated, 10 times component analysis in turn on the components of each group of standard gas mixture, and record original data regarding peak areas; perform drift correction on the original data regarding peak areas to obtain drift-corrected peak areas; perform gross error elimination on the drift-corrected peak areas to obtain final peak areas of respective components of each group of standard gas mixture; a fourth processing unit configured to perform regression analysis between the components of the standard gas mixture and the final peak areas subjected to the drift correction by using a generalized least squares method to obtain calibration functions of the natural gas analysis system and analytical functions of the respective components; a fifth processing unit configured to calculate, by using the calibration function of the natural gas analysis system, a peak area related to each of components in 10,000 groups of natural gas mixtures, then calculate, by using the analytical function, a component related to each peak area, and calculate and obtain an uncertainty and a calorific value uncertainty of each of the components; and a sixth processing unit configured to judge whether an evaluation result from the natural gas analysis system to be evaluated is qualified, and provide a performance evaluation conclusion for the natural gas analysis system.
7. A computer-readable storage medium on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the method according to claim 1.
8. A computer device, comprising a memory, a processor and a computer program stored on the memory and executable by the processor, wherein the processor, when running the computer program thereon, executes the steps of the method according to claim 1.
Description
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0047] The following embodiments are used for the illustrative purpose of the present disclosure, but not intent to limit the scope of the present disclosure.
[0048] The present disclosure provides a method for evaluating performance of a natural gas analysis system in order to address the problem of absence of methods capable of evaluating performance of natural gas analysis systems in domestic at present. It is to, first, obtain components of a natural gas analysis system as well as a maximum allowable error and a maximum allowable deviation of a calorific value of each of the components; then, determine components and uncertainties of a standard gas mixture according to the components of the natural gas analysis system and using the principle of uniform distribution; obtain an final peak area of each of the components in each group of standard gas mixture; next, perform regression analysis between the components of the standard gas mixture and the final peak areas subjected to the drift correction by using the generalized least squares method to obtain calibration functions of the natural gas analysis system and analytical functions of respective components; then, calculate, by using the calibration function of the natural gas analysis system, a peak area related to each of the components in 10,000 groups of natural gas mixtures, then calculate, by using the analytical function, a component related to each peak area, and calculate and obtain an uncertainty and a calorific value uncertainty of each of the components; finally, judge whether an evaluation result from the natural gas analysis system to be evaluated is qualified, and provide an conclusion that evaluates performance of the natural gas analysis system. The method for evaluating performance of a natural gas analysis system provided by the present disclosure makes up for the absence of methods for performance evaluation on natural gas analysis systems in domestic, determines errors and uncertainties of the natural gas analysis systems, and thus facilitates application and implementation of natural gas energy metering at the national level.
Embodiment 1
[0049] Embodiment 1 provides a method for evaluating performance of a natural gas analysis system, which is configured to evaluate the natural gas analysis system, and the method comprises the following steps S1 to S6.
[0050] Step S1, obtaining components of a natural gas analysis system as well as a maximum allowable error and a maximum allowable deviation of a calorific value of each of the components.
[0051] Natural gas is a mixture composed of a variety of elementary substances (such as methane, ethane, etc.), and a content of mass percent of each elementary substance is referred to as a component of this composition. The term component here refers to a category and a content of a certain elementary substance in the natural gas analysis system, and term calorific value refers to an amount of heat that can be obtained from full combustion of natural gas under a standard condition, and wording a calorific value of each of the components refers to a calorific value of a component.
[0052] Step S2, determining components and uncertainties of a standard gas mixture according to the components of the natural gas analysis system and using the principle of uniform distribution.
[0053] In this case, components of the standard gas mixture include categories of elementary gas and contents of each type of elementary gas. The categories of the natural gas are determined in accordance of the categories of the elementary substances in the natural gas analysis system. The components of the standard gas mixture are calculated and obtained according to the components of the natural gas analysis system and using the principle of uniform distribution.
[0054] The step S2 specifically includes the following steps S21 to S24.
[0055] Step S21, categories of a standard gas mixture are determined according to the categories of the elementary substances of the natural gas analysis system, and the categories of elementary substances of the standard gas mixture should be the same as the categories of the elementary substances of the natural gas analysis system.
[0056] Step S22, the number of groups of standard gas mixtures that are required are determined according to the order of an analytical function regarding the category of each elementary substance.
[0057] For example, 3 groups of standard gas mixtures are required if the analytical function regarding the category of each elementary substance is a first-order one, 5 groups of standard gas mixtures are required if the analytical function regarding the category of each elementary substance is a second-order one, and 7 groups of standard gas mixtures are required if the analytical function regarding the category of each elementary substance is a third-order one.
[0058] Step S23, the number of groups of standard gas mixtures are determined according to the order of an analytical function obtained from the last performance evaluation on the natural gas analysis system.
[0059] For example, if the natural gas analysis system was subjected to performance evaluation for the first time, then 7 groups of standard gas mixtures should be selected.
[0060] Step S24, uncertainties of the standard gas mixture are determined according to uncertainties of the natural gas analysis system.
[0061] In this case, the uncertainties of the standard gas mixture should be less than the uncertainties of the natural gas analysis system; the content of each elementary substance in the standard gas mixture should be evenly distributed within an analysis range of the natural gas analysis system and with a minimum mole fraction no less than 0.01%. As a result, the components of the standard gas and an uncertainty of each of the components are determined finally.
[0062] Step S3, performing, by the natural gas analysis system to be evaluated, 10 times component analysis in turn on the components of each group of standard gas mixture, and recording original data regarding peak areas; performing drift correction on the original data regarding peak areas to obtain drift-corrected peak areas; performing gross error elimination on the drift-corrected peak areas to obtain final peak areas of respective components of each group of standard gas mixture.
[0063] In this case, the term component analysis refers to analysis results obtained by analyzing respective components in the natural gas mixture using the natural gas analysis system, and an analysis result is a peak area of a component.
[0064] The wording 10 times component analysis refers to performing the component analysis for 10 times on the components of each group of standard gas mixture by using the natural gas analysis system to be evaluated so that 10 groups of analysis results are obtained.
[0065] Specifically, the step S3 includes the following steps S31 to S33.
[0066] Step S31, component analysis are performed 10 times in turn on the components of each group of standard gas mixture by the natural gas analysis system to be evaluated, and atmospheric pressures and original data regarding peak areas are recorded.
[0067] Step S32, the original data regarding peak areas are subjected to drift correction to obtain drift-corrected peak areas, where a drift correction expression is,
[0068] where y.sub.i,j,k is a peak area resulted by subjecting the jth content of the ith elementary substance in the standard gas mixture to drift correction during the kth analysis;
[0069] y.sub.i,j,k is a peak area of the jth content of the ith elementary substance in the standard gas mixture during the kth analysis;
[0070] Pa is a laboratory atmospheric pressure during the kth analysis for the jth content of the ith elementary substance in the standard gas mixture;
[0071] i is a positive integer, and i is less than or equal to the number of species of the elementary substance in the standard gas mixture;
[0072] j is a positive integer, and j is less than or equal to the number of groups of standard gas mixtures; and
[0073] k is a positive integer, and k is less than or equal to the number of times of component analysis.
[0074] Step S33, the drift-corrected peak areas are subjected to gross error elimination by using a Grubbs test method to obtain final peak areas of the respective components of each group of standard gas mixture.
[0075] Step S4, performing, using the generalized least squares method, regression analysis between the components of the standard gas mixture and the drift-corrected peak areas to obtain calibration functions of the natural gas analysis system and analytical functions for respective components.
[0076] In this case, the step S4 specifically includes the following steps S41 to S45.
[0077] Step S41, an average peak area and a standard deviation of each component are calculated according to an uncertainty and a final peak area of each component in the standard gas mixture;
[0078] Step S42, a regression coefficient and goodness-of-fit of a calibration function of each component are calculated with respect to, respectively, first-order, second-order, and third-order polynomials by using the generalized least squares regression process according to the data regarding peak area and component of each component in the standard gas mixture, wherein an expression for the goodness-of-fit is,
[0084] Step S43, a final calibration function of each component is determined according to the first-order, second-order, and third-order calibration functions of each component, wherein one with goodness-of-fit close to 1 is taken as the optimum, but in the case that there are the same goodness-of-fits, the one with the lower order is better;
[0085] Step S44, a regression coefficient and goodness-of-fit of an analytical function of each component are calculated with respect to, respectively, first-order, second-order and third-order polynomials by using the generalized least squares regression process according to the data regarding content and peak area of each component; and
[0086] Step S45, a final analytical function of each component is determined according to the first-order, second-order, and third-order analytical functions of each component, wherein one with goodness-of-fit close to 1 is taken as the optimum, but in the case that there are the same goodness-of-fits, the one with the lower order is better.
[0087] Step S5, building a Monte Carlo model to simulate 10,000 groups of natural gas mixtures, calculating a peak area related to each component in the 10,000 groups of natural gas mixtures by using the calibration function of the natural gas analysis system, then calculating a component related to each peak area by using the analytical function, and calculating and obtaining an uncertainty and a calorific value uncertainty of each component.
[0088] In this case, the step S5 includes the following steps S51 to S58.
[0089] Step S51, in a method for constructing a Monte Carlo model to simulate 10,000 groups of natural gas mixtures, the components of each group of natural gas mixture should be within the analysis range of the natural gas analysis system to be evaluated, composition of the 10,000 groups of natural gas mixtures are calculated and obtained by using a subtraction method on the basis of identical intervals and by using methane as balance gas, and unnatural natural gas components should be avoided.
[0090] Step S52, high-level calorific values H.sub.s,tn of the 10,000 groups of simulated natural gas mixtures are calculated, respectively, according to the components of the 10,000 groups of simulated natural gas mixtures, and an expression thereof is,
[0095] Step S53, a peak area related to each component of each group of simulated natural gas mixture is calculated by using the calibration function.
[0096] Step S54, a measured component related to the resulted peak area of each component of each group of simulated natural gas mixture is calculated by using the analytical function.
[0097] Step S55, an analytical uncertainty [u(x.sub.in)] of each component of each group of simulated natural gas mixture is calculated, and an expression thereof is,
u(x.sub.in)={square root over ([U(x.sub.a,i)].sup.2+[U(x.sub.b,i)].sup.2+[U(x.sub.c,in)].sup.2)}(Formula 4) [0098] where [u(x.sub.in)] is an analytical uncertainty of a component of the ith elementary substance in the nth simulated natural gas mixture; [0099] U(x.sub.a,i) is an average of standard uncertainties of the ith elementary substance in the standard gas mixture; [0100] U(x.sub.b,i) is an average of standard uncertainties of peak area of the ith elementary substance in the standard gas mixture; and [0101] U(x.sub.a,in) is a regression standard deviation of an analytical function confirmed to be related to the ith elementary substance in the nth group of simulated natural gas mixture.
[0102] Step S56, an average measurement error [(x.sub.i)] and an uncertainty [u(x.sub.i)] of each component in the simulated natural gas mixture are calculated, wherein expressions of the average measurement error and the uncertainty are, respectively,
[0109] Step S57, high-level calorific values (H.sub.s,mn) and uncertainties [u(H.sub.s,mn)] of each group of measured components are calculated according to measured mole fractions (x.sub.mij).
[0110] Step S58, an average measurement error [(H.sub.s)] of the high-level calorific values of the simulated natural gas mixtures and a standard uncertainty [u(H.sub.s)] of the high-level calorific values of the simulated natural gas mixtures are calculated, and expressions thereof are as following:
[0117] Step S6, determining whether an evaluation result from the natural gas analysis system to be evaluated is qualified, and providing an conclusion that evaluates the performance of the natural gas analysis system, in which a following step is specifically included.
[0118] Step S61, if each component and its high-level calorific value satisfy a calculation formula below at the same time, the evaluation result from the natural gas analysis system to be evaluated is qualified.
[0119] For the component of the ith elementary substance:
[0124] For the high-level calorific value:
[0129] While the present disclosure has been described in detail above through general description and specific embodiments, some modifications or improvements can be made on the basis of the present disclosure, which will be apparent to those skilled in the art. Therefore, these modifications or improvements made without departing from the spirit of the present disclosure fall within the scope of the claimed protection of the present disclosure.
[0130] Apparently, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation manner. For those of ordinary skill in the art, changes or modifications in other different forms can also be made on the basis of the above description. There is no need and cannot be exhaustive of all implementations here. And the obvious changes or changes derived from this are still within the protection scope of the present disclosure.
[0131] Finally, it should be noted that the above embodiments are intent to provide illustration only for the technical solutions of the present disclosure, instead of limitation thereto. Although the present disclosure has been described in detail with reference to the above embodiments, it should be understand by those of ordinary skill in the art that modifications still can be made to the technical solutions described in the various foregoing embodiments, or equivalent replacements can still be made to some technical features thereof; and that the essence of the technical solutions related to these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.