An oil and gas processing method, equipment, medium, and product
By monitoring the rate of change of oil and gas pressure in the storage tank, determining the load mode and matching the start-up parameters, the problem of flexible response of the oil and gas treatment device under dynamic changes is solved, and efficient and energy-saving oil and gas treatment is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING HENGHE INFORMATION & TECH CO LTD
- Filing Date
- 2025-11-03
- Publication Date
- 2026-05-26
AI Technical Summary
Existing oil and gas processing equipment is not flexible enough in responding to dynamic changes at gas stations, resulting in untimely processing or energy waste, making it difficult to balance processing efficiency, operating costs and environmental compliance.
By monitoring the rate of change of oil and gas pressure in the storage tank, the current oil and gas load mode is determined, and corresponding start-up parameters and timing are matched to achieve differentiated control, including regulatory and interruption operations, thereby optimizing the operation strategy of the oil and gas processing unit.
It enables rapid response and stable, energy-saving operation of oil and gas processing units under emergency conditions, improving processing efficiency and economy while reducing energy waste and environmental risks.
Smart Images

Figure CN121455015B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial real-time control software technology, and in particular to an oil and gas processing method, equipment, medium, and product. Background Technology
[0002] With increasingly stringent national regulations on environmental protection and production safety, the effective recovery and treatment of oil and gas (mainly volatile organic compounds) generated during oil loading and unloading and vehicle refueling at gas stations has become a crucial link in ensuring environmental quality and operational safety. How to efficiently recover and safely treat the dynamically changing oil and gas generated during gas station operation, while achieving energy conservation and consumption reduction, has become a core requirement for the development of oil and gas treatment technology.
[0003] In existing technologies, the operation and control of oil and gas processing units at gas stations typically rely on automated systems based on preset fixed thresholds. For example, when the pressure sensor in the storage tank detects a value exceeding a certain start-up pressure, the system activates equipment such as booster pumps and condensers to process oil and gas; when the pressure falls below the shutdown pressure, operation ceases. However, existing start-up and shutdown control methods based on fixed thresholds suffer from insufficient flexibility and low operational efficiency when dealing with dynamic changes in gas station operations (such as peak refueling periods, tanker unloading, and seasonal temperature differences). This "one-size-fits-all" control strategy may lead to untimely processing and triggering overpressure emissions when there is a surge in instantaneous oil and gas production, or to equipment idling and wasting energy when oil and gas production is low, making it difficult to balance processing efficiency, operating costs, and environmental compliance requirements. Summary of the Invention
[0004] In view of this, this application provides an oil and gas processing method, equipment, medium, and product to solve the above problems.
[0005] In a first aspect, an oil and gas processing method is provided, applied to an oil and gas processing device, the method comprising:
[0006] In standby mode, the current oil and gas load mode is determined based on the rate of change of oil and gas pressure in the oil storage tank, and the corresponding start-up parameters are matched according to the current oil and gas load mode. The start-up parameters include the start-up pressure threshold and the start-up timing.
[0007] When the oil and gas pressure exceeds the starting pressure threshold, the preset actuator is activated according to the starting sequence, and the oil and gas processing operation state is entered.
[0008] After entering the oil and gas processing operation state, key operating parameters are continuously monitored, including oil and gas temperature and emission concentration.
[0009] The comparison results are obtained by comparing the monitored values of key operating parameters with a set of safety thresholds corresponding to the current oil and gas load mode;
[0010] Based on the comparison results, perform regulatory control operations or interruption protection operations. Regulatory control operations include adjusting the operating power of the booster pump or the opening of the discharge valve without interrupting the oil and gas processing process.
[0011] When an interruption protection operation is triggered or a regulatory control operation is performed until the oil and gas pressure is lower than the preset shutdown threshold, a shutdown sequence is executed and the system returns to standby mode.
[0012] The above technical solution uses the rate of change of oil and gas pressure within the storage tank as a forward-looking physical quantity to determine in advance whether the current operating condition belongs to a high-load mode requiring rapid response or a conventional load mode requiring stable energy saving. Based on this determination, before entering the actual oil and gas processing flow, a most suitable solution can be matched and applied from multiple preset operating parameters for the upcoming operating condition. This solution not only defines the start-up pressure point and timing but also specifies the safety monitoring boundaries during operation. Through this predictive and differentiated strategy, the oil and gas processing unit can automatically adopt more aggressive parameters to achieve rapid response and processing when facing emergency conditions such as oil unloading with a rapid pressure increase; while when dealing with mild operating conditions such as daily temperature rises, it can automatically adopt more conservative parameters to ensure operational stability and economy. This transforms single, passive pressure control into precise, forward-looking closed-loop management of loads of different natures.
[0013] Optionally, based on the rate of change of oil and gas pressure within the storage tank, the current oil and gas load mode is determined, and corresponding start-up parameters are matched according to the current oil and gas load mode, specifically including:
[0014] The rate of change is compared with a preset rate threshold;
[0015] If the rate of change is less than the rate threshold, the current oil and gas load mode is determined to be a normal load mode, and the first start-up parameters of the first pressure threshold and normal start-up sequence are matched according to the normal load mode.
[0016] If the rate of change is greater than or equal to the rate threshold, the current oil and gas load mode is determined to be a high load mode. Based on the high load mode, a second pressure threshold and a second start-up parameter with enhanced start-up timing are matched and adopted. The second pressure threshold is lower than the first pressure threshold, and the actuator start-up time interval of the enhanced start-up timing is less than that of the normal start-up timing.
[0017] The above technical solution quantifies the oil and gas load mode into a normal load mode and a high load mode by setting a specific rate threshold. When the high load mode is determined, the device will start operating at a lower pressure point and with a faster equipment start-up interval, thus enabling earlier and faster intervention to handle the situation of a sharp increase in pressure.
[0018] Optionally, the method also includes:
[0019] After each preset time period ends, a time series dataset is constructed based on the historical operating data collected within the time period. The historical operating data consists of multiple data points, each data point is associated with an operating cycle and records the rate of change of oil and gas pressure, oil and gas load pattern, and a set of performance indicators for the operating cycle. The performance indicators include unit oil and gas processing energy consumption, control intervention frequency, and peak emission concentration.
[0020] The time series dataset is segmented according to a preset time window, and the performance indicators of the data points in each time window are compared with the preset performance baseline to determine the operating conditions to be optimized.
[0021] Analyze the common characteristics of the data points of the working condition to be optimized, and determine the adjustment direction and dynamic adjustment step size based on the common characteristics and the deviation of the related performance indicators, and perform adjustments on the rate threshold, the first pressure threshold and / or the second pressure threshold.
[0022] The above technical solutions enable the device to record and analyze its historical operating performance, including energy consumption, control action frequency, and emission concentration. Based on this analysis, the device can automatically identify operating conditions that perform poorly during specific time periods (such as peak hours) and adjust the rate thresholds that distinguish between normal / high load modes and the start-up pressure thresholds for both modes accordingly.
[0023] Optionally, based on common characteristics and the deviation of related performance indicators, the adjustment direction and dynamic adjustment step size are determined, specifically including:
[0024] If the common characteristic is that the average control intervention frequency index of the operating condition to be optimized is worse than the performance baseline in the operating cycle that is determined to be a normal load mode, then the adjustment direction is to reduce the rate threshold.
[0025] If the common characteristic is that the triggering frequency of interrupt protection operations exceeds the preset interrupt triggering frequency threshold in the operation cycle that is determined to be in high load mode, then the adjustment direction is to reduce the second pressure threshold.
[0026] If the common characteristic is that the average unit oil and gas processing energy consumption index of the operating condition to be optimized is worse than the efficiency baseline in the operating cycle that is judged as the normal load mode, then the adjustment direction is to increase the first pressure threshold.
[0027] Calculate the average deviation of the performance index of the operating condition to be optimized from the performance baseline;
[0028] If the average deviation exceeds the first deviation threshold but does not exceed the second deviation threshold, then the normal adjustment step size is used;
[0029] If the average deviation exceeds the second deviation threshold, an enhanced adjustment step size larger than the normal adjustment step size is adopted.
[0030] The above technical solutions provide a set of specific execution rules for the device's self-adjustment function. For example, when the device detects that a certain operating condition is judged as a "normal load" but frequent control intervention is required, it will automatically lower the rate threshold used for judgment. The magnitude of the adjustment depends on the severity of the deviation of the actual operating performance indicators from the preset baseline.
[0031] Optionally, when the oil and gas pressure exceeds the starting pressure threshold, a preset actuator is activated according to the starting sequence, specifically including:
[0032] If the oil and gas load mode is determined to be a high load mode, the actuator will be started according to the start-up sequence when the oil and gas pressure first exceeds the start-up pressure threshold.
[0033] If the oil and gas load mode is determined to be the normal load mode, the actuator will be started according to the start sequence after the oil and gas pressure is continuously greater than or equal to the start pressure threshold for a preset duration.
[0034] The above technical solutions set differentiated start-up trigger conditions for different load modes. For high-load modes, the device starts immediately once the pressure exceeds the limit, ensuring rapid emergency response. For normal load modes, the device only starts after the pressure has exceeded the limit for a period of time, which avoids unnecessary frequent start-ups and shutdowns due to short-term, harmless pressure fluctuations.
[0035] Optionally, based on the comparison results, perform regulatory control operations or interruption protection operations, specifically including:
[0036] For each of the key operating parameters, set an associated first safety threshold and a second safety threshold, where the second safety threshold is higher than the first safety threshold.
[0037] When the monitored value of any of the key operating parameters exceeds the corresponding first safety threshold but does not exceed the corresponding second safety threshold, an adjustment control operation is executed.
[0038] When the monitored value of any of the critical operating parameters exceeds the corresponding second safety threshold, an interruption protection operation is executed.
[0039] The above technical solution establishes two levels of monitoring and defense for system operation safety. When critical operating parameters (such as temperature and concentration) exceed the lower first safety threshold, the system will initiate regulatory control to correct the situation without interruption. Only when the parameters further deteriorate and exceed the higher second safety threshold will the system execute an interruptible shutdown protection.
[0040] Optionally, perform regulatory control operations, specifically including:
[0041] A switching threshold is set between the first safety threshold and the second safety threshold;
[0042] When the monitored value of a key operating parameter exceeds the first safety threshold but does not exceed the adjustment switching threshold, the first-level adjustment operation is executed. The first-level adjustment operation includes adjusting the opening of the discharge port valve.
[0043] When the monitored value of a key operating parameter exceeds the adjustment switching threshold but does not exceed the second safety threshold, a second-level adjustment operation is executed, which includes reducing the operating power of the booster pump.
[0044] The above technical solution further refines the regulatory control operation into two progressive stages. When the operating parameters just enter the adjustment range, the system first executes the first-level regulation operation (adjusting the discharge valve). If the parameters continue to deteriorate and exceed a set switching threshold, the system will then execute the second-level regulation operation (reducing the booster pump power), achieving a smooth upgrade of the control action.
[0045] Secondly, embodiments of this application provide an electronic device, including a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, and both the user interface and the network interface are used to communicate with other devices. The processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method described in any of the above-mentioned methods.
[0046] Thirdly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed, perform the method described in any of the above-mentioned embodiments.
[0047] Fourthly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a server, cause the server to perform the method described in the first aspect and any possible implementation thereof.
[0048] It is understood that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, and the computer program product provided in the fourth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.
[0049] In summary, implementing one or more technical solutions provided in this application has at least the following technical effects or advantages:
[0050] By using the rate of change of oil and gas pressure within the storage tank as a forward-looking physical quantity, it is possible to determine in advance whether the current operating condition belongs to a high-load mode requiring rapid response or a normal load mode requiring stable energy saving. Based on this determination, before entering the actual oil and gas processing flow, a most suitable solution can be matched and applied from multiple preset operating parameters for the upcoming operating condition. This solution not only defines the start-up pressure point and timing but also specifies the safety monitoring boundaries during operation. Through this predictive and differentiated strategy, the oil and gas processing unit can automatically adopt more aggressive parameters to achieve rapid response and processing when facing emergency conditions such as oil unloading with a rapid pressure increase; while automatically adopting more conservative parameters to ensure operational stability and economy when dealing with mild operating conditions such as daily temperature rises. This transforms single, passive pressure control into precise, forward-looking closed-loop management of loads of different natures. Attached Figure Description
[0051] Figure 1 This is an exemplary system architecture diagram of an oil and gas processing method according to this application;
[0052] Figure 2 This is a schematic flowchart of an oil and gas processing method according to an embodiment of this application;
[0053] Figure 3 This is a schematic diagram of the structure of an electronic device disclosed in the application embodiment.
[0054] Explanation of reference numerals in the attached figures: 100, System architecture; 101, First terminal device; 102, Second terminal device; 103, Third terminal device; 104, Network; 105, Server; 301, Processor; 302, Communication bus; 303, User interface; 304, Network interface; 305, Memory. Detailed Implementation
[0055] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0056] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0057] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0058] Figure 1 An exemplary system architecture diagram is shown, illustrating an embodiment of an oil and gas processing method to which this application can be applied.
[0059] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0060] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as model training applications, video recognition applications, web browser applications, social platform software, etc.
[0061] Terminal devices 101, 102, and 103 can be either hardware or software. When terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with displays, including but not limited to smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, and desktop computers, etc. When terminal devices 101, 102, and 103 are software, they can be installed in the aforementioned electronic devices. They can be implemented as multiple software programs or software modules (e.g., multiple software programs or software modules used to provide distributed services) or as a single software program or software module. No specific limitations are imposed here.
[0062] When terminals 101, 102, and 103 are hardware devices, video capture devices can also be installed on them. These video capture devices can be various devices capable of capturing video, such as cameras, sensors, etc. Users can use the video capture devices on terminals 101, 102, and 103 to capture video.
[0063] Server 105 can be a server that provides various services, such as a backend server for processing data displayed on terminal devices 101, 102, and 103. The backend server can analyze and process the received data and can feed back the processing results (such as recognition results) to the terminal devices.
[0064] It should be noted that a server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules (e.g., multiple software programs or software modules used to provide distributed services), or as a single software program or software module. No specific limitations are made here.
[0065] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included. In particular, if the target data does not need to be obtained remotely, the above system architecture may exclude the network and include only terminal devices or servers.
[0066] Figure 2 This is a flowchart illustrating an oil and gas processing method according to an embodiment of this application. This method can be implemented using a computer program or a microcontroller. The computer program can be integrated into an application or run as a standalone utility application. The specific steps of an oil and gas processing method are described in detail below.
[0067] S201: In standby mode, the current oil and gas load mode is determined based on the rate of change of oil and gas pressure in the oil storage tank, and the corresponding start-up parameters are matched according to the current oil and gas load mode. The start-up parameters include the start-up pressure threshold and the start-up timing.
[0068] In this application embodiment, the oil and gas load mode refers to a technical classification of the nature and intensity of the current operating conditions that cause changes in oil and gas pressure within the storage tank. It is used to represent the load level imposed on the oil and gas processing system by the current operating state of the gas station. For example, the instantaneous increase in oil and gas generated by the rapid unloading operation of tank trucks within the station, and the increase in oil and gas volatilization caused by the slow rise in ambient temperature during the day, correspond to two completely different oil and gas load modes.
[0069] Specifically, when the main actuators of the oil and gas processing unit are in standby mode and not in operation, its monitoring system continuously collects oil and gas pressure data in the storage tank and obtains the real-time rate of change of oil and gas pressure by calculating the pressure increment per unit time. The system has a preset rate threshold; by comparing the currently calculated rate of change of oil and gas pressure with this threshold, the current oil and gas load mode is determined. Once the mode is determined (e.g., high load mode or normal load mode), a set of startup parameters uniquely corresponding to that mode is retrieved and matched from a preset parameter library. This set of startup parameters is pre-configured for that specific mode. The startup pressure threshold defines the critical pressure point at which the subsequent authorized system transitions from standby to operation, while the startup sequence specifies the order and time interval for the startup of each actuator (such as the booster pump and condenser) within the system.
[0070] In one possible implementation, the current oil and gas load mode is determined based on the rate of change of oil and gas pressure in the storage tank, and corresponding start-up parameters are matched according to the current oil and gas load mode. Specifically, this includes: comparing the rate of change with a preset rate threshold; if the rate of change is less than the rate threshold, the current oil and gas load mode is determined to be a normal load mode, and a first start-up parameter using a first pressure threshold and a normal start-up sequence is matched according to the normal load mode; if the rate of change is greater than or equal to the rate threshold, the current oil and gas load mode is determined to be a high load mode, and a second start-up parameter using a second pressure threshold and an enhanced start-up sequence is matched according to the high load mode, wherein the second pressure threshold is lower than the first pressure threshold, and the actuator start-up time interval of the enhanced start-up sequence is shorter than that of the normal start-up sequence.
[0071] In this embodiment, the rate threshold refers to a pre-set critical value used to measure the severity of changes in oil and gas pressure, serving as a quantitative basis for the system to determine the nature of the oil and gas load pattern. For example, based on the historical operating data and operation type of the gas station, the rate threshold can be set to 50 Pa / min. When the monitored pressure change rate exceeds this value, it is considered that a high-load event, such as oil tanker unloading, has occurred; otherwise, it is considered a normal load.
[0072] Specifically, after continuously calculating and obtaining the real-time rate of change of oil and gas pressure, the system logically compares it with a preset rate threshold stored internally. The comparison result triggers two different branch paths: if the current rate of change is less than the rate threshold, the system determines the current operating condition as a normal load mode and automatically matches a set of first start-up parameters designed for stable and energy-saving operation. The first pressure threshold in this parameter set is set relatively high to filter out minor pressure fluctuations that do not require processing, and its normal start-up sequence starts each device step by step in an energy-efficient manner. Conversely, if the rate of change is greater than or equal to the rate threshold, the system determines the current condition as a high load mode and matches a set of second start-up parameters designed for rapid emergency response. The second pressure threshold in this set of second start-up parameters is set lower than the first pressure threshold to ensure that the system can start and intervene earlier; at the same time, the start-up time interval of each actuator in its enhanced start-up sequence is also shorter, so that the full processing capacity of the oil and gas processing unit can be put into operation in the shortest possible time.
[0073] Optionally, the method further includes: after each preset time period ends, constructing a time series dataset based on historical operating data collected within the time period. The historical operating data consists of multiple data points, each data point being associated with an operating cycle and recording the rate of change of oil and gas pressure, oil and gas load pattern, and a set of performance indicators for the operating cycle. The performance indicators include unit oil and gas processing energy consumption, control intervention frequency, and peak emission concentration at the emission outlet. The time series dataset is segmented according to a preset time window, and the performance indicators of the data points within each time window are compared with the preset performance baseline to determine the operating condition to be optimized. The common characteristics of the data points of the operating condition to be optimized are analyzed, and based on the common characteristics and the deviation of the associated performance indicators, the adjustment direction and dynamic adjustment step size are determined, and adjustments are made to the rate threshold, the first pressure threshold, and / or the second pressure threshold.
[0074] In this embodiment, the performance index is a set of performance parameters used to quantitatively evaluate the comprehensive performance of oil and gas processing methods in historical operating cycles from multiple dimensions. It transforms the underlying operating data into a higher-level evaluation of the system's operational quality. For example, the control intervention frequency index reflects the degree of matching between the current control parameters and the actual operating conditions by statistically analyzing the number of times regulatory or interruptive protection operations are triggered in one operating cycle. A higher frequency may indicate that the parameter settings are not optimized.
[0075] Specifically, the system automatically initiates an optimization process after a preset time period (e.g., 24 hours). It aggregates historical operational data from all complete operating cycles within the period, creating a data point for each cycle and calculating corresponding performance indicators (e.g., calculating unit energy consumption for oil and gas processing through cumulative power consumption and total processing volume, or obtaining control intervention frequency by counting alarm counts), forming a time-series dataset. An operating cycle is defined as the complete process of the oil and gas processing unit from meeting startup conditions and entering the oil and gas processing operation state to triggering shutdown conditions, executing the shutdown sequence, and returning to standby state. The system segments the dataset according to preset time windows (e.g., peak and off-peak periods) and compares the performance indicators of each data point within each window with a preset performance baseline to filter and identify all underperforming operating conditions requiring optimization. For these identified underperforming operating conditions, the system performs in-depth analysis to find common characteristics of their data points (e.g., whether high-frequency control interventions occurred most frequently when the load was determined to be normal). The system will determine the adjustment direction based on the common features found, and calculate a dynamic adjustment step size based on the severity of the deviation of the performance indicators of these operating conditions from the baseline (i.e., the deviation). It will then use this step size to perform a self-optimization adjustment on one or more of the rate threshold, the first pressure threshold, and / or the second pressure threshold.
[0076] To fully demonstrate the self-optimization process in this application embodiment, an exemplary calculation scenario is provided below: In an initial state, the relevant parameters stored internally by the system are set as follows: Rate threshold: 50 Pa / min; Regular adjustment step size: 2%; Enhanced adjustment step size: 5%; First deviation threshold: 15%; Second deviation threshold: 40%; Target value of "Control Intervention Frequency" in the performance baseline: 0.1 times / cycle. After a preset 24-hour time cycle, the system collects data points from 100 operating cycles. By segmenting and comparing data within the peak time window of "07:00-09:00", 10 operating conditions to be optimized are identified. The system analyzes the data points of these 10 operating conditions to be optimized and finds that their common characteristics are: the rate of change of oil and gas pressure is between 40-49 Pa / min, all are judged as regular load modes, and the average value of "Control Intervention Frequency" is 0.5 times / cycle, which is significantly worse than the performance baseline. Determining the Adjustment Direction and Step Size: Direction Determination: The common characteristics mentioned above match the preset rule that "in the operating cycle judged as the normal load mode, the average control intervention frequency index of the condition to be optimized is worse than the performance baseline." Therefore, the system determines the adjustment direction to be reducing the rate threshold. Step Size Determination: The system calculates the average deviation as (0.5-0.1) / 0.1=400%. Since 400% exceeds the second deviation threshold of 40%, an enhanced adjustment step size of (5%) is selected. The system performs the adjustment calculation: New rate threshold = 50Pa / min × (1-5%) = 47.5Pa / min. The system updates the internal rate threshold parameter online to 47.5Pa / min and uses this new threshold as the working parameter for subsequent operating cycles, thereby completing one closed-loop self-optimization.
[0077] In one possible implementation, the adjustment direction and dynamic adjustment step size are determined based on common characteristics and the deviation of related performance indicators. Specifically, this includes: if the common characteristic is that the average control intervention frequency index of the operating condition to be optimized is worse than the performance baseline in an operating cycle determined to be a normal load mode, then the adjustment direction is to reduce the rate threshold; if the common characteristic is that the trigger frequency of interruption protection operations exceeds a preset interruption trigger frequency threshold in an operating cycle determined to be a high load mode, then the adjustment direction is to reduce the second pressure threshold; if the common characteristic is that the average unit oil and gas processing energy consumption index of the operating condition to be optimized is worse than the performance baseline in an operating cycle determined to be a normal load mode, then the adjustment direction is to increase the first pressure threshold; the average deviation of the performance indicators of the operating condition to be optimized relative to the performance baseline is calculated; if the average deviation exceeds the first deviation threshold but does not exceed the second deviation threshold, then a normal adjustment step size is used; if the average deviation exceeds the second deviation threshold, then an enhanced adjustment step size larger than the normal adjustment step size is used.
[0078] In a specific embodiment of this application, the process of determining the adjustment direction and dynamic adjustment step size based on common characteristics and the deviation of related performance indicators is an automated process based on objective rules, including direction decision and magnitude decision. In the direction decision stage, the analyzed common characteristics are matched with a set of preset, unique association rules to determine the adjustment direction. This association rule base specifically includes: Rule 1: If the common characteristic is that in a running cycle determined to be in a normal load mode, the average control intervention frequency index of the operating condition to be optimized is higher than the performance baseline, then the adjustment direction is determined to be reducing the rate threshold. This rule aims to correct the frequent adjustment problem caused by the system failing to identify critical high load conditions in time due to an excessively high rate threshold setting. Rule 2: If the common characteristic is that in a running cycle determined to be in a high load mode, the trigger frequency of interruption protection operations exceeds a preset interruption trigger frequency threshold, then the adjustment direction is determined to be reducing the second pressure threshold. This rule aims to correct extreme safety events caused by the system intervening too late due to an excessively high high load start pressure threshold setting. Rule 3: If the common characteristic is that, in an operating cycle determined to be under normal load mode, the average unit oil and gas processing energy consumption index of the operating condition to be optimized is higher than the performance baseline, then the adjustment direction is determined to be to increase the first pressure threshold. This rule aims to correct the energy waste caused by frequent start-ups and shutdowns of the system due to small fluctuations caused by setting the normal load start-up pressure threshold too low. In the magnitude decision phase, based on the performance index that triggered the above direction decision, the severity of its deviation from the target is calculated to determine the dynamic adjustment step size: Calculate the average deviation: The system calculates the average deviation of the performance index of the operating condition to be optimized relative to the performance baseline. Select the adjustment step size: The calculated average deviation is compared with the preset first and second deviation thresholds. If the average deviation is between the two, it is determined to be a moderate deviation, and a normal adjustment step size is used; if the average deviation exceeds the second deviation threshold, it is determined to be a severe deviation, and an enhanced adjustment step size with a value greater than the normal adjustment step size is used to achieve a greater correction. By integrating the decision results from the two stages, and based on the determined adjustment direction and using a determined dynamic adjustment step size, an online update is performed on the corresponding threshold (rate threshold, first pressure threshold, or second pressure threshold) to complete the closed-loop adjustment.
[0079] In one specific embodiment, the performance index is calculated through the following steps, and the calculation results are associated with and stored with data points:
[0080] Regarding the calculation of the unit oil and gas processing energy consumption index: For each complete operating cycle, the system records two key values: Total operating power consumption (E_total): This is obtained by integrating the instantaneous power of each actuator (such as booster pump, condenser, etc.) over the entire operating cycle duration using a smart meter connected to the main power supply of the oil and gas processing unit, expressed in kilowatt-hours (kWh). Total volume of oil and gas processed (V_total): This is obtained by accumulating the volume of gas flowing through the gas flow meter installed in the oil and gas processing pipeline, expressed in cubic meters (m³). The unit oil and gas processing energy consumption index for this operating cycle is calculated using the following formula: Unit oil and gas processing energy consumption = E_total / V_total. When analyzing the operating conditions to be optimized, the average unit oil and gas processing energy consumption index is the arithmetic mean of the unit oil and gas processing energy consumption indices of all identified data points for the operating conditions to be optimized.
[0081] Regarding the calculation of the control intervention frequency index: For each complete operating cycle, the system has a built-in counter that records the total number of occurrences of the following events: the number of triggers of regulatory control operations (N_reg) and the number of triggers of interruptible protection operations (N_int). The control intervention frequency index for this operating cycle is calculated using the following formula: Control Intervention Frequency = N_reg + N_int (unit: times / cycle). When analyzing the operating condition to be optimized, the average control intervention frequency index is the arithmetic mean of the control intervention frequency indices of all identified operating condition data points to be optimized.
[0082] Regarding the calculation of the interruption protection operation trigger frequency: This indicator is used to assess the occurrence of extreme risks under high load mode. Its calculation is based on a time window (e.g., analyzing data from the previous 24 hours): Total Count (N_int_total): The total number of times the interruption protection operation was triggered in all operating cycles determined to be in high load mode within the stated time window. Cumulative Total Duration (T_total): The total runtime of the system in high load mode within the stated time window, in hours (h). The interruption protection operation trigger frequency is calculated using the following formula: Trigger Frequency = N_int_total / T_total (unit: times / hour). This calculation result will be compared with a preset interruption trigger frequency threshold.
[0083] S202: When the oil and gas pressure exceeds the starting pressure threshold, the preset actuator is started according to the starting sequence, and the oil and gas processing operation state is entered.
[0084] In the embodiments of this application, the startup sequence refers to a pre-set set of instructions containing multiple steps with a strict sequence and time intervals to ensure that the oil and gas processing device transitions safely, smoothly, and efficiently from a static standby state to an oil and gas processing operation state. For example, a typical startup sequence may first start the condenser for pre-cooling, then start the booster pump to establish an oil and gas circulation path after monitoring that its temperature is lower than the preset startup enable temperature, and finally start the vacuum pump to enhance the oil and gas extraction efficiency after confirming that the pressure in the path is stable.
[0085] Specifically, after the start-up parameters matching the current oil and gas load mode are loaded in step S201, the monitoring system continuously compares the real-time oil and gas pressure in the storage tank with the start-up pressure threshold in these parameters. Once the oil and gas pressure exceeds the start-up pressure threshold, the system immediately triggers the start-up process. This process strictly follows the loaded start-up sequence, sequentially sending start-up commands to multiple preset actuators (e.g., booster pumps, vacuum pumps, condensers, solenoid valves, etc.). These commands are issued according to a preset order and time or condition judgment to ensure that all components start working collaboratively and orderly. When all commands in the start-up sequence have been executed and all relevant actuators have entered a stable working state, the entire system officially switches from standby to oil and gas processing operation.
[0086] In one possible implementation, when the oil and gas pressure exceeds the start-up pressure threshold, a preset actuator is started according to the start-up sequence. Specifically, if the oil and gas load mode is determined to be a high load mode, the actuator is started according to the start-up sequence when the oil and gas pressure first exceeds the start-up pressure threshold; if the oil and gas load mode is determined to be a normal load mode, the actuator is started according to the start-up sequence after the oil and gas pressure has been continuously greater than or equal to the start-up pressure threshold for a preset duration.
[0087] In this embodiment, the preset duration refers to a time parameter set for the normal load mode to confirm whether the start-up conditions are continuously stable. Its purpose is to filter out brief, unnecessary pressure fluctuations and prevent invalid startup of the oil and gas processing unit. For example, the preset duration can be set to 60 seconds. This means that in the normal load mode, even if the oil and gas pressure exceeds the start-up threshold, the startup process will not be triggered as long as the duration is less than 60 seconds, thereby effectively avoiding energy waste caused by momentary disturbances.
[0088] Specifically, once the macroscopic condition of oil and gas pressure exceeding the start-up pressure threshold is met, the system executes differentiated triggering logic based on the previously determined oil and gas load mode. If the current mode is determined to be high load, the system adopts a zero-delay instant response strategy. The moment the oil and gas pressure is detected to exceed the corresponding start-up pressure threshold for the first time, the actuator is immediately activated according to the (enhanced) start-up sequence to respond to the emergency situation of a sudden pressure rise as quickly as possible. Conversely, if the current mode is determined to be normal load, the system activates a delayed confirmation mechanism. In this mode, even if the oil and gas pressure exceeds its corresponding start-up pressure threshold, the start command is not issued immediately. Instead, an internal timer is started. Only when the oil and gas pressure remains above the threshold continuously for the preset duration will the actuator be activated according to the (normal) start-up sequence after the timer expires. If the pressure falls below the threshold during this period, the timer is reset, and the start event is canceled.
[0089] To further illustrate the start-up and shutdown sequence in this application, an embodiment incorporating specific process parameters is provided below:
[0090] In an exemplary scenario, when the system is powered on, its specific operating steps include: the system initializes communication parameters, reads system configuration parameters (e.g., various thresholds to be used later), and determines the rationality of the parameters. Subsequently, the system continuously collects and reads data on the oil storage tank pressure, booster pump outlet temperature, membrane pressure, and oil and gas concentration in the discharge pipe. When the oil storage tank pressure exceeds a preset start-up threshold (e.g., 500 Pa), the system starts the booster pump, condenser, and vacuum pump to begin oil and gas processing. Simultaneously, the system opens the return valve periodically, allowing the processed and recovered liquid gasoline to flow back into the oil storage tank. During oil and gas processing, the system continuously monitors key operating parameters: Membrane pressure regulation: when the membrane pressure exceeds a first set value (e.g., 0.3 MPa), the system opens the exhaust valve to begin discharging treated exhaust gas; when the membrane pressure falls below a second set value (e.g., 0.2 MPa), the system closes the exhaust valve, ceasing the discharge of exhaust gas. Alternatively, when the concentration of emitted oil and gas is detected to exceed a set value (e.g., exceeding the first safety threshold of 20 g / m³), the system will issue an alarm and perform regulatory control operations (such as adjusting valve opening), but will not immediately shut down. When the outlet temperature of the booster pump is detected to be higher than 110°C (e.g., which can be used as the second safety threshold), the system will shut down and issue an alarm. When the oil and gas pressure drops due to processing until it is equal to or lower than a preset shutdown threshold (e.g., set to 0 Pa), the system will execute a shutdown sequence, shut down the booster pump, condenser, and vacuum pump, stop oil and gas processing, and return to standby mode.
[0091] S203: After entering the oil and gas processing operation state, continuously monitor key operating parameters, including oil and gas temperature and emission concentration.
[0092] In this application embodiment, key operating parameters refer to a set of core indicators selected from numerous monitorable physical quantities of the oil and gas processing device that most directly reflect the system's current processing efficiency, operational safety, and environmental compliance. For example, the emission outlet concentration parameter, which measures the oil and gas content in the final emitted gas in real time, is directly related to whether the device meets national environmental standards and is the ultimate basis for judging the effectiveness of the entire oil and gas recovery process; therefore, it is considered a key operating parameter.
[0093] Specifically, once the startup sequence in step S202 is completed, the system officially enters the oil and gas processing operation state. In this state, the system's task shifts from startup to online maintenance of the operating state, and it immediately begins continuous monitoring of a preset set of key operating parameters. This monitoring process is achieved by reading data from sensors installed at various locations within the unit at high frequency and without interruption. Specifically, the system monitors the outlet temperature of the booster pump to ensure the processing is within the optimal temperature range; simultaneously, it monitors the concentration of volatile organic compounds (VOCs) at the emission port to ensure that the gas ultimately released into the atmosphere complies with environmental regulations; furthermore, it monitors the inlet and outlet pressures of the membrane separation module to determine the efficiency and health status of the membrane separation unit. These continuously monitored key operating parameter values serve as the real-time data basis for comparisons and decisions in subsequent steps.
[0094] S204: Compare the monitoring values of key operating parameters with a set of safety thresholds corresponding to the current oil and gas load mode to obtain the comparison results.
[0095] In this embodiment, the set of safety thresholds corresponding to the current oil and gas load mode refers to a set of critical values bound to different operating conditions such as high load mode or normal load mode, used to determine whether key operating parameters are within the normal range. The system dynamically selects and activates the corresponding set of safety thresholds as the evaluation standard for real-time monitoring based on the currently determined oil and gas load mode. For example, in normal load mode, the safety threshold for the booster pump outlet temperature can be set to 100℃; while in high load mode, considering the rapid increase in processing load, to avoid unnecessary frequent alarms, the corresponding temperature safety threshold can be appropriately relaxed to 110℃.
[0096] Specifically, after continuously acquiring the real-time monitoring values of each key operating parameter in step S203, the system retrieves a set of safety thresholds uniquely corresponding to the current oil and gas load mode (high load or normal load) determined in step S201 from a preset configuration library. The system then enters a high-frequency cyclic comparison process, in which the real-time monitoring value of each key operating parameter is mathematically compared with its corresponding specific limit value in the current set of safety thresholds. For example, the real-time monitored oil and gas temperature value is compared with the temperature safety threshold under the current mode, and the emission outlet concentration value is compared with the concentration safety threshold under the current mode. Through this series of comparison operations, the system generates a comparison result containing a current status identifier for each key operating parameter. The status identifier can be specifically a data label such as "normal," "Level 1 alarm," or "Level 2 alarm." This comparison result is transmitted to the subsequent control decision module as a direct input for it to execute the corresponding operation.
[0097] Optional examples of key operating parameters and their dynamic safety thresholds are shown in the table below:
[0098] Key operating parameters Safety threshold under normal load mode Safety threshold under high load mode Note (Considerations for threshold setting) Booster pump outlet temperature First threshold: 100℃ Second threshold: 110℃ First threshold: 110℃ Second threshold: 115℃ The system generates more heat under high load, and appropriately relaxing the threshold can avoid unnecessary adjustments and shutdowns. Emission concentration First threshold: 20g / m³ Second threshold: 25g / m³ First threshold: 20g / m³ Second threshold: 25g / m³ Environmental protection standards must be strictly followed under any model, therefore the thresholds are fixed. Membrane module pressure First threshold: 0.2 MPa Second threshold: 0.3 MPa First threshold: 0.25 MPa Second threshold: 0.35 MPa Under high load, the intake pressure and flow rate are greater, and the allowable operating pressure range is adjusted accordingly.
[0099] S205: Based on the comparison results, perform regulatory control operations or interruption protection operations. Regulatory control operations include adjusting the operating power of the booster pump or the opening of the discharge valve without interrupting the oil and gas processing process.
[0100] In this embodiment, the regulatory control operation refers to a series of online adjustment actions automatically executed by the system to bring key operating parameters back to the normal range, without interrupting the oil and gas processing operation, in response to slight or moderate deviations in these parameters. The technical function of this operation is to correct operating parameters that have begun to deviate from the normal range back to the preset safe range by fine-tuning some actuators online, without interrupting the overall processing flow. For example, when the oil and gas temperature is detected to be slightly higher than its safe threshold, the system can execute a regulatory control operation, such as gradually increasing the operating power of the condenser to enhance the cooling effect and bring the temperature back to normal.
[0101] Specifically, the system analyzes the comparison results generated in step S204 in real time. If the results show that the monitored value of any critical operating parameter enters the warning range (e.g., exceeding the first safety threshold but not reaching the second safety threshold), the system will execute a regulatory control operation. In this operation, the core process of oil and gas processing will not be interrupted, but rather fine-tuning instructions will be issued to specific actuators. For example, based on the specific deviation parameters and magnitude, instructions will be issued to adjust the operating power of the booster pump or to adjust the opening of the discharge valve, in order to bring the parameters back to the normal range during continuous operation. However, if the comparison results show that the monitored value of any critical operating parameter reaches the highest level of danger threshold (e.g., exceeding the second safety threshold), the system will determine that the situation is urgent and immediately execute an interruption protection operation. This operation will immediately cut off the power supply to the main actuators and close the critical valves, forcibly stopping the entire oil and gas processing process to ensure equipment and environmental safety.
[0102] In one possible implementation, based on the comparison results, an adjustment control operation or an interruption protection operation is performed, specifically including: setting an associated first safety threshold and a second safety threshold for each of the key operating parameters, wherein the second safety threshold is higher than the first safety threshold; when the monitored value of any of the key operating parameters exceeds the corresponding first safety threshold but does not exceed the corresponding second safety threshold, an adjustment control operation is performed; when the monitored value of any of the key operating parameters exceeds the corresponding second safety threshold, an interruption protection operation is performed.
[0103] In this embodiment, the first safety threshold represents a warning threshold set for a key operating parameter, which defines the boundary between the system's transition from the "normal operating range" and the "regulation and control range." When the monitored parameter value exceeds this threshold, it indicates that the system operation has deviated from its optimal state. Although it has not reached a dangerous level, active intervention is required to prevent further deterioration. For example, if the normal operating pressure of the membrane module is 0.2-0.3 MPa, its first safety threshold can be set to 0.2 MPa. When the pressure exceeds 0.2 MPa, the system will trigger regulatory control operations, and the second safety threshold, representing a dangerous situation, may be set at a higher 0.3 MPa.
[0104] Specifically, before entering operational mode, the system loads a set of safety thresholds with two different numerical levels for each key operating parameter (such as oil and gas temperature, emission concentration, etc.): a lower first safety threshold and a higher second safety threshold. During operation, the system continuously compares the real-time monitoring values of each parameter with these two thresholds, forming a three-range judgment logic. If the monitoring value of any parameter is lower than its corresponding first safety threshold, it is considered normal, and no action is taken. If the monitoring value of the parameter exceeds the corresponding first safety threshold but has not yet exceeded the corresponding second safety threshold, the system determines that it has entered the warning adjustment range and immediately executes regulatory control operations. If the monitoring value of the parameter further deteriorates and exceeds its corresponding second safety threshold, the system determines that it has entered the danger range and immediately executes interruption protection operations, stopping the entire process.
[0105] In one possible implementation, the adjustment control operation includes: setting an adjustment switching threshold between a first safety threshold and a second safety threshold; when the monitored value of a key operating parameter exceeds the first safety threshold but does not exceed the adjustment switching threshold, performing a first-level adjustment operation, which includes adjusting the opening of the discharge port valve; and when the monitored value of a key operating parameter exceeds the adjustment switching threshold but does not exceed the second safety threshold, performing a second-level adjustment operation, which includes reducing the operating power of the booster pump.
[0106] In this embodiment, the adjustment switching threshold is an intermediate critical value set between a first safety threshold and a second safety threshold. It is used to further subdivide the entire adjustment control range into two sub-ranges: a first-level adjustment zone and a second-level adjustment zone. The function of this threshold is to enable the system to take progressive intervention measures with varying degrees of intensity and cost based on the degree to which the parameters deviate from the normal range. For example, if the first and second safety thresholds are 0.2 MPa and 0.3 MPa, respectively, the adjustment switching threshold can be set to 0.25 MPa, thereby defining 0.2 MPa-0.25 MPa as the first-level adjustment zone and 0.25 MPa-0.3 MPa as the second-level adjustment zone.
[0107] Specifically, when the monitored value of any key operating parameter exceeds its corresponding first safety threshold, triggering a regulatory control operation, the system further compares the monitored value with a regulation switching threshold set between the first and second safety thresholds to perform tiered regulation. If the monitored value is between the first safety threshold and the regulation switching threshold, the system determines this as a slight deviation and executes a first-level regulation operation. This operation is a low-impact fine-tuning measure, such as sending a command to the controller of the discharge valve to fine-tune its opening to change the local pressure or flow rate of the system. If the parameter monitoring value continues to rise and exceeds the regulation switching threshold, but still does not reach the second safety threshold, the system determines that the deviation has worsened and escalates to execute a second-level regulation operation. This operation is a high-impact intervention measure, such as directly reducing the operating power of the core equipment booster pump to significantly reduce the processing load of the entire system, thereby more forcefully bringing the parameters back to the normal range.
[0108] S206: When an interruption protection operation is triggered or a regulatory control operation is performed until the oil and gas pressure is lower than the preset shutdown threshold, a shutdown sequence is executed and the system returns to standby mode.
[0109] In this embodiment, the shutdown sequence refers to a pre-set set of instructions, corresponding to the startup sequence, containing multiple steps, to ensure a safe and orderly transition of the oil and gas processing unit from its operating state to a completely static standby state. This includes not only shutting down individual actuators but may also include necessary pipeline purging or pressure release steps, aiming to safely end the current processing cycle and restore the system to its initial state. For example, a typical shutdown sequence might first stop the booster pump, but maintain the vacuum pump and condenser running for a short period to purge residual oil and gas from the pipelines. Once the pipeline pressure drops to a safe level, the condenser and vacuum pump are then stopped sequentially.
[0110] Specifically, after entering the oil and gas processing operation state, the system continuously monitors two possible shutdown conditions. The first is an emergency shutdown condition: once the interruption protection operation in step S205 is triggered, the system will immediately initiate a shutdown sequence to ensure safety. The second is a normal shutdown condition: when the system is processing oil and gas normally through methods such as regulatory control operations, it will continuously compare the real-time oil and gas pressure in the storage tank with a preset, lower shutdown threshold. When the oil and gas pressure gradually decreases due to continuous processing until it falls below the shutdown threshold, the system determines that the processing task has been completed. Regardless of which condition triggers the shutdown, the system will begin executing the corresponding shutdown sequence, safely shutting down each actuator according to the preset steps and order. After all steps of the shutdown sequence have been executed, the system will finally return completely from the oil and gas processing operation state to the standby state. At this time, the main equipment stops working, but the monitoring system remains on, waiting for the start of the next processing cycle.
[0111] Accordingly, in an exemplary scenario, the shutdown sequence can also be categorized into a regular shutdown sequence and an emergency shutdown sequence based on the triggering reason: The regular shutdown sequence is executed after the task is completed normally, aiming to safely and thoroughly end the cycle. Its steps may include: stopping the booster pump to stop the delivery of new oil and gas; maintaining the vacuum pump and condenser running for a preset purging time (e.g., 60 seconds) to handle residual oil and gas in the pipeline; and after purging, sequentially stopping the condenser and vacuum pump, and closing the relevant valves.
[0112] The emergency shutdown sequence is executed when an interruption protection operation is triggered, aiming to ensure safety immediately. Its steps may include: immediately sending stop commands to all operating actuators (including vacuum pumps, booster pumps, condensers, etc.); immediately closing all safety shut-off valves between the storage tank and the processing unit to isolate the source of risk; activating audible and visual alarms and generating a fault log.
[0113] This embodiment also discloses an electronic device, as shown in the reference. Figure 3 The electronic device may include: at least one processor 301, at least one communication bus 302, user interface 303, network interface 304, and at least one memory 305.
[0114] The communication bus 302 is used to enable communication between these components.
[0115] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0116] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0117] The processor 301 may include one or more processing cores. The processor 301 connects to various parts of the server using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 305, and by calling data stored in memory 305. Optionally, the processor 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 301 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 301 and may be implemented as a separate chip.
[0118] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned processor 301. Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for an oil and gas processing method.
[0119] exist Figure 3In the electronic device shown, the user interface 303 is mainly used to provide an input interface for the user and to obtain the user input data; while the processor 301 can be used to call an application program stored in the memory 305 for an oil and gas processing method. When executed by one or more processors 301, the electronic device performs one or more methods as described in the above embodiments.
[0120] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0121] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0122] In some embodiments of this application, a computer-readable storage medium is provided, including instructions that, when executed on an electronic device, cause the electronic device to perform an oil and gas processing method according to an embodiment of this application.
[0123] In some embodiments of this application, a computer program product is also provided, which, when run on an electronic device, causes the electronic device to execute an oil and gas processing method according to an embodiment of this application.
[0124] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be through some service interfaces; indirect couplings or communication connections between apparatuses or units may be electrical or other forms.
[0125] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0126] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0127] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory 305 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory 305 includes various media capable of storing program code, such as a USB flash drive, external hard drive, magnetic disk, or optical disk.
[0128] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of other embodiments of this disclosure upon considering the disclosure in this specification. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are considered exemplary only, and the scope of this application is defined by the claims.
Claims
1. A method for oil and gas processing, characterized in that, Applied to oil and gas processing equipment, the method includes: In standby mode, the current oil and gas load mode is determined based on the rate of change of oil and gas pressure in the oil storage tank, and corresponding start-up parameters are matched according to the current oil and gas load mode. The start-up parameters include start-up pressure threshold and start-up timing. When the oil and gas pressure exceeds the start-up pressure threshold, the preset actuator is started according to the start-up sequence, and the oil and gas processing operation state is entered. After entering the oil and gas processing operation state, key operating parameters are continuously monitored, including oil and gas temperature and emission concentration. The comparison results are obtained by comparing the monitored values of the key operating parameters with a set of safety thresholds corresponding to the current oil and gas load mode; Based on the comparison results, an adjustment control operation or an interruption protection operation is performed. The adjustment control operation includes adjusting the operating power of the booster pump or the opening of the discharge valve without interrupting the oil and gas processing process. When the interruption protection operation is triggered or the regulatory control operation is executed until the oil and gas pressure is lower than a preset shutdown threshold, a shutdown sequence is executed, and the system returns to the standby state. The process of determining the current oil and gas load mode based on the rate of change of oil and gas pressure within the storage tank, and matching corresponding start-up parameters according to the current oil and gas load mode, specifically includes: The rate of change is compared with a preset rate threshold; If the rate of change is less than the rate threshold, the current oil and gas load mode is determined to be a normal load mode, and the first start-up parameters of the first pressure threshold and normal start-up sequence are matched according to the normal load mode. If the rate of change is greater than or equal to the rate threshold, the current oil and gas load mode is determined to be a high load mode, and a second start-up parameter with a second pressure threshold and an enhanced start-up sequence is matched according to the high load mode, wherein the second pressure threshold is lower than the first pressure threshold, and the actuator start-up time interval of the enhanced start-up sequence is less than the normal start-up sequence. When the oil and gas pressure exceeds the start-up pressure threshold, the preset actuator is activated according to the start-up sequence, specifically including: If the oil and gas load mode is determined to be a high load mode, the actuator is started according to the start-up sequence when the oil and gas pressure first exceeds the start-up pressure threshold. If the oil and gas load mode is determined to be a normal load mode, the actuator will be started according to the start sequence after the oil and gas pressure is continuously greater than or equal to the start pressure threshold for a preset duration.
2. The method according to claim 1, characterized in that, The method further includes: After each preset time period ends, a time series dataset is constructed based on the historical operating data collected within the time period. The historical operating data consists of multiple data points, each of which is associated with an operating cycle and records the rate of change of oil and gas pressure, oil and gas load mode, and a set of performance indicators for the operating cycle. The performance indicators include unit oil and gas processing energy consumption, control intervention frequency, and peak emission concentration. The time series dataset is segmented according to a preset time window, and the performance index of the data points in each time window is compared with the preset performance baseline to determine the operating conditions to be optimized. Analyze the common characteristics of the data points of the working condition to be optimized, and determine the adjustment direction and dynamic adjustment step size based on the common characteristics and the deviation of the associated performance indicators, and perform adjustments on the rate threshold, the first pressure threshold and / or the second pressure threshold.
3. The method according to claim 2, characterized in that, The step of determining the adjustment direction and dynamic adjustment step size based on the common characteristics and the deviation of the associated performance indicators specifically includes: If the common feature is that, in an operating cycle determined to be a normal load mode, the average control intervention frequency index of the operating condition to be optimized is worse than the performance baseline, then the adjustment direction is to reduce the rate threshold. If the common feature is manifested as the frequency of interrupt protection operation exceeding the preset interrupt trigger frequency threshold in the operation cycle determined to be in a high load mode, then the adjustment direction is to reduce the second pressure threshold. If the common feature is that, in an operating cycle determined to be a normal load mode, the average unit oil and gas processing energy consumption index of the operating condition to be optimized is worse than the efficiency baseline, then the adjustment direction is to increase the first pressure threshold. Calculate the average deviation of the performance index of the operating condition to be optimized relative to the performance baseline; If the average deviation exceeds the first deviation threshold but does not exceed the second deviation threshold, then a conventional adjustment step size is used; If the average deviation exceeds the second deviation threshold, an enhanced adjustment step size larger than the conventional adjustment step size is adopted.
4. The method according to claim 1, characterized in that, The step of performing regulatory control operations or interruption protection operations based on the comparison results specifically includes: For each of the key operating parameters, a first security threshold and a second security threshold are respectively set, wherein the second security threshold is higher than the first security threshold; When the monitored value of any of the key operating parameters exceeds the corresponding first safety threshold but does not exceed the corresponding second safety threshold, the regulatory control operation is executed. When the monitored value of any of the key operating parameters exceeds the corresponding second security threshold, the interruption protection operation is executed.
5. The method according to claim 4, characterized in that, The execution of the regulatory control operation specifically includes: An adjustment switching threshold is set between the first security threshold and the second security threshold; When the monitored value of the key operating parameter exceeds the first safety threshold but does not exceed the adjustment switching threshold, a first-level adjustment operation is performed, which includes adjusting the opening degree of the discharge port valve. When the monitored value of the key operating parameter exceeds the adjustment switching threshold but does not exceed the second safety threshold, a second-level adjustment operation is performed, which includes reducing the operating power of the booster pump.
6. An electronic device, characterized in that, Including processor and memory; The memory is used to store computer program code, the computer program code including computer instructions, and the processor invokes the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-5.
7. A computer-readable storage medium storing computer instructions, characterized in that, When the computer instructions are executed on the electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-5.
8. A computer program product, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-5.