Method and system for evaluating detection deviation of natural gas chromatograph
By generating hypothetical natural gas sample component content, simulating the sample composition that a natural gas chromatograph may encounter, and using the Monte-Carlo method to calculate the average deviation, the problem of failure to describe the hypothetical sample composition generation method in the prior art is solved, and the problem of realizing the problem of failure to describe the hypothetical sample composition generation method in detail is realized. Fast and accurate detection deviation evaluation and save experimental costs.
Patent Information
- Application Number
- CN202411543880.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
AI Technical Summary
When evaluating detection deviations of natural gas chromatographs, the prior art failed to describe in detail the method of the Monte-Carlo method to generate hypothetical sample composition within the instrument detection range, making it difficult to grasp the operating status of the instrument under different evaluation conditions.
Within the working range of the natural gas chromatograph, the hypothetical natural gas sample component content is generated, and the random number generation method or specific regular arrangement method represents the composition of the sample that the instrument may encounter, thereby verifying the instrument's detection of various possible samples. The deviation between the detection result and the actual value.
By simulating a large number of sample data and using the Monte-Carlo method to calculate the average deviation, it can quickly and accurately evaluate the detection accuracy of natural gas chromatographs, save experimental materials and time costs, and provide scientific and reliable instrument management suggestions.
Smart Images

Figure CN119413914A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of natural gas chromatograph detection performance evaluation, and in particular to a method and system for evaluating natural gas chromatograph detection deviation. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the natural gas energy metering mode, the accuracy of the natural gas composition test results determines the accuracy of the calculation results of physical parameters such as natural gas calorific value. The unit calorific value data in the physical parameters directly participates in the calculation process of financial data such as natural gas trade prices, and is crucial to the economic interests of all parties in the natural gas trade.
[0004] Under the condition of energy measurement, in order to understand whether the detection results of the natural gas chromatograph are accurate, it is necessary to carry out on-site performance evaluation of the chromatograph. By testing gas standard substances and processing them through regression algorithms, the response function of the instrument is obtained, including the calibration function and the analysis function. After obtaining the calibration function and analysis function of the instrument, the Monte-Carlo method can be used to evaluate and calculate the detection deviation of the instrument.
[0005] The current evaluation technology is carried out in accordance with the standard, but there is no detailed description of the Monte Carlo method for generating hypothetical sample compositions within the instrument's detection range, and no corresponding method for generating hypothetical sample compositions is given for different instrument evaluation situations, which makes it inconvenient for instrument management and usage to grasp the detailed instrument operating status. Summary of the invention
[0006] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a method and system for evaluating the detection deviation of a natural gas chromatograph. The present invention assumes a large amount of reasonable sample data within the range of samples that the instrument may detect to represent the sample composition that the instrument may encounter, so as to verify the deviation between the detection results given by the instrument and the actual values when detecting various possible samples, thereby giving an evaluation conclusion on whether the instrument can work normally.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A first aspect of the present invention provides a method for evaluating detection bias of a natural gas chromatograph.
[0009] A method for evaluating a detection bias of a natural gas chromatograph, comprising:
[0010] Generate hypothetical natural gas sample component contents within the operating range of the natural gas chromatograph;
[0011] Calculate the first high volume calorific value based on the assumed component content of the natural gas sample;
[0012] Based on the assumed component content of the natural gas sample, a calibration function is used to obtain the peak area that will be obtained when the natural gas chromatograph detects the sample; based on the peak area, an analysis function is used to obtain the component content that will be obtained when the natural gas chromatograph detects the sample; based on the component content, the second highest volume calorific value is calculated;
[0013] Based on the first high-level volume calorific value and the second high-level volume calorific value, an average deviation is obtained; the average deviation is compared with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
[0014] Furthermore, the process of generating the hypothetical natural gas sample component contents includes: except for methane, all the hypothetical natural gas sample component contents are generated by a random number generation method.
[0015] Furthermore, except for methane, all the components of the natural gas sample except for methane are generated by random number generation method, wherein the components of the natural gas sample except for methane are:
[0016] c i =random(c il ,c iu )
[0017] The methane component content is:
[0018]
[0019] Among them, c i is the content of other components in natural gas sample except methane, c methane is the methane content, is the sum of the contents of all natural gas sample components except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, random(c il , c iu ) is a random number greater than c in computer language il and less than c iu Functions of numbers.
[0020] Furthermore, the process of generating the hypothetical component content of the natural gas sample also includes: arranging the components of the natural gas according to a certain rule to obtain the component content of the natural gas sample.
[0021] Furthermore, the component contents of the natural gas samples are arranged in a certain order, and the component contents except methane are calculated to calculate the content of the nth odd-numbered component:
[0022] c in奇 =c il +n*(c iu -c il ) / N
[0023] For the nth even-numbered component content:
[0024] c in偶 =c iu -n*(c iu -c il ) / N
[0025] The methane component content is:
[0026]
[0027] Among them, c in奇 represents the content of the nth odd-numbered component except methane, c in偶 represents the content of the nth even-numbered component except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, N is the total number of generated samples, n is a positive integer between 1 and N, c i is the content of other components in natural gas sample except methane, c methane is the methane component content.
[0028] Furthermore, the process of generating the assumed natural gas sample component content also includes: introducing adjustment parameters to expand the maximum and minimum values of the natural gas chromatograph's daily detection sample content range to obtain a range between the maximum and minimum values of the assumed natural gas sample component content.
[0029] Furthermore, the adjustment parameter is the difference between the maximum value and the minimum value of the content range of the daily detection sample of the natural gas chromatograph, divided by the total number of generated samples.
[0030] A second aspect of the present invention provides a system for evaluating detection bias in a natural gas chromatograph.
[0031] A system for evaluating a natural gas chromatograph detection bias, comprising:
[0032] A sample generation module is configured to: generate a hypothetical natural gas sample component content within the working range of the natural gas chromatograph;
[0033] A first calculation module is configured to: calculate a first high-level volume calorific value based on an assumed component content of the natural gas sample;
[0034] The second calculation module is configured to: based on the assumed component content of the natural gas sample, use a calibration function to obtain a peak area that will be obtained when the natural gas chromatograph detects the sample; based on the peak area, use an analysis function to obtain a component content that will be obtained when the natural gas chromatograph detects the sample; and calculate a second high-level volume calorific value based on the component content;
[0035] The detection module is configured to: obtain an average deviation based on the first high-level volume calorific value and the second high-level volume calorific value; compare the average deviation with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
[0036] A third aspect of the present invention provides a computer-readable storage medium.
[0037] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the method for evaluating detection deviation of a natural gas chromatograph as described in the first aspect above.
[0038] A fourth aspect of the present invention provides a computer device.
[0039] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for evaluating detection deviation of a natural gas chromatograph as described in the first aspect above are implemented.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The present invention uses a large amount of computational data to simulate the performance of the instrument when detecting a large number of samples, and uses big data processing technology to save a large amount of experimental materials and time costs. It can more quickly and accurately obtain evaluation conclusions on whether the instrument is working normally and whether it can obtain accurate test results, and provide scientific and reliable maintenance management suggestions for instrument managers.
[0042] The present invention provides two different methods for generating hypothesis compositions. One method is for evaluating the instrument deviation under fully random sample conditions, and the other method can more conveniently evaluate the performance level of the instrument when the sample has different calorific value ranges, providing the instrument management party with more abundant evaluation data references so as to carry out targeted maintenance and adjustment of the instrument.
[0043] The present invention adopts the Monte Carlo method to evaluate the difference between the detection result of the detection instrument and the true value, and gives an evaluation conclusion on whether the instrument can give accurate detection results and whether it can work normally; a large amount of sample data is assumed within the detection range of the instrument, and the response function (calibration function and analysis function) of the instrument is substituted. After calculation, the evaluation conclusion of the operating performance of the instrument can be obtained, thereby saving a lot of material and time costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0045] Figure 1 is a flow chart of a method for evaluating a natural gas chromatograph detection deviation according to the present invention;
[0046] Figure 2 4 is a structural diagram of a system for evaluating detection deviation of a natural gas chromatograph according to the present invention. DETAILED DESCRIPTION
[0047] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0048] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0049] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0050] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and systems according to various embodiments of the present disclosure. It should be noted that each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code may include one or more executable instructions for implementing the logical functions specified in each embodiment. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented using a dedicated hardware-based system that performs a specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0051] Embodiment 1
[0052] like Figure 1 As shown, this embodiment provides a method for evaluating the detection deviation of a natural gas chromatograph. This embodiment uses the method applied to a server as an example for illustration. It is understandable that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network servers, cloud communications, middleware services, domain name services, security services CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application. In this embodiment, the method includes the following steps:
[0053] Generate hypothetical natural gas sample component contents within the operating range of the natural gas chromatograph;
[0054] Calculate the first high volume calorific value based on the assumed component content of the natural gas sample;
[0055] Based on the assumed component content of the natural gas sample, a calibration function is used to obtain the peak area that will be obtained when the natural gas chromatograph detects the sample; based on the peak area, an analysis function is used to obtain the component content that will be obtained when the natural gas chromatograph detects the sample; based on the component content, the second highest volume calorific value is calculated;
[0056] Based on the first high-level volume calorific value and the second high-level volume calorific value, an average deviation is obtained; the average deviation is compared with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
[0057] The present embodiment provides a method for evaluating the detection deviation of a natural gas chromatograph, comprising: generating a sample content data hypothesis, substituting the hypothesized sample content data into a calibration function to calculate a peak area, substituting the peak area into an analysis function to calculate the content that will be obtained when the instrument detects the sample, substituting the hypothesized sample content data and the sample content data that will be obtained when the instrument detects the sample into a physical property parameter calculation algorithm, respectively, comparing the deviation between the physical property parameters obtained from the two sets of data, performing statistical analysis on the deviation results, obtaining an average deviation of the high-level volume calorific value obtained when the instrument detects various possible samples within the daily working range, and judging whether the instrument can work normally through the average deviation data to provide accurate detection results.
[0058] The present embodiment is described in detail below:
[0059] After the natural gas online gas chromatograph and offline gas chromatograph have been in operation for a period of time (such as two years), a performance evaluation should be carried out on the instrument to ensure that the test results given can meet the accuracy requirements specified in the standard.
[0060] Step 1: Set the working range of the instrument, that is, the range of the content of each component of the sample detected by the instrument during daily work. Generally, the data obtained by the statistical instrument from the samples detected in the past year are used to obtain the maximum and minimum values of each component. The maximum and minimum values are appropriately expanded to increase the reliability and applicability of the instrument evaluation results.
[0061] Step 2: Generate the content of each component of the natural gas sample within the working range of the instrument. For natural gas chromatograph, component i generally includes N2, CO2, C1, C2, C3, iC4, nC4, iC5, nC5, neoC5, C6 + In addition, there may also be CO, He, H2, etc. Depending on the representation method, the sum of the content of each component is 100 or 1.
[0062] For component i, its concentration range is calculated by the following formula:
[0063] c il =c imin -(c imax -c imin ) / 4 (1)
[0064] c iu =c imax +(c imax -c imin ) / 4 (2)
[0065] If: c il <0, let c il =0.
[0066] Where: c il is the lower limit of the concentration of component i, c iu is the upper limit of the concentration of component i, c imin is the minimum value of component i in the instrument detection history data, c imax It is the maximum value of component i in the instrument detection historical data.
[0067] Specifically, there are two ways to generate components:
[0068] The first method is to use a completely random method to generate components other than methane. The concentration of components other than methane is generated using the following formula:
[0069] c i =random(c il , c iu ) (3)
[0070] The methane concentration is calculated by the following formula:
[0071]
[0072] Where: c i is the content of other components except methane, c methane is the methane content, is the sum of the contents of all components except methane, random(c il , c iu ) is a random number greater than c in computer language il and less than c iu Functions of numbers.
[0073] The second method arranges the gas components in a certain order. For the components except methane, the calculation formula for the concentration of the nth odd-numbered component is as follows:
[0074] c in =c il +n*(c iu -c il ) / N (5)
[0075] For even-numbered components, the concentration is calculated as follows:
[0076] c in =c iu -n*(c iu -c il ) / N (6)
[0077] Where: N is the total number of generated samples, n is a positive integer between 1 and N, c in is the content of component i in the nth group of samples.
[0078] The methane concentration is also calculated using formula (4).
[0079] Assuming that the sample data is generated by the above two methods, the effect is: the first generation method is closer to the randomness of the concentration of each component of the natural gas sample, and its evaluation result is closer to the actual situation, but all the data generated by it do not have regularity, which is not conducive to the performance characteristics of the graphical analysis instrument.
[0080] The advantage of the second generation method is that after the physical property parameters of the generated sample composition are calculated, its high volume calorific value has a certain regularity from 1 to N samples, so that a statistical chart can be generated. In the statistical chart, it can be seen that when the instrument detects gas samples with different calorific values, its deviation is positive or negative, the deviation value is large or small, and other statistical regularities.
[0081] The present invention provides two different methods for generating hypothesis compositions. One method is for evaluating the instrument deviation under fully random sample conditions, and the other method can more conveniently evaluate the performance level of the instrument when the sample heat value is in different ranges, providing the instrument manager with more abundant evaluation data references so as to carry out targeted instrument maintenance and adjustment.
[0082] Step 3: Substitute the assumed natural gas sample component content data into the physical property parameter calculation algorithm (GB / T11062 method) to obtain the values of physical property parameters such as high-level volume calorific value;
[0083] Step 4: Substitute the assumed natural gas sample component content data into the instrument's calibration function to obtain the peak area that the instrument will obtain when detecting the sample. The calibration function is as follows:
[0084] y i =a0+a1x+a2x 2 +a3x 3
[0085] Where: y i is the peak area of component i after instrument detection, a u is the function coefficient obtained by regression calculation (numerical constant, a0, a2, a3 may be 0 depending on the working condition of the instrument), and x is the content of component i.
[0086] Step 5: Substitute the peak area obtained in step 4 into the analysis function of the instrument to obtain the composition content given by the instrument when detecting the sample. There will generally be a certain difference between this data and the assumed composition content. The analysis function form is as follows:
[0087] z i=b0+b1m+b2m 2 +b3m 3
[0088] Where: z i is the molar content of component i after instrument detection, b v is the function coefficient obtained by regression calculation (a numerical constant; b0, b2, and b3 may be 0 depending on the working condition of the instrument); m is the peak area response value calculated in step 4.
[0089] Step 6: Substitute the composition content obtained in step 5 into the physical property parameter calculation algorithm to obtain the value of physical property parameters such as high volume calorific value;
[0090] Step 7: Generally speaking, for the energy measurement mode of natural gas trade, the most concerned physical parameter is the high volume calorific value. Therefore, this method mainly performs statistical analysis on the high volume calorific value, compares the deviation between the high volume calorific values obtained in step 3 and step 6, and statistically obtains the average deviation (of 10,000 sets of data);
[0091] Step 8: Compare the average deviation obtained in step 7 with the maximum allowable error specified in relevant national standards to obtain an evaluation conclusion on whether the instrument detection accuracy meets the requirements.
[0092] The present invention uses the Monte Carlo method to evaluate the difference between the detection result of the detection instrument and the true value, and gives an evaluation conclusion on whether the instrument can give accurate detection results and whether it can work normally. The main invention point is that a large amount of sample data is assumed within the detection range of the instrument, and the response function (calibration function and analysis function) of the instrument is substituted. After calculation, the operating performance evaluation conclusion of the instrument can be obtained, which saves a lot of material and time costs.
[0093] Embodiment 2
[0094] This embodiment provides a system for evaluating detection deviation of a natural gas chromatograph.
[0095] like Figure 2 As shown, a system for evaluating a detection deviation of a natural gas chromatograph comprises:
[0096] A sample generation module is configured to: generate a hypothetical natural gas sample component content within the working range of the natural gas chromatograph;
[0097] A first calculation module is configured to: calculate a first high-level volume calorific value based on an assumed component content of the natural gas sample;
[0098] The second calculation module is configured to: based on the assumed component content of the natural gas sample, use a calibration function to obtain a peak area that will be obtained when the natural gas chromatograph detects the sample; based on the peak area, use an analysis function to obtain a component content that will be obtained when the natural gas chromatograph detects the sample; and calculate a second high-level volume calorific value based on the component content;
[0099] The detection module is configured to: obtain an average deviation based on the first high-level volume calorific value and the second high-level volume calorific value; compare the average deviation with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
[0100] In some embodiments, the sample generation module is further configured to generate the hypothetical natural gas sample component contents using a random number generation method, except for methane.
[0101] The content of natural gas sample components other than methane is:
[0102] c i =random(c il , c iu )
[0103] The methane component content is:
[0104]
[0105] Among them, c i is the content of other components in natural gas sample except methane, c methane is the methane content, is the sum of the contents of all natural gas sample components except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, random(c il , c iu ) is a random number greater than c in computer language il and less than c iu Functions of numbers.
[0106] In some embodiments, the sample generation module is further configured to: arrange the components of the natural gas according to a certain rule to obtain the component content of the natural gas sample.
[0107] Specifically, the component contents of the natural gas samples are arranged in a certain order, and the content of the components other than methane is calculated, and the content of the nth odd-numbered component is calculated:
[0108] c in奇 =c il +n*(c iu -cil ) / N
[0109] For the nth even-numbered component content:
[0110] c in偶 =c iu -n*(c iu -c il ) / N
[0111] The methane component content is:
[0112]
[0113] Among them, c in奇 represents the content of the nth odd-numbered component except methane, c in偶 represents the content of the nth even-numbered component except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, N is the total number of generated samples, n is a positive integer between 1 and N, c i is the content of other components in natural gas sample except methane, c methane is the methane component content.
[0114] In some embodiments, the sample generation module is further configured to introduce an adjustment parameter to expand the maximum and minimum values of the natural gas chromatograph daily detection sample content range to obtain a range between the maximum and minimum values of the assumed natural gas sample component content. The adjustment parameter is the difference between the maximum and minimum values of the natural gas chromatograph daily detection sample content range, divided by the total number of generated samples.
[0115] Embodiment 3
[0116] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for evaluating the detection deviation of a natural gas chromatograph as described in the first embodiment above are implemented.
[0117] Embodiment 4
[0118] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for evaluating the detection deviation of a natural gas chromatograph as described in the first embodiment above are implemented.
[0119] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0120] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for evaluating the detection deviation of a natural gas chromatograph, characterized in that: include: Generate hypothetical natural gas sample component contents within the operating range of the natural gas chromatograph; Calculate the first high volume calorific value based on the assumed component content of the natural gas sample; Based on the assumed component content of the natural gas sample, a calibration function is used to obtain the peak area that will be obtained when the natural gas chromatograph detects the sample; Based on the peak area, using an analysis function, obtain the composition content that will be obtained when the natural gas chromatograph detects the sample; based on the composition content, calculate the second highest volume calorific value; Based on the first high-level volume calorific value and the second high-level volume calorific value, an average deviation is obtained; the average deviation is compared with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
2. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 1, characterized in that: The process of generating the hypothetical natural gas sample component content includes: except for methane, all the hypothetical natural gas sample component contents are generated by a random number generation method.
3. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 2, characterized in that: Except for methane, all the components of the natural gas sample except methane are generated by random number generation method, wherein the components of the natural gas sample except methane are: c i =random(c il ,c iu ) The methane component content is: Among them, c i is the content of other components in natural gas sample except methane, c methane is the methane content, is the sum of the contents of all natural gas sample components except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, random(c il , c iu ) is a random number greater than c in computer language il and less than c iu Functions of numbers.
4. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 2, characterized in that: The process of generating the hypothetical component content of the natural gas sample also includes: arranging the components of the natural gas according to a certain rule to obtain the component content of the natural gas sample.
5. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 4, characterized in that: Arrange the component contents of the natural gas sample in a certain order, except for the content of methane, and calculate the content of the nth odd-numbered component: c in奇 =c il +n*(c iu -c il ) / N For the nth even-numbered component content: c in偶 =c iu -n*(c iu -c il ) / N The methane component content is: Among them, c in奇 represents the content of the nth odd-numbered component except methane, c in偶 represents the content of the nth even-numbered component except methane, c il Indicates the lower limit of the content of other natural gas sample components except methane, c iu Indicates the upper limit of the content of other natural gas sample components except methane, N is the total number of generated samples, n is a positive integer between 1 and N, c i is the content of other components in natural gas sample except methane, c methane is the methane component content.
6. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 1, characterized in that: The process of generating the assumed natural gas sample component content also includes: introducing adjustment parameters to expand the maximum and minimum values of the natural gas chromatograph's daily detection sample content range to obtain a range between the maximum and minimum values of the assumed natural gas sample component content.
7. The method for evaluating the detection deviation of a natural gas chromatograph according to claim 6, characterized in that: The adjustment parameter is the difference between the maximum and minimum values of the sample content range detected by the natural gas chromatograph on a daily basis, divided by the total number of generated samples.
8. A system for evaluating a natural gas chromatograph detection bias, characterized in that: include: A sample generation module is configured to: generate a hypothetical natural gas sample component content within the working range of the natural gas chromatograph; A first calculation module is configured to: calculate a first high-level volume calorific value based on an assumed component content of the natural gas sample; The second calculation module is configured to: based on the assumed component content of the natural gas sample, use a calibration function to obtain a peak area that will be obtained when the natural gas chromatograph detects the sample; based on the peak area, use an analysis function to obtain a component content that will be obtained when the natural gas chromatograph detects the sample; and calculate a second high-level volume calorific value based on the component content; The detection module is configured to: obtain an average deviation based on the first high-level volume calorific value and the second high-level volume calorific value; compare the average deviation with a set maximum allowable error to determine whether the detection accuracy of the natural gas chromatograph meets the requirements.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for evaluating detection deviation of a natural gas chromatograph as described in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for evaluating detection deviation of a natural gas chromatograph according to any one of claims 1 to 7 are implemented.