CN116907738A - Oil discharge gas recovery test method, terminal equipment and storage medium - Google Patents

Oil discharge gas recovery test method, terminal equipment and storage medium Download PDF

Info

Publication number
CN116907738A
CN116907738A CN202311182787.3A CN202311182787A CN116907738A CN 116907738 A CN116907738 A CN 116907738A CN 202311182787 A CN202311182787 A CN 202311182787A CN 116907738 A CN116907738 A CN 116907738A
Authority
CN
China
Prior art keywords
oil
gas recovery
recovery rate
scene
oil gas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311182787.3A
Other languages
Chinese (zh)
Other versions
CN116907738B (en
Inventor
彭昊华
武广学
安俊超
毛立森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beidou Navigation Technology Guangzhou Co ltd
Original Assignee
Beidou Navigation Technology Guangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beidou Navigation Technology Guangzhou Co ltd filed Critical Beidou Navigation Technology Guangzhou Co ltd
Priority to CN202311182787.3A priority Critical patent/CN116907738B/en
Publication of CN116907738A publication Critical patent/CN116907738A/en
Application granted granted Critical
Publication of CN116907738B publication Critical patent/CN116907738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B67OPENING, CLOSING OR CLEANING BOTTLES, JARS OR SIMILAR CONTAINERS; LIQUID HANDLING
    • B67DDISPENSING, DELIVERING OR TRANSFERRING LIQUIDS, NOT OTHERWISE PROVIDED FOR
    • B67D7/00Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes
    • B67D7/04Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes for transferring fuels, lubricants or mixed fuels and lubricants
    • B67D7/0476Vapour recovery systems
    • B67D7/0496Performance test devices therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M3/00Investigating fluid-tightness of structures
    • G01M3/02Investigating fluid-tightness of structures by using fluid or vacuum
    • G01M3/26Investigating fluid-tightness of structures by using fluid or vacuum by measuring rate of loss or gain of fluid, e.g. by pressure-responsive devices, by flow detectors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/008Subject matter not provided for in other groups of this subclass by doing functionality tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Medical Informatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Mechanical Engineering (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The application relates to the technical field of equipment fluid tightness test, in particular to an oil discharge and gas recovery test method, terminal equipment and a storage medium. The method comprises the following steps: according to the input historical sample, calculating the mode of the oil gas recovery rate and a plurality of first control parameters in a first scene, and obtaining optimal control parameters through a clustering algorithm; acquiring and analyzing a second control parameter of a second scene, and constructing an oil gas recovery rate model of the second scene; taking the mode of the oil gas recovery rate and the optimal control parameter as constraint conditions, performing linear programming on the oil gas recovery rate of the second scene according to a preset objective function to obtain the optimal recovery rate of the second scene, and generating and outputting the maximum value of the oil gas recovery rate in the second scene; and generating a test result according to the oil gas recovery rate model, judging whether the recovery rate of the oil discharge oil gas recovery system is qualified or not, and sending an alarm signal if the recovery rate is not qualified. The application can achieve the effect of accurately testing the oil gas recovery rate of the oil discharge oil gas recovery system.

Description

Oil discharge gas recovery test method, terminal equipment and storage medium
Technical Field
The application relates to the technical field of equipment fluid tightness test, in particular to an oil discharge and gas recovery test method, terminal equipment and a storage medium.
Background
The oil gas recovery of the gas station refers to collecting volatilized oil gas in the process of loading and unloading gasoline and refueling a vehicle, and the aim of recycling is achieved by one or two methods of absorption, adsorption or condensation and the like, or reducing pollution of the oil gas, or converting the oil gas from a gas state to a liquid state and then converting the oil gas into the gasoline again. The oil and gas recovery test is a test performed to evaluate and monitor the oil and gas recovery efficiency and quality during oil removal. Oil gas recovery refers to extracting oil gas from oil gas sources (such as storage tanks, pipelines, equipment and the like), and processing and utilizing the oil gas through corresponding recovery systems so as to reduce the waste of energy resources and environmental pollution.
In the prior art, the oil gas recovery effect needs to be tested in oil gas recovery, parameters such as the volume, flow and concentration of recovered oil gas can be obtained through the oil gas recovery effect, and the air tightness of the oil gas recovery system is judged by comparing the return air volume with the oil gas recovery volume.
However, the method in the prior art only relates to the recovery effect, the recovery effect only pays back the recovered oil gas volume, but ignores the recovery rate, if the recovery rate is low, only a small part of oil gas can be recovered in the oil-discharging oil-gas recovery system, and a large amount of oil gas is not recovered, which may be caused by the problems of air tightness, hardware facility faults and the like of the oil-discharging oil-gas recovery system, and if the recovery rate is low, the phenomena of resource waste and environmental pollution may be caused if the condition of the recovery rate is not found and solved in time.
Disclosure of Invention
In order to solve one or more of the technical problems, the application provides an oil and gas recovery test method, terminal equipment and storage medium, which can test the oil and gas recovery rate in an oil and gas recovery system so as to judge whether the oil and gas recovery system has the problems of air tightness or hardware facility faults and the like. To this end, the present application provides solutions in various aspects as follows.
In a first aspect, the method for testing oil and gas recovery of oil and gas provided by the application adopts the following technical scheme:
the oil discharge and gas recovery test method comprises the following steps: according to the input historical sample, calculating the mode of the oil gas recovery rate and a plurality of first control parameters in a first scene, and obtaining optimal control parameters through a clustering algorithm; acquiring and analyzing a second control parameter of a second scene, and constructing an oil gas recovery rate model of the second scene, wherein the oil gas recovery rate model meets the relation:
, wherein ,/>For oil and gas recovery in the second scenario, +.>The method is characterized in that the method is the oil-gas pressure difference between an underground storage tank and an oil tank truck, v is the oil unloading rate, H is the height of oil in the underground storage tank, H is the height of the underground storage tank, e is the base number of a natural logarithmic function, a is a first coefficient, b is a second coefficient, and c is a third coefficient; taking the mode of the oil gas recovery rate and the optimal control parameter as constraint conditions, performing linear programming on the oil gas recovery rate of a second scene according to a preset objective function to obtain the optimal recovery rate of the second scene, generating and outputting the maximum value of the oil gas recovery rate under the second scene, wherein the objective function is a target functionThe function is: />, wherein ,/>Is the maximum value of oil gas recovery rate>The oil gas recovery rate in the second scene is;
and obtaining the maximum value of the oil gas recovery rate under the second scene, generating a test result according to the oil gas recovery rate model, judging whether the recovery rate of the oil discharge oil gas recovery system is qualified or not, and sending an alarm signal if the recovery rate is not qualified.
By adopting the technical scheme, the first scene is the similar scene, the second scene is the actual current scene, the optimal oil gas recovery rate and the first control parameter corresponding to the optimal oil gas recovery rate under the similar scene are obtained, the oil gas recovery rate under the current scene is obtained according to the actual situation, the optimal solution of the oil gas recovery rate is obtained through controlling the second control parameter under the actual situation, and the oil gas recovery rate under the actual situation is obtained according to the optimal solution of the oil gas recovery rate, so that the performance of the oil discharge oil gas recovery system is judged. If the recovery rate of the oil and gas recovery system is judged to be unqualified, an alarm signal is sent, and through the alarm signal, a user can timely find out the condition of lower oil and gas recovery rate, judge whether the oil and gas recovery system has the problems of air tightness or hardware facility faults and the like, and reduce the phenomena of resource waste and environmental pollution.
Preferably, the constraint includes a first constraint that is, wherein ,/>For oil and gas recovery in the second scenario, +.>For oil and gas in history samples in a first sceneMode of recovery.
By adopting the technical scheme, the first constraint condition indicates that the oil gas recovery rate in the current scene is greater than the historical maximum recovery rate in the similar scene.
Preferably, the constraint further includes a second constraint, where the second constraint is, wherein ,/>For said second control parameter in the second scenario,/or->For the optimal control parameters in the history samples in the first scenario +.>For the smallest parameter of the second control parameters +.>F is the maximum of the second control parameters and +.>Is a difference in (c).
By adopting the technical scheme, the second constraint condition indicates that the control parameters in the current scene are in the threshold range of the optimal control parameters, the value of the threshold range is between the maximum value and the minimum value of the distances between the plurality of groups of first control parameters and the optimal control parameters, the maximum value of the distances between the plurality of groups of first control parameters and the optimal control parameters is used as one interval endpoint of the threshold range, and the minimum value of the distances between the plurality of groups of first control parameters and the optimal control parameters is used as the other interval endpoint of the threshold range.
Preferably, the clustering algorithm is a k-means clustering algorithm.
By adopting the technical scheme, a group of optimal control parameters corresponding to the optimal recovery rate obtained under similar scenes can be obtained, and the k-means clustering algorithm is a simple and efficient clustering algorithm and is suitable for rapid clustering of large-scale data sets.
Preferably, the obtaining the optimal control parameter by the clustering algorithm includes the following steps: constructing a third control parameter; calculating the sum of the distances between the third control parameter and a plurality of first control parameters; and repeatedly updating the third control parameter until the sum of the distances between the third control parameter and the first control parameter is smaller than a preset distance threshold value, and obtaining the optimal control parameter.
By adopting the technical scheme, the third control parameter is a virtual control parameter, the first control parameter is used as a control parameter to be optimized, a group of virtual control parameters is set as an initial value, the sum of the distances between the virtual control parameter and the first group of parameters in the first control parameter is calculated, and the steps of setting the virtual control parameter and calculating are repeated until the sum of the distances between the third control parameter and the first control parameter is smaller than a preset distance threshold, namely, the sum of the distances is minimum, so that a group of optimal control parameters corresponding to the optimal recovery rate obtained under similar scenes can be obtained.
Preferably, the determining whether the recovery rate of the oil and gas recovery system is qualified includes: if the objective function in the test result has a solution, judging that the recovery rate of the oil and gas recovery system in the second scene is qualified; and if the objective function in the test result is not solved, judging that the recovery rate of the oil and gas recovery system in the second scene is unqualified, and sending an alarm signal.
By adopting the technical scheme, whether the recovery rate of the oil and gas recovery system is qualified is judged by taking whether the objective function in the test result has a solution as a judgment basis, and if the recovery rate is judged to be unqualified, an alarm signal is sent, and a user can timely find out the condition of lower oil and gas recovery rate through the alarm signal.
In a second aspect, the application discloses a terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor adopts the oil and gas recovery test method when loading and executing the computer program.
By adopting the technical scheme, the computer program is generated by the oil discharge oil gas recovery testing method and stored in the memory to be loaded and executed by the processor, so that terminal equipment is manufactured according to the memory and the processor, and the use of a user is facilitated.
In a third aspect, the present application discloses a computer readable storage medium, which adopts the following technical scheme: the system comprises a processor, a computer readable storage medium, a control unit and a control unit, wherein the computer readable storage medium stores a computer program, and the computer program adopts the oil and gas recovery test method when being loaded and executed by the processor.
By adopting the technical scheme, the method for testing the recovery of the discharged oil and gas generates a computer program, and the computer program is stored in a computer readable storage medium to be loaded and executed by a processor, and the computer program is convenient to read and store by the computer readable storage medium.
The application has the following technical effects:
1. according to the application, the optimal oil gas recovery rate and the corresponding first control parameters under similar scenes are obtained, the oil gas recovery rate under the current scene is obtained according to the actual situation, the optimal solution of the oil gas recovery rate is obtained by controlling the second control parameters under the actual situation, and the oil gas recovery rate under the actual situation is obtained according to the optimal solution of the oil gas recovery rate, so that the performance of the oil gas recovery system of the oil discharge is judged.
2. If the recovery rate of the oil and gas recovery system is judged to be unqualified, an alarm signal is sent, and through the alarm signal, a user can timely find out the condition of lower oil and gas recovery rate, judge whether the oil and gas recovery system has the problems of air tightness or hardware facility faults and the like, and reduce the phenomena of resource waste and environmental pollution.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. In the drawings, several embodiments of the application are illustrated by way of example and not by way of limitation, and like or corresponding reference numerals refer to like or corresponding parts.
FIG. 1 is a flow chart of a method for testing steps S1-S4 in an oil and gas recovery test method according to an embodiment of the application.
FIG. 2 is a flow chart of a method for testing the recovery of oil and gas in steps S10-S12 in an embodiment of the application.
Fig. 3 is a logic frame diagram showing a data acquisition terminal in an oil and gas recovery test method according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a component framework of a terminal device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that when the terms "first," "second," and the like are used in the claims, the specification and the drawings of the present application, they are used merely for distinguishing between different objects and not for describing a particular sequential order. The terms "comprises" and "comprising" when used in the specification and claims of the present application are taken to specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The embodiment of the application discloses an oil and gas recovery test method, which aims at the specific scene that an oil truck recovers generated oil and gas in the oil unloading process, and the recovery rate of an oil and gas recovery system is tested, and referring to FIG. 1, the oil and gas recovery test method comprises the following steps S1-S4, and the specific steps are as follows:
s1, calculating the mode of the oil gas recovery rate and a plurality of first control parameters in a first scene according to an input historical sample, and obtaining the optimal control parameters through a clustering algorithm.
The first scene in the application is a similar scene, and is a constructed set scene, and the mode of the oil gas recovery rate in the similar scene is used as the optimal oil gas recovery rate.
Because the recovery rate of the oil and gas discharged is required to be tested, historical data of the recovery rate in similar scenes are required to be collected, and the recovery rate which can be generally achieved in the similar scenes is obtained and is used as a standard of qualified recovery rate and a corresponding control parameter under the recovery rate is used as a first control parameter.
Parameters such as oil unloading rate, oil quantity in an oil storage tank, air pumping rate, temperature, oscillation amplitude of liquid level in the oil storage tank, volume of the oil storage tank, gas pressure in the oil storage tank, and nature of oil gas are collected in a historical sample, and the mode of oil gas recovery rate is obtained in a similar scene.
According to the application, a scene with the same property of oil gas and the same temperature and the volume difference of the oil storage tank within 5% is taken as a first scene, for example, gasoline with the same octane number is collected, the temperature range is 28.5-31.5 ℃, the volume range of the oil storage tank is 190-210 liters, the mode of recovery rate in the first scene is collected, a plurality of groups of first control parameters corresponding to the maximum recovery rate are obtained, and the mode of recovery rate in the similar scene can be 95%.
The first control parameter may be an oil discharge rate, an air extraction rate, an oil amount in the oil storage tank, a liquid level oscillation amplitude in the oil storage tank, or/and a gas pressure.
The clustering algorithm selects a k-means clustering algorithm (k-means clustering algorithm), and k-means clustering is performed on the first control parameters to obtain a group of optimal control parameters, and referring to fig. 2, the method for obtaining the optimal control parameters comprises steps S10-S12, specifically as follows:
s10: and constructing a third control parameter.
The third control parameter is a virtual control parameter.
S11: and calculating the sum of the distances between the third control parameter and the first control parameters.
S12: and repeatedly updating the third control parameter until the sum of the distances between the third control parameter and the first control parameter is smaller than a preset distance threshold value, and obtaining the optimal control parameter.
The third control parameter is a virtual control parameter, the first control parameter is used as a control parameter to be optimized, a group of virtual control parameters are set as initial values, the sum of the distances between the virtual control parameter and the first group of parameters in the first control parameter is calculated, and the steps of setting the virtual control parameter and calculating are repeated until the sum of the distances between the virtual control parameter and the first control parameter is smaller than a preset distance threshold, namely, the sum of the distances is minimum.
The optimal control parameter is a control parameter value obtained through a clustering algorithm, and the sum of the distances between the virtual control parameter and the first control parameter can be minimized.
Through step S1, the most oil gas recovery rate and a group of optimal control parameters corresponding to the oil gas recovery rate under the first scene can be obtained.
And S2, acquiring and analyzing a second control parameter of the second scene, and constructing an oil gas recovery rate model of the second scene.
In the application, the second scene is the current scene, namely the current actual scene in need of calculating the oil gas recovery rate.
In the oil unloading process of the oil tank truck, the oil pressure in the oil tank truck is reduced due to the reduction of the oil volume in the oil tank truck, the oil pressure in the underground storage tank is increased due to the increase of the oil volume in the underground storage tank, the oil gas pressure difference between the underground storage tank and the oil tank truck enables volatilized oil gas in the oil unloading process to return to the oil tank truck through a pipeline, the purpose of oil gas collection is achieved, the oil unloading is finished, and the oil gas pressure in the underground storage tank and the oil tank truck reaches an equilibrium state. The larger oil gas pressure difference can promote the oil gas to flow rapidly, thereby being beneficial to improving the recovery rate. The faster the oil removal rate, the faster the amount of oil in the underground storage tank increases, and the more oil and gas is produced.
When the oil product is input into the underground storage tank, volatilization and dissipation of oil gas are increased due to fluctuation of liquid level oscillation, and the higher the oil height in the underground storage tank is, the larger the fluctuation amplitude of the liquid level oscillation is, so that more oil gas is generated. However, because the height of the underground storage tank is limited, when the oil quantity in the underground storage tank reaches about half of the volume of the underground storage tank, the oscillation fluctuation amplitude of the liquid level can reach the maximum value, and therefore, the oscillation fluctuation amplitude of the liquid level reaches the maximum value about half of the height of the underground storage tank.
Therefore, the recovery rate of oil gas is positively correlated with the oil gas pressure difference between the underground storage tank and the oil tank truck, and is negatively correlated with the oil unloading rate and the oil height in the underground storage tank. Setting an oil gas recovery rate model to satisfy the relation:
wherein ,for oil and gas recovery in the second scenario, +.>The pressure difference between the underground storage tank and the oil tank truck is v, the oil unloading rate is H, the height of the oil in the underground storage tank is H, the height of the underground storage tank is H, e is the base number of a natural logarithmic function, a is a first coefficient, b is a second coefficient, and c is a third coefficient.
According to the method, a first coefficient, a second coefficient and a third coefficient are obtained by using a least square method according to historical data of oil gas pressure difference, oil unloading rate and oil height in the underground storage tank and the oil tank truck in the current scene, so that an oil gas recovery model in the current scene is obtained. The least squares method is a fitting method for estimating parameters in a linear model, and finds the optimal parameter estimation by minimizing the sum of squares of residuals between actual observations and model predictions.
For parameters in the oil and gas recovery rate model, for example, the oil and gas pressure in the underground storage tank of the collected filling station can be-5 Pa, the oil and gas pressure in the oil tank truck can be 5Pa, and the oil and gas pressure difference between the underground storage tank and the oil tank truckThe height of the underground storage tank is 10 Pa m, the height of the oil in the underground storage tank is 5m, the oil discharging speed is 300L/min, and the oil discharging process is carried outThe pressure of the oil gas in the underground storage tank is increased, the pressure of the oil gas in the oil tank truck is reduced, and the pressure difference enables the oil gas in the underground storage tank to flow to the oil tank truck through a pipeline. Substituting the calculated first parameter, second parameter and third parameter into the oil gas recovery rate model to satisfy the relation, and calculating to obtain the oil gas recovery rate R in the second scene.
In step S2, the input is a second control parameter in the second scenario, and the output is a hydrocarbon recovery model in the second scenario.
And S3, taking the mode of the oil gas recovery rate and the optimal control parameter as constraint conditions, performing linear programming on the oil gas recovery rate of the second scene according to a preset objective function to obtain the optimal recovery rate of the second scene, and generating and outputting the maximum value of the oil gas recovery rate in the second scene.
The linear programming method is as follows: setting the objective function as
wherein ,is the maximum value of oil gas recovery rate>The oil-gas pressure difference between the underground storage tank and the oil tank truck is that v is the oil unloading rate, H is the height of oil in the underground storage tank, H is the height of the underground storage tank, e is the base number of a natural logarithmic function, a is a first coefficient, b is a second coefficient, c is a third coefficient, and the values of the first coefficient, the second coefficient and the third coefficient are all determined in the step S2.
Constraints include a first constraint and a second constraint, specifically,
the first constraint is:, wherein ,/>For oil and gas recovery in the second scenario, +.>Is the mode of the recovery of oil and gas in the history sample in the first scene.
The second constraint is:, wherein ,/>For a second control parameter in a second scenario, < +.>For optimal control parameters in the history samples in the first scenario,/or->For the smallest parameter of the second control parameters +.>F is the maximum parameter of the second control parameters and +.>Is a difference in (c).
The first constraint condition indicates that the oil gas recovery rate in the second scene is larger than the historical optimal recovery rate in the first scene;
the second constraint condition indicates that the control parameters in the second scene are in a threshold range of the optimal control parameters, wherein the value of the threshold range is between the maximum value and the minimum value of the distances between the plurality of groups of first control parameters and the optimal control parameters, the maximum value of the distances between the plurality of groups of first control parameters and the optimal control parameters is used as one interval endpoint of the threshold range, and the minimum value of the distances between the plurality of groups of first control parameters and the optimal control parameters is used as the other interval endpoint of the threshold range.
For example, the mode of the recovery rate of oil and gas in the historical samples under similar collected scenes is 95%, the oil unloading rate is 285-315 liters/min, the oil and gas pressure difference between the underground storage tank and the oil tank truck is 9-11 Pa, and the height of the underground storage tank is 18-22 m.
The subsequent step needs to determine whether the oil and gas recovery rate in the second scene is acceptable, and the oil and gas recovery rate in the current scene needs to be maximized by the second control parameter because the oil and gas recovery rate in the second scene may be unacceptable due to the second control parameter.
In step S3, the input is an objective function and a constraint condition, and the output is the maximum value of the oil gas recovery rate in the current scene.
And S4, obtaining the maximum value of the oil gas recovery rate in the second scene, generating a test result according to the oil gas recovery rate model, judging whether the recovery rate of the oil-unloading oil gas recovery system is qualified or not, and sending an alarm signal if the recovery rate of the oil-unloading oil gas recovery system is not qualified.
If the objective function in the test result has a solution, judging that the recovery rate of the oil-discharging oil-gas recovery system in the second scene is qualified, and sending a qualified signal; and if the objective function in the test result is not solved, judging that the recovery rate of the oil and gas recovery system in the second scene is unqualified, and sending an alarm signal.
The qualifying signal may be a light signal of a particular color, such as green light, or a text signal, such as a qualifying typeface displayed on a visual display device.
The alarm signal can be a signal which gives out warning to staff in a sound, light, vibration and other modes, such as alarm sound, flash lamp and the like, can be a light signal with a specific color, such as red light, can be a text signal, can timely draw attention of the staff if a visual display device displays an unqualified character and the like, and can cause pollution to the environment if the recovery rate is unqualified, so that the air tightness of the system or the problems of hardware facilities are described, and the positions of an oil discharging pipeline, an air return pipeline, an oil storage tank and the like are required to be checked for air tightness.
The model matching can be carried out on the fuelling vehicle through parameters such as the oil unloading rate of the fuelling vehicle, the oil tank volume of the fuelling vehicle and the like. For example, in the oil and gas recovery process, the optimal control parameter corresponding to the optimal recovery rate obtained by linear programming may be the oil recovery rate: 300 liters/min, tank volume of tanker: 200 liters, the oil unloading rate is 285 liters/min-315 liters/min, and the oil tank volume is 190 liters-210 liters, thereby controlling the oil gas recovery to reach the maximum value.
In step S4, the input is the maximum value of the oil gas recovery rate under the second scene, and the output is a judging result, a qualified signal or an alarm signal.
Referring to fig. 3, in the application, a data acquisition terminal is adopted to collect and record various acquired parameters of a site or a remote place, such as parameters of oil unloading rate, air pumping rate, oil quantity in an oil storage tank, liquid level oscillation amplitude in the oil storage tank, gas pressure and the like, and the parameters are transmitted to a data processing system for analysis and processing, wherein a data acquisition main board is packaged in the data acquisition terminal, and the data acquisition main board is connected with a power supply connector, a pulse signal isolation circuit, an optical coupling isolation circuit, a protection circuit, an RS232 conversion chip, a multipath RS232 connection interface, an RS-485 conversion chip, a high-capacity high-speed built-in storage chip, an internet of things SIM (Subscriber Identity Module ) clamping groove, an internet of things communication module, an IPEX interface, a system running state indicator lamp, a Beidou positioning chip, a Beidou time service correction clock, an industrial master control CPU and the like.
The embodiment of the application relates to an implementation principle of an oil discharge oil gas recovery test method, which comprises the following steps:
obtaining the optimal oil gas recovery rate and the corresponding first control parameters under the similar scene, obtaining the oil gas recovery rate under the current scene according to the actual situation, obtaining the optimal solution of the oil gas recovery rate through controlling the second control parameters under the actual situation, obtaining the oil gas recovery rate under the actual situation according to the optimal solution of the oil gas recovery rate, and judging the performance of the oil gas recovery system of the unloading oil.
If the recovery rate of the oil and gas recovery system is judged to be unqualified, an alarm signal is sent, and through the alarm signal, a user can timely find out the condition of lower oil and gas recovery rate, judge whether the oil and gas recovery system has the problems of air tightness or hardware facility faults and the like, and reduce the phenomena of resource waste and environmental pollution.
The embodiment of the application also discloses a terminal device, referring to fig. 4, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor adopts the oil and gas recovery test method of the embodiment when executing the computer program.
The terminal device may be a computer device such as a desktop computer, a notebook computer, or a cloud server, and the terminal device includes, but is not limited to, a processor and a memory, for example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), or of course, according to actual use, other general purpose processors, digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), ready-made programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., and the general purpose processor may be a microprocessor or any conventional processor, etc., which is not limited in this respect.
The memory may be an internal storage unit of the terminal device, for example, a hard disk or a memory of the terminal device, or an external storage device of the terminal device, for example, a plug-in hard disk, a Smart Memory Card (SMC), a secure digital card (SD), or a flash memory card (FC) provided on the terminal device, or the like, and may be a combination of the internal storage unit of the terminal device and the external storage device, where the memory is used to store a computer program and other programs and data required by the terminal device, and the memory may be used to temporarily store data that has been output or is to be output, which is not limited by the present application.
The oil and gas recovery test method of the embodiment is stored in the memory of the terminal equipment through the terminal equipment, and is loaded and executed on the processor of the terminal equipment, so that the user can use the oil and gas recovery test method conveniently.
The embodiment of the application also discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the oil and gas recovery test method of the embodiment is adopted when the computer program is executed by a processor.
The computer program may be stored in a computer readable medium, where the computer program includes computer program code, where the computer program code may be in a source code form, an object code form, an executable file form, or some middleware form, etc., and the computer readable medium includes any entity or device capable of carrying the computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, etc., where the computer readable medium includes, but is not limited to, the above components.
The method for testing the oil and gas recovery of the embodiment is stored in the computer readable storage medium through the computer readable storage medium, and is loaded and executed on a processor, so that the storage and the application of the method for testing the oil and gas recovery of the embodiment are convenient.
The foregoing description of the preferred embodiments of the application is not intended to limit the scope of the application in any way, including the abstract and drawings, in which case any feature disclosed in this specification (including abstract and drawings) may be replaced by alternative features serving the same, equivalent purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.

Claims (8)

1. The oil and gas recovery test method is applied to an oil and gas recovery system and is characterized by comprising the following steps of:
according to the input historical sample, calculating the mode of the oil gas recovery rate and a plurality of first control parameters in a first scene, and obtaining optimal control parameters through a clustering algorithm;
acquiring and analyzing a second sceneAnd controlling parameters, and constructing an oil gas recovery rate model of the second scene, wherein the oil gas recovery rate model meets the relation:
wherein ,for oil and gas recovery in the second scenario, +.>The method is characterized in that the method is the oil-gas pressure difference between an underground storage tank and an oil tank truck, v is the oil unloading rate, H is the height of oil in the underground storage tank, H is the height of the underground storage tank, e is the base number of a natural logarithmic function, a is a first coefficient, b is a second coefficient, and c is a third coefficient;
taking the mode of the oil gas recovery rate and the optimal control parameter as constraint conditions, performing linear programming on the oil gas recovery rate of the second scene according to a preset objective function to obtain the optimal recovery rate of the second scene, and generating and outputting the maximum value of the oil gas recovery rate under the second scene, wherein the objective function is as follows:, wherein ,/>Is the maximum value of oil gas recovery rate>The oil gas recovery rate in the second scene is;
and obtaining the maximum value of the oil gas recovery rate under the second scene, generating a test result according to the oil gas recovery rate model, judging whether the recovery rate of the oil discharge oil gas recovery system is qualified or not, and sending an alarm signal if the recovery rate is not qualified.
2. The method of claim 1, wherein the constraints include a first constraint,
the first constraint is that, wherein ,/>For oil and gas recovery in the second scenario, +.>Is the mode of the recovery of oil and gas in the history sample in the first scene.
3. The method of claim 2, wherein the constraints further comprise a second constraint,
the second constraint is that, wherein ,/>For said second control parameter in a second scenario,for the optimal control parameters in the history samples in the first scenario +.>Is the smallest parameter and the smallest parameter in the second control parametersF is the maximum of the second control parameters and +.>Is a difference in (c).
4. The oil and gas recovery test method according to claim 1, wherein the clustering algorithm is a k-means clustering algorithm.
5. The method for testing oil and gas recovery according to claim 4, wherein the obtaining the optimal control parameters through a clustering algorithm comprises the following steps:
constructing a third control parameter;
calculating the sum of the distances between the third control parameter and a plurality of first control parameters;
and repeatedly updating the third control parameter until the sum of the distances between the third control parameter and the first control parameter is smaller than a preset distance threshold value, and obtaining the optimal control parameter.
6. The method for oil and gas recovery test according to any one of claims 1 to 5, wherein in the step of determining whether the recovery rate of the oil and gas recovery system is acceptable,
if the objective function in the test result has a solution, judging that the recovery rate of the oil and gas recovery system in the second scene is qualified;
and if the objective function in the test result is not solved, judging that the recovery rate of the oil and gas recovery system in the second scene is unqualified, and sending an alarm signal.
7. Terminal equipment comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, characterized in that the processor, when loading and executing the computer program, employs the oil and gas recovery test method according to any of claims 1-6.
8. A computer readable storage medium having a computer program stored therein, characterized in that the computer program, when loaded and executed by a processor, employs the oil and gas recovery test method according to any one of claims 1-6.
CN202311182787.3A 2023-09-14 2023-09-14 Oil discharge gas recovery test method, terminal equipment and storage medium Active CN116907738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311182787.3A CN116907738B (en) 2023-09-14 2023-09-14 Oil discharge gas recovery test method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311182787.3A CN116907738B (en) 2023-09-14 2023-09-14 Oil discharge gas recovery test method, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116907738A true CN116907738A (en) 2023-10-20
CN116907738B CN116907738B (en) 2023-11-17

Family

ID=88360688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311182787.3A Active CN116907738B (en) 2023-09-14 2023-09-14 Oil discharge gas recovery test method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116907738B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007064815A (en) * 2005-08-31 2007-03-15 Showa Shell Sekiyu Kk Tool for detecting and/or recovering oils
CN102314556A (en) * 2011-08-29 2012-01-11 常州大学 Method for evaluating oil gas recovery and system
CN102928175A (en) * 2012-10-17 2013-02-13 中国石油化工股份有限公司 Discharge oil gas recycling effect test system and discharge oil gas recycling effect test method
CN106841411A (en) * 2016-11-29 2017-06-13 江苏出入境检验检疫局工业产品检测中心 A kind of environmental test chamber VOC rate of recovery method of testing
CN106895946A (en) * 2017-04-12 2017-06-27 北京恒合信业技术股份有限公司 Detect device, method and the online monitoring system of gas station's closed system seal
CN108388137A (en) * 2018-04-17 2018-08-10 西安庆港洁能科技有限公司 A kind of method and apparatus of light ends unit operating point parameter optimization
JP2019035608A (en) * 2017-08-10 2019-03-07 株式会社島津製作所 Leak inspection device and recovery method of inspection gas therein
CN112945483A (en) * 2021-01-21 2021-06-11 吉利汽车研究院(宁波)有限公司 Vehicle or rack, fuel leakage simulation detection system and method
CN214793623U (en) * 2021-04-09 2021-11-19 梁凤贺 Leakage detector for oil gas recovery system
CN114136561A (en) * 2021-11-23 2022-03-04 河南和众检测有限公司 Oil tank truck oil gas recovery system tightness detection device and detection method
US20220081622A1 (en) * 2020-09-16 2022-03-17 King Fahd University Of Petroleum And Minerals Method for optimizing gas oil separation plant parameters to maximize oil recovery

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007064815A (en) * 2005-08-31 2007-03-15 Showa Shell Sekiyu Kk Tool for detecting and/or recovering oils
CN102314556A (en) * 2011-08-29 2012-01-11 常州大学 Method for evaluating oil gas recovery and system
CN102928175A (en) * 2012-10-17 2013-02-13 中国石油化工股份有限公司 Discharge oil gas recycling effect test system and discharge oil gas recycling effect test method
CN106841411A (en) * 2016-11-29 2017-06-13 江苏出入境检验检疫局工业产品检测中心 A kind of environmental test chamber VOC rate of recovery method of testing
CN106895946A (en) * 2017-04-12 2017-06-27 北京恒合信业技术股份有限公司 Detect device, method and the online monitoring system of gas station's closed system seal
JP2019035608A (en) * 2017-08-10 2019-03-07 株式会社島津製作所 Leak inspection device and recovery method of inspection gas therein
CN108388137A (en) * 2018-04-17 2018-08-10 西安庆港洁能科技有限公司 A kind of method and apparatus of light ends unit operating point parameter optimization
US20220081622A1 (en) * 2020-09-16 2022-03-17 King Fahd University Of Petroleum And Minerals Method for optimizing gas oil separation plant parameters to maximize oil recovery
CN112945483A (en) * 2021-01-21 2021-06-11 吉利汽车研究院(宁波)有限公司 Vehicle or rack, fuel leakage simulation detection system and method
CN214793623U (en) * 2021-04-09 2021-11-19 梁凤贺 Leakage detector for oil gas recovery system
CN114136561A (en) * 2021-11-23 2022-03-04 河南和众检测有限公司 Oil tank truck oil gas recovery system tightness detection device and detection method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孟凡忠等: "考虑轻烃收益的炼油厂氢气资源优化策略", 《炼油技术与工程》, vol. 45, no. 9, pages 61 - 64 *
黄挚雄等: "基于域进化模型的遗传算法在中药生产挥发油回收中的应用", 《化工自动化及仪表》, vol. 33, no. 4, pages 9 - 13 *

Also Published As

Publication number Publication date
CN116907738B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN110599131B (en) Electric drawing identification and examination method and device and readable storage medium
CN110781381B (en) Data verification method, device, equipment and storage medium based on neural network
EP3349126A1 (en) Method, device, storage medium, and apparatus for automatically discovering fuel station poi
CN116151776B (en) Power distribution line power protection management method and system and electronic equipment
CN113655348A (en) Power equipment partial discharge fault diagnosis method based on deep twin network, system terminal and readable storage medium
CN111523815A (en) Power grid engineering review method and device, electronic equipment and storage medium
CN116907738B (en) Oil discharge gas recovery test method, terminal equipment and storage medium
CN106934679A (en) information matching method and device
CN110633318A (en) Data extraction processing method, device, equipment and storage medium
CN110852893A (en) Risk identification method, system, equipment and storage medium based on mass data
CN115203158A (en) Data comparison method, device, equipment and storage medium
CN114443493A (en) Test case generation method and device, electronic equipment and storage medium
CN113486086A (en) Data mining method and system based on feature engineering
CN108803467B (en) Real-time monitoring method and system for operation state of vertical separator
CN112685610A (en) False registration account identification method and related device
CN113595808A (en) Work order quality inspection method, system and server
CN112217667B (en) Terminal model characteristic data cleaning system and cleaning method
CN115080445B (en) Game test management method and system
CN113835893B (en) Data processing method, device, equipment, storage medium and program product
CN112665790B (en) Refrigerant leakage detection method, device and equipment
CN116664082A (en) Method, device, equipment and storage medium for determining vehicle loss condition
CN118226120A (en) Power consumption determination method and device, electronic equipment and storage medium
CN117472751A (en) Vehicle system function analysis method, device, equipment and medium
CN114254775A (en) Data processing method, system, device and medium based on distributed energy
CN105511863A (en) Method and system determining service deploy form according to application service attribute identification

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant