CN117234252B - Gas well pressure control method, system, device and medium - Google Patents
Gas well pressure control method, system, device and medium Download PDFInfo
- Publication number
- CN117234252B CN117234252B CN202311524691.0A CN202311524691A CN117234252B CN 117234252 B CN117234252 B CN 117234252B CN 202311524691 A CN202311524691 A CN 202311524691A CN 117234252 B CN117234252 B CN 117234252B
- Authority
- CN
- China
- Prior art keywords
- pressure
- value
- threshold value
- pressure values
- gas well
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012544 monitoring process Methods 0.000 claims description 27
- 238000003860 storage Methods 0.000 claims description 15
- 238000004519 manufacturing process Methods 0.000 abstract description 32
- 238000011084 recovery Methods 0.000 abstract description 5
- 239000007789 gas Substances 0.000 description 74
- 230000001276 controlling effect Effects 0.000 description 21
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 description 16
- 230000015572 biosynthetic process Effects 0.000 description 8
- 239000003345 natural gas Substances 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000007774 longterm Effects 0.000 description 5
- 238000005259 measurement Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000033228 biological regulation Effects 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 3
- 239000000243 solution Substances 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 238000005065 mining Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 206010030113 Oedema Diseases 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000012530 fluid Substances 0.000 description 1
- 238000012417 linear regression Methods 0.000 description 1
- 230000035699 permeability Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Landscapes
- Control Of Fluid Pressure (AREA)
Abstract
The invention relates to the field of gas well exploitation and production, and particularly provides a gas well pressure control method, a gas well pressure control system, a gas well pressure control device and a gas well pressure control medium, wherein the gas well pressure control method comprises the following steps: collecting the pressure of a gas well oil pipe or a casing pipe at a first preset time interval to obtain a plurality of first pressure values; calculating an arithmetic average value of all the first pressure values corresponding to the first threshold value of the number to obtain a second pressure value; calculating a sliding average value of all the second pressure values corresponding to the number reaching the second threshold value to obtain a third pressure value; calculating an arithmetic average value of all third pressure values corresponding to the third threshold value of the number to obtain a plurality of fourth pressure values; selecting a fourth pressure value corresponding to the first moment and the second moment from the plurality of fourth pressure values to calculate a difference value; and controlling the opening of the valve according to the difference value. According to the invention, through a refined pressure control method, the opening of the valve is intelligently controlled, the production pressure of a gas well is accurately controlled, the safe production is ensured, and meanwhile, the recovery ratio is improved, and the yield is stable.
Description
Technical Field
The invention relates to the field of gas well exploitation and production, and particularly provides a gas well pressure control method, a gas well pressure control system, a gas well pressure control device and a gas well pressure control medium.
Background
In the exploitation process of natural gas, technicians need to control underground equipment, and a great amount of development practices of gas wells prove that the pressure control production can be generally improved by 28% compared with the pressure release production, the EUR (Estimated Ultimate Recovery) is short for the final recoverable reserves estimated by a single well, namely a exploitation well which has been produced for more than a plurality of years, and the estimated final recoverable reserves of the well are estimated by using a trend prediction method according to the decreasing rule of productivity. Therefore, in actual production, the production pressure decay rate needs to be controlled within a reasonable range, so that the purposes of stable production and prolonged production life are achieved.
Pressure control production is not simple constant pressure production, and how to delay yield decrease while controlling pressure is a core target of pressure control production, so that pressure control is required to be refined to achieve stable production and keep the energy balance of stratum.
Therefore, development of a device capable of finely controlling pressure, maintaining the energy balance of stratum and realizing long-term continuous and stable exploitation is needed.
Disclosure of Invention
In order to overcome the defects, the invention provides a method, a system, a device and a medium for controlling the pressure of a gas well, and the long-term continuous and stable exploitation of the gas well is realized through fine pressure control.
In a first aspect, the present invention provides a gas well pressure control method comprising:
collecting the pressure of a gas well oil pipe or a casing pipe at a first preset time interval to obtain a plurality of first pressure values;
monitoring that the number of the first pressure values reaches a first threshold value, and calculating an arithmetic average value of all the first pressure values corresponding to the number reaching the first threshold value to obtain a second pressure value;
monitoring that the number of the plurality of second pressure values reaches a second threshold value, and calculating a sliding average value of all the second pressure values corresponding to the number reaching the second threshold value to obtain a third pressure value;
monitoring that the number of the plurality of third pressure values reaches a third threshold value, and calculating an arithmetic average value of all third pressure values corresponding to the number reaching the third threshold value to obtain a plurality of fourth pressure values;
selecting a fourth pressure value corresponding to the first moment and the second moment from the plurality of fourth pressure values to calculate a difference value;
and controlling the opening of the valve according to the difference value.
In one technical scheme of the gas well pressure control method, the collecting gas well oil pipe or casing pressure at a first preset time interval to obtain a plurality of first pressure values includes:
the pressure of the oil pipe or the casing of the gas well is collected every second, and a plurality of second pressure values are obtained.
In one technical scheme of the gas well pressure control method, the monitoring that the number of the plurality of first pressure values reaches a first threshold value, calculating an arithmetic average value of all the first pressure values corresponding to the number of the first pressure values reaching the first threshold value, and obtaining a second pressure value includes:
and monitoring that the number of the plurality of second pressure values reaches 60, and calculating the arithmetic average value of all second pressure values in each minute to obtain the minute pressure value of the minute.
In one technical scheme of the gas well pressure control method, the monitoring that the number of the plurality of second pressure values reaches a second threshold value, calculating a sliding average value for all the second pressure values corresponding to the number of the second pressure values reaching the second threshold value, and obtaining a third pressure value includes:
monitoring the number of the pressure values for a plurality of minutes to reach 60;
acquiring a minute pressure value 60 minutes before a certain moment;
and calculating an arithmetic average value of the obtained pressure values of 60 minutes to obtain an hour pressure value corresponding to the moment.
In one technical scheme of the gas well pressure control method, the monitoring that the number of the plurality of third pressure values reaches a third threshold value, calculating an arithmetic average value for all third pressure values corresponding to the number of third pressure values reaching the third threshold value, and obtaining a plurality of fourth pressure values includes:
monitoring the number of the pressure values of the plurality of hours to 1440;
acquiring an hour pressure value corresponding to 1440 minutes before a certain moment and each minute;
calculating an arithmetic average value of the obtained 1440 minute pressure values to obtain a daily pressure value corresponding to the moment;
an arithmetic average is calculated from the pressure values every 1440 minutes, resulting in a plurality of daily pressure values.
In one aspect of the method for controlling pressure of a gas well, the selecting a fourth pressure value corresponding to the first time and the second time from the plurality of fourth pressure values to calculate a difference value includes:
a first daily pressure value corresponding to a first moment is obtained,
acquiring a second daily pressure value corresponding to a second moment;
and calculating a difference between the second daily pressure value and the first daily pressure value, wherein the second moment is earlier than the first moment, and the difference is 1440 minutes.
In one technical scheme of the gas well pressure control method, the controlling the opening of the valve according to the difference value comprises:
judging whether the third pressure value corresponding to the first moment is larger than a fourth threshold value, and if so, controlling the valve to be fully opened;
if not, determining a minimum threshold value and a maximum threshold value of the valve opening based on the third pressure value corresponding to the first moment;
if the difference value is larger than the maximum threshold value, reducing the opening of the valve;
if the difference value is smaller than the minimum threshold value, increasing the opening of the valve;
if the difference value is not more than the maximum threshold value and the difference value is not less than the minimum threshold value, the opening of the valve is unchanged.
In one aspect of the gas well pressure control method, the method is based on the first time pair
Determining the minimum and maximum thresholds for valve opening for the corresponding third pressure values includes:
judging whether the third pressure value is larger than a fifth threshold value, and if so, obtaining a first minimum threshold value and a first maximum threshold value;
judging whether the third pressure value is smaller than or equal to a sixth threshold value and larger than zero, if so, obtaining a second minimum threshold value and a second maximum threshold value;
and judging whether the third pressure value is smaller than or equal to the fifth threshold value and larger than the sixth threshold value, and if so, obtaining a third minimum threshold value and a third maximum threshold value.
In one technical scheme of the gas well pressure control method, the controlling the opening of the valve according to the difference value comprises:
and controlling the opening of the valve according to the difference value according to a preset regulation period.
In a second aspect, the invention provides a control device comprising a processor and a memory device adapted to store a plurality of program codes adapted to be loaded and executed by the processor to perform the gas well pressure control method.
In a third aspect, the present invention provides a gas well pressure control system comprising:
the data acquisition device is used for acquiring the pressure of the oil pipe or the casing of the gas well according to a first preset duration;
the control device is used for controlling the control device;
and the gas well valve is used for controlling the opening degree of the valve.
In a fourth aspect, the invention provides a computer readable storage medium having stored therein a plurality of program codes adapted to be loaded and executed by a processor to perform the gas well pressure control method.
The technical scheme provided by the invention has at least one or more of the following beneficial effects:
in the technical scheme of implementing the invention, the second pressure value is obtained by calculating the average value of the plurality of first pressure values, the sliding average value is calculated for the plurality of second pressure values, the third pressure value is obtained, the arithmetic average value is calculated for the plurality of third pressure values, and the fourth pressure value is obtained, so that the data resolution is improved, the data fluctuation and error are greatly reduced, and finally the opening of the valve is controlled through the pressure drop at two moments.
The invention reduces the acquisition error of the sensor and improves the data precision.
According to the invention, through a refined pressure control method, the opening of the valve is intelligently controlled, the production pressure of a gas well is accurately controlled, the safe production is ensured, and meanwhile, the recovery ratio is improved, and the yield is stable.
Drawings
The present disclosure will become more readily understood with reference to the accompanying drawings. As will be readily appreciated by those skilled in the art: the drawings are for illustrative purposes only and are not intended to limit the scope of the present invention. Moreover, like numerals in the figures are used to designate like parts, wherein:
FIG. 1 is a schematic flow chart of main steps of a gas well pressure control method according to an embodiment of the invention;
FIG. 2 is a schematic flow chart of a step of selecting a fourth pressure value corresponding to a first time and a second time from the plurality of fourth pressure values to calculate a difference value according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the main flow of the step of controlling the opening of the valve according to the difference value according to one embodiment of the present invention;
FIG. 4 is a schematic flow chart of the main steps of determining the minimum and maximum thresholds of valve opening based on the third pressure value corresponding to the first time according to one embodiment of the present invention;
FIG. 5 is a schematic flow diagram illustrating the main steps of a method for controlling gas well pressure according to one embodiment of the present invention;
FIG. 6 is a schematic block diagram of the primary architecture of a gas well pressure control system according to one embodiment of the present invention;
fig. 7 is a schematic diagram of connection between a fine voltage control system and an internet of things platform according to an embodiment of the present invention.
Detailed Description
Some embodiments of the invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
In the description of the present invention, a "module," "processor" may include hardware, software, or a combination of both. A module may comprise hardware circuitry, various suitable sensors, communication ports, memory, or software components, such as program code, or a combination of software and hardware. The processor may be a central processor, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and/or signal processing functions. The processor may be implemented in software, hardware, or a combination of both. Non-transitory computer readable storage media include any suitable medium that can store program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, and the like. The term "a and/or B" means all possible combinations of a and B, such as a alone, B alone or a and B. The term "at least one A or B" or "at least one of A and B" has a meaning similar to "A and/or B" and may include A alone, B alone or A and B. The singular forms "a", "an" and "the" include plural referents.
In the process of exploiting natural gas, oil gas is in the ground, and comes out from the wellhead of a gas well during exploitation, if the wellhead valve is opened greatly, the pressure of the stratum is reduced rapidly, and if the wellhead valve is opened slightly, the pressure of the stratum is reduced slowly, and the pressure of the stratum can be regulated through the opening of the valve.
The setting of the pressure control range is affected by a variety of factors including at least: (1) The pressure control ranges are different because the stratum properties of different areas are different, for example, the stratum conditions of Sichuan and Sichuan are different, and the pressure control ranges of gas wells in the two areas are different; (2) Different oil and gas types, such as shale gas, dense gas and conventional natural gas, have different pressure control ranges; (3) The pressure control requirements of the management part are different, for example, the pressure control requirement is controlled to be 0.01-0.03 Mpa/day, the pressure control requirement is controlled to be 0.03-0.07 Mpa/day and the like, and because different mining plans exist in different areas, the production department has different requirements on the amount to be produced in each day and each year of the gas well in the area, the pressure control range is different in different areas, and even in the same area, the pressure required for mining in different time periods is also different. It follows that gas wells are produced without pressure control.
In order to realize the long-term continuous stable exploitation of the gas well, scientific control and accurate pressure control are required, but the pressure control production is not simple constant pressure production, and the operation of opening a valve to increase the yield and closing the valve to reduce the yield can be realized. The formation pressure starts to be reduced, for example, 30-40Mpa after exploitation starts, the faster the pressure is reduced, the lower the pressure is, the more energy is supplied to the surrounding formation, if the valve is opened at first, the yield is high, the formation is quickly free of energy, the production cannot be continuously carried out, the low-yield state is maintained, the formation energy is sufficient at first, the long-term stable production can be carried out, the yield is reduced, but the pressure is continuously carried out at low position, the formation energy is not fully utilized, and the yield is difficult to meet the requirement.
In the oil gas exploitation process, if the pressure drop is too large, the permeability of a reservoir is reduced due to stress sensitivity, the fluid mobility is poor, residual oil gas cannot be exploited, and great cost such as water injection, gas injection and the like is needed to recover energy to displace the oil gas, so that the oil gas is produced. In order to achieve both production efficiency and sustainable development of a gas well, the key point is that which pressure control method can meet the current yield requirement, the reservoir is not damaged, stratum energy is recovered in time and kept balanced, and the final recovery ratio is improved.
Referring to fig. 1 and 5, the present invention provides a gas well pressure control method, comprising:
s1, acquiring the pressure of an oil pipe or a casing of a gas well at a first preset time interval to obtain a plurality of first pressure values;
s2, monitoring that the number of the first pressure values reaches a first threshold value, and calculating an arithmetic mean value of all the first pressure values corresponding to the number reaching the first threshold value to obtain a second pressure value;
s3, monitoring that the number of the second pressure values reaches a second threshold value, and calculating a sliding average value of all the second pressure values corresponding to the number reaching the second threshold value to obtain a third pressure value;
s4, monitoring that the number of the plurality of third pressure values reaches a third threshold value, and calculating an arithmetic average value of all third pressure values corresponding to the number reaching the third threshold value to obtain a plurality of fourth pressure values;
s5, selecting a fourth pressure value corresponding to the first moment and the second moment from the fourth pressure values so as to calculate a difference value;
and S6, controlling the opening of the valve according to the difference value.
In the field of gas well acquisition technology, those skilled in the art know that a casing is fixed, an oil pipe is suspended in the casing, and the casing pressure and the oil pressure are used for representing the formation pressure.
The invention is directed to gas well production of natural gas, both tubing and casing in S1 being used in gas well production.
According to the embodiment, the second pressure value is obtained by calculating the average value of the first pressure value, the sliding average value is calculated for the second pressure value, the third pressure value is obtained, the arithmetic average value is calculated for the third pressure value, and the fourth pressure value is obtained, so that the data resolution is improved, the data fluctuation and error are reduced to a great extent, finally, the opening of the valve is controlled through the pressure drop at two moments, the accurate pressure control is realized, the stable exploitation of natural gas is realized through adjusting the opening of the valve, the sustainable development of the production efficiency and the gas well is considered, the stratum energy is recovered in time, and the single well EUR is improved.
In one embodiment, S1, acquiring gas well tubing or casing pressure at a first predetermined time interval, the acquiring a plurality of first pressure values comprises:
collecting the pressure of a gas well oil pipe or a casing pipe every second to obtain a plurality of second pressure values P t s 。
In this embodiment, the first preset time interval is seconds, the pressure of the oil pipe or the casing of the gas well is collected by the sensor arranged on the wellhead of the gas well, and the pressure sensor collects data according to seconds during the collection.
Second pressure value P t s Is the data directly collected by the pressure sensor in seconds, and represents the formation pressure value in the seconds. For example, the pressure value collected by the 1 st second pressure sensor is 14MPa, the pressure value collected by the 2 nd second pressure sensor is 14.5MPa, and the pressure sensor continuously collects data according to seconds.
In one embodiment, S2, monitoring that the number of the plurality of first pressure values reaches a first threshold value, calculating an arithmetic average value for all first pressure values corresponding to the number reaching the first threshold value, and obtaining a second pressure value includes:
monitoring the number of the pressure values of a plurality of seconds to 60 seconds, calculating the arithmetic average value of the pressure values of all seconds in each minute, and obtaining a minute pressure value P of the minute t m See formula (1):
(1),
wherein P is t m For minute pressure value, P t s Is the second pressure value of the s second.
In this embodiment, since the first pressure values are collected in seconds, all the second pressure values corresponding to the first threshold are included in one minute.
In this embodiment, the first threshold is 60, and the number can be increased or decreased as required.
If the pressure value P is used t s To evaluate the pressure change of the gas well, a larger measurement error exists, such as 14MPa in the first second and 14.5MPa in the second, and the pressure is unstable, so that in order to reduce the measurement error of the pressure sensor, a first threshold value, such as 60 seconds, is used for obtaining a minute value, and the error is reduced.
In one embodiment, S3, monitoring that the number of the plurality of second pressure values reaches a second threshold, calculating a sliding average value for all second pressure values corresponding to the number reaching the second threshold, and obtaining a third pressure value includes:
monitoring the number of the pressure values for a plurality of minutes to reach 60;
acquiring a minute pressure value 60 minutes before a certain moment;
calculating an arithmetic average value of the obtained pressure values of 60 minutes to obtain an hour pressure value P corresponding to the moment t avg m 。
In this embodiment, the second threshold is 60, and more or less data may be selected as required, and the time in this embodiment is a minute time.
In this embodiment, a data queue is created according to the "first-in first-out principle", one new data is collected at a time and put into the end of the queue, and one data at the head of the original queue is removed, and there are always 60 data in the data queue, for example, 60 consecutive pressure values (including a, a-1, a-2..a-59 minutes) before the data queue is collected for a minute. The average value of 60 data in the queue, for example, two points of zero and one to three points of zero (60 minutes for two points of zero), is divided by 60 after 60 minutes of data are added together, and the average value is the hour pressure value corresponding to the moment of three points, and the hour pressure value is the hour pressure value at the moment of dividing for example, 10 points of 15 to 11 points of 14 into 11 points of 14.
In one application scenario, if a certain time is 2 points of 00 minutes, 1 point of 59 minutes, 1 point of 58 minutes and 1 point of 57 minutes are collected, 60 minutes of pressure values are obtained, and the pressure values are added and divided by 60 to obtain an hour pressure value P corresponding to 2 points of 00 minutes t avg m 。
2 points 01 are collected, and 2 points 00 points, 1 point 58 points and 1 point 57 points are collected, wherein the total pressure value is 60 minutes, and the pressure value is added and divided by 60 to obtain an hour pressure value P corresponding to the 2 points 01 t avg m 。
And so on.
If the minute pressure value P is used t m To evaluate the pressure variation of the gas well, and the pressure value P in seconds t s Similarly, there is still a problem that a relatively large measurement error is not achieved, and a relatively low data resolution is not achieved, because in the middle of the previous hour, the data is shifted, but only the minute value is not detected, for example, the previous minute is 14.5MPa, the next minute is 14.5MPa, the difference is 0.5MPa, and the high resolution such as 0.01 and 0.03 cannot be obtained, so that the data of the hour is calculated by using the data of 1 point 01 to 2 points, the data of the minute is used for representing the data of the 2 points, the data of the minute is calculated by using the data of the 3 points, and the data of the minute is calculated by using the data of the 2 points 01 to 3 points, because the data of the minute is divided by 60 minutes, the resolution is higher, for example, the two points are 15MPa, the two points are 15.5MPa, the resolution is 0.5MPa, the resolution is too high, and the average of 60 minutes is equivalent to the resolution of 0.5MPa, and the resolution is reduced.
In one embodiment, S4, the monitoring that the number of the plurality of third pressure values reaches the third threshold value, calculating an arithmetic average value for all third pressure values corresponding to the number of third pressure values reaching the third threshold value, and obtaining a plurality of fourth pressure values includes:
monitoring the number of the pressure values of the plurality of hours to 1440;
acquiring an hour pressure value corresponding to 1440 minutes before a certain moment and each minute;
calculating an arithmetic average value of 1440 minutes of pressure values to obtain a daily pressure value Pt corresponding to the moment m d ;Pt m d Daily pressure value for d days;
an arithmetic average is calculated from the pressure values every 1440 minutes, resulting in a plurality of daily pressure values.
In this embodiment, the third threshold is 1440, and more or less data may be selected as needed, and the time in this embodiment is a minute time.
In this example 1440 was taken to obtain a minute value within 24 hours, 24×60=1440.
The present embodiment is similar to the second and minute calculation average, and further averages the data of the third threshold (within 24 hours), thereby reducing the data error and improving the accuracy.
Referring to fig. 2 and 5, in one embodiment, S5, selecting a fourth pressure value corresponding to the first time and the second time from the plurality of fourth pressure values to calculate the difference value includes:
s51, obtaining a first daily pressure value Pt corresponding to the first moment m d ;
Referring to formula (2):
(2);
wherein Pt is m d Is a first daily pressure value corresponding to a first moment,for the hour pressure value corresponding to the ith minute 。
S52, obtaining a second daily pressure value Pt corresponding to the second moment m d-1 ;
Referring to formula (3):
(3);
wherein Pt is m d-1 A second daily pressure value corresponding to a second moment,the hour pressure value corresponding to the i-th minute.
S53, calculating a second daily pressure value Pt m d-1 And the first daily pressure value Pt m d Is a difference DeltaPt betweenm, wherein the second time is earlier than the first time and the difference is 1440 minutes.
△Ptm=Pt m d-1 -Pt m d Since the pressure is gradually decreasing as the natural gas is produced, it is the pressure value corresponding to the earlier moment minus the pressure value at the later moment.
The numerator of formulas (2) and (3) are all 1440 numbers added together so that formula (2)Is i from 1 to 1440 and formula (3)/(>Is augmented with-1440, i.e. i is taken from 1-1440 to 1440-1440, for the purpose of showing Pt m d-1 Is Pt (Pt) m d Data was pushed forward for 1440 minutes.
In this embodiment, the second time is earlier than the first time, and the difference is 1440 minutes, so that the duration can be prolonged or shortened as required, and in this embodiment, the pressure difference between the current time of the day and the corresponding time of the previous day is calculated, for example: acquiring a first daily pressure value Pt corresponding to a first moment m d The first time is 11 months 3 days 3 points, and the first daily pressure value Pt corresponding to 11 months 3 days 3 points m d An arithmetic average of the minute pressure values of 1440 minutes during the period from 11 months 2 days 3 points 01 to 11 months 3 days 3 points.
The second time is 11 months 2 days 3 points, and the second daily pressure value Pt corresponding to 11 months 2 days 3 points m d-1 A minute pressure value of 1440 minutes in the period from 11 months 1 day 3 point 01 to 11 months 2 days 3 pointIs a mean value of the arithmetic mean value of (a).
Referring to fig. 3 and 5, in one embodiment, S6, controlling the opening of the valve according to the difference value includes:
s61, judging whether the third pressure value corresponding to the first moment is greater than the fourth threshold value P 0 If yes, the control valve is fully opened;
s62, if not, determining a minimum threshold value and a maximum threshold value of the valve opening based on the third pressure value corresponding to the first moment;
s63, if the difference value is larger than the maximum threshold value, reducing the opening of the valve;
s64, if the difference value is smaller than the minimum threshold value, increasing the opening of the valve;
s65, if the difference value is not more than the maximum threshold value and the difference value is not less than the minimum threshold value, the opening of the valve is unchanged.
As described with reference to fig. 4 and 5, the determining the minimum threshold and the maximum threshold of the valve opening based on the third pressure value corresponding to the first time includes:
s621, judging whether the third pressure value is larger than a fifth threshold value, and if so, obtaining a first minimum threshold value and a first maximum threshold value;
s622, judging whether the third pressure value is smaller than or equal to a sixth threshold value and larger than zero, if yes, obtaining a second minimum threshold value and a second maximum threshold value;
s623, judging whether the third pressure value is smaller than or equal to the fifth threshold value and larger than the sixth threshold value, and if so, obtaining a third minimum threshold value and a third maximum threshold value.
If the first time is 11 months 3 days 3 points, it is assumed that the third pressure value corresponding to 11 months 3 days 3 points is the hour pressure value P t avg m 15Mpa, judging whether 15Mpa is larger than the fourth threshold value P 0 (P 0 =30 MPa), if it is greater, indicating that the formation pressure is too high, full force production is required, at which point the valve opening will be determined to be 100%.
In the first application scenario, the fifth threshold is 20Mpa, the sixth threshold is 10Mpa, and the third pressure value corresponding to 3 points of 11 months and 3 days is the hour pressure value Ptavgm is 15.38Mpa,as can be seen from comparison, the third pressure value is smaller than or equal to the fifth threshold value and greater than the sixth threshold value, and the third minimum threshold value of 0.03 Mpa/day and the third maximum threshold value of 0.07 Mpa/day are obtained.
In the second application scenario, the fifth threshold is 20Mpa, the sixth threshold is 10Mpa, and the third pressure value corresponding to 3 points of 11 months and 3 days is the hour pressure value Ptavgm is 6.03Mpa, and comparing the third pressure value with the sixth threshold value and greater than zero, the second minimum threshold value of 0.01 Mpa/day and the second maximum threshold value of 0.03 Mpa/day are obtained.
In the third application scenario, the fifth threshold is 20Mpa, the sixth threshold is 10Mpa, and the third pressure value corresponding to 3 points of 11 months and 3 days is the hour pressure value Ptavgm is 23.64Mpa, and the third pressure value is larger than the fifth threshold value by comparison, so that the first minimum threshold value of 0.07 Mpa/day and the first maximum threshold value of 0.14 Mpa/day are obtained.
In one application scene (corresponding to application scene one), the fifth threshold value is 20Mpa, the sixth threshold value is 10Mpa, and the third pressure value corresponding to 3 points of 11 months and 3 days is the hour pressure value P t avg m Comparing the pressure value with 15.38Mpa, the third pressure value is smaller than or equal to the fifth threshold value and larger than the sixth threshold value, and the third minimum threshold value 0.03 and the third maximum threshold value 0.07Mpa are obtained. Calculating a third pressure value corresponding to 3 points of 11 months 2 days, namely an hour pressure value P t avg m 15.43Mpa, deltaPtm=Pt m d-1 -Pt m d =15.43-15.38=0.05 Mpa/day.
The third pressure value, i.e. the hour pressure value P, corresponding to 3 points of 11 months and 3 days has been carried out before t avg m A third minimum threshold value of 0.03 Mpa/day and a third maximum threshold value of 0.07 Mpa/day are determined for 15.38Mpa, the difference value of 0.05 Mpa/day is compared with the maximum threshold value (third maximum threshold value) of 0.07 Mpa/day, the minimum threshold value (third minimum threshold value) of 0.03 Mpa/day, in the application scenario, the difference value is less than or equal to the maximum threshold value (third maximum threshold value) and the difference value is more than or equal to the minimum threshold value (third minimum threshold value), and the current valve opening is kept unchanged.
If the difference is greater than the maximum threshold, the natural gas is produced too quickly, and the valve opening is reduced in order to avoid that the stratum energy is not supplemented.
If the difference value is smaller than the maximum threshold value, the oil gas development is too slow, and the opening degree of the valve is increased in order to improve the natural gas extraction efficiency.
In one embodiment, S6, the controlling the opening of the valve according to the difference value includes:
and controlling the opening of the valve according to the difference value according to a preset regulation period.
Because the pressure value exists every minute, if the valve frequently acts, the workload is increased, and the loss of the valve is increased, the adjustment period is set for adjustment, for example, the preset adjustment period is set to be 2 hours, the evaluation is carried out every 2 hours according to the method of the invention, and the opening of the valve is adjusted.
Aiming at the problems of large manual operation amount, untimely action and inaccurate adjustment existing in the existing manual pressure control mode, the invention provides a production method for precisely controlling the pressure of a gas well, so that the pressure adjustment of the production of the gas well is intelligent and accurate.
According to the invention, through fine pressure control and intelligent edge adjustment, the accurate control of the production pressure of the gas well is realized, and the long-term stable production of the gas well is ensured.
It will be appreciated by those skilled in the art that the present invention may implement all or part of the above-described methods according to the above-described embodiments, or may be implemented by means of a computer program for instructing relevant hardware, where the computer program may be stored in a computer readable storage medium, and where the computer program may implement the steps of the above-described embodiments of the method when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include: any entity or device, medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier wave signals, telecommunications signals, software distribution media, and the like capable of carrying the computer program code. It should be noted that the computer readable storage medium may include content that is subject to appropriate increases and decreases as required by jurisdictions and by jurisdictions in which such computer readable storage medium does not include electrical carrier signals and telecommunications signals.
Further, the invention also provides a control device. In one control device embodiment according to the present invention, the control device comprises a processor and a memory device, the memory device may be configured to store a program for performing the gas well pressure control method of the above method embodiment, and the processor may be configured to execute the program in the memory device, including but not limited to the program for performing the gas well pressure control method of the above method embodiment. For convenience of explanation, only those portions of the embodiments of the present invention that are relevant to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present invention. The control device may be a control device formed of various electronic devices.
Further, referring to fig. 6, the present invention also provides a gas well pressure control system, comprising:
the data acquisition device is used for acquiring the pressure of the oil pipe or the casing of the gas well according to a first preset duration;
the control device is used for controlling the control device;
and the gas well valve is used for controlling the opening degree of the valve.
In one embodiment, the data acquisition device is a pressure sensor.
In one embodiment, the gas well pressure control system of the present invention is an edge-side fine pressure control system, comprising:
the data acquisition module is used for acquiring the pressure of the oil pipe or the casing of the gas well according to a first preset duration, and in one embodiment, the oil pressure data are acquired in real time through the acquisition sensor;
the data processing module is used for carrying out average on acquired second data according to a set average window (such as 1-300 seconds) to obtain a second pressure value, eliminating the influence caused by fluctuation of a sensor, carrying out sliding average according to a set sliding window (such as 10-300 minutes) to obtain a third pressure value, eliminating measurement errors, and carrying out average according to a set average window (such as 24-72 hours) to obtain a fourth pressure value to further eliminate the measurement errors;
the logic operation module is used for calculating the pressure drop according to the set operation logic, and calculating the pressure drop by comparing the oil pressure, specifically, calculating a difference value according to a fourth pressure value corresponding to a first moment and a second moment, wherein the second moment is earlier than the first moment and is different from the first moment by a second preset duration;
and the implementation control module is used for calculating the pressure drop according to the set operation logic, and specifically, controlling the opening of the valve according to the difference value, namely the pressure drop. According to the regulation period (for example, 1-24 hours), the valve opening is regulated according to the pressure change condition.
In an application scenario, referring to fig. 7, the system for calculating the edge of data can be connected with the platform of the internet of things, after the edge-side fine pressure control system acquires the data, the data is reported and transmitted to the platform of the internet of things, the platform of the internet of things performs data analysis such as data and curve checking, data export and remote control after analysis to obtain a control command of the opening of the valve, the platform of the internet of things issues the command and transmits the command to the edge-side fine pressure control system, and after the edge-side fine pressure control system acquires the command, the opening of the valve is adjusted.
The edge end is automatically adjusted through the arrangement of the edge end fine pressure control system, so that the manual operation cost is saved, and a foundation is laid for the digitization of the oil field wellhead. The edge-end fine pressure control system can realize the traditional industrial control function, and can deploy high-end algorithms such as linear regression, neural networks and the like.
The gas wells are often scattered in the field, the wells are far apart, the gas wells are connected with the platform of the Internet of things through the fine pressure control system at the edge end, data are reported to the platform through the technology of the Internet of things, the data can be checked and analyzed in real time, and an expert can remotely control the data, so that the operation time is greatly reduced, and the convenience of operation is improved. The internet of things platform realizes storage, display, export and analysis of data and remote control.
The invention collects and simply processes data at the edge end, and reduces the collection error of the sensor.
According to the invention, through a refined pressure control method, the opening of the valve is intelligently controlled, the impact of erosion and well dropsy of the valve is reduced, the production pressure of a gas well is accurately controlled, the flexible switching of a working system is realized, the generation of hydrate is prevented, the safe production is ensured, and the recovery ratio and the stable yield are improved.
Further, the invention also provides a computer readable storage medium. In one computer readable storage medium embodiment according to the present invention, the computer readable storage medium may be configured to store a program for performing the gas well pressure control method of the above method embodiment, which program may be loaded and executed by a processor to implement the gas well pressure control method described above. For convenience of explanation, only those portions of the embodiments of the present invention that are relevant to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present invention. The computer readable storage medium may be a storage device including various electronic devices, and optionally, the computer readable storage medium in the embodiments of the present invention is a non-transitory computer readable storage medium.
Further, it should be understood that, since the respective modules are merely set to illustrate the functional units of the apparatus of the present invention, the physical devices corresponding to the modules may be the processor itself, or a part of software in the processor, a part of hardware, or a part of a combination of software and hardware. Accordingly, the number of individual modules in the figures is merely illustrative.
Those skilled in the art will appreciate that the various modules in the apparatus may be adaptively split or combined. Such splitting or combining of specific modules does not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solution after splitting or combining falls within the protection scope of the present invention.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will fall within the scope of the present invention.
Claims (10)
1. A method for controlling pressure in a gas well, comprising:
collecting the pressure of a gas well oil pipe or a casing pipe at a first preset time interval to obtain a plurality of first pressure values;
monitoring that the number of the first pressure values reaches a first threshold value, and calculating an arithmetic average value of all the first pressure values corresponding to the number reaching the first threshold value to obtain a second pressure value;
monitoring that the number of the plurality of second pressure values reaches a second threshold value, and calculating a sliding average value of all the second pressure values corresponding to the number reaching the second threshold value to obtain a third pressure value;
monitoring that the number of the plurality of third pressure values reaches a third threshold value, and calculating an arithmetic average value of all third pressure values corresponding to the number reaching the third threshold value to obtain a plurality of fourth pressure values;
selecting a fourth pressure value corresponding to the first moment and the second moment from the plurality of fourth pressure values to calculate a difference value;
and controlling the opening of the valve according to the difference value.
2. The method of claim 1, wherein the acquiring gas well tubing or casing pressure at a first preset time interval, obtaining a plurality of first pressure values comprises:
collecting the pressure of a gas well oil pipe or a casing pipe every second to obtain a plurality of second pressure values;
the monitoring that the number of the plurality of first pressure values reaches a first threshold value, calculating an arithmetic average value of all the first pressure values corresponding to the number reaching the first threshold value, and obtaining a second pressure value includes:
and monitoring that the number of the plurality of second pressure values reaches 60, and calculating the arithmetic average value of all second pressure values in each minute to obtain the minute pressure value of the minute.
3. The method of claim 2, wherein monitoring the number of the plurality of second pressure values to reach the second threshold value, calculating a sliding average for all second pressure values corresponding to the number to reach the second threshold value, and obtaining the third pressure value comprises:
monitoring the number of the pressure values for a plurality of minutes to reach 60;
acquiring a minute pressure value 60 minutes before a certain moment;
and calculating an arithmetic average value of the obtained pressure values of 60 minutes to obtain an hour pressure value corresponding to the moment.
4. The method of claim 3, wherein monitoring the number of third pressure values to reach a third threshold value, calculating an arithmetic average for all third pressure values for which the number reaches the third threshold value, and obtaining a plurality of fourth pressure values comprises:
monitoring the number of the pressure values of the plurality of hours to 1440;
acquiring an hour pressure value corresponding to 1440 minutes before a certain moment and each minute;
calculating an arithmetic average value of the obtained 1440 minute pressure values to obtain a daily pressure value corresponding to the moment;
an arithmetic average is calculated from the pressure values every 1440 minutes, resulting in a plurality of daily pressure values.
5. The method of claim 4, wherein selecting a fourth pressure value from the plurality of fourth pressure values corresponding to the first time and the second time to calculate the difference comprises:
a first daily pressure value corresponding to a first moment is obtained,
acquiring a second daily pressure value corresponding to a second moment;
and calculating a difference between the second daily pressure value and the first daily pressure value, wherein the second moment is earlier than the first moment, and the difference is 1440 minutes.
6. The method of claim 1, wherein controlling the valve opening based on the difference comprises:
judging whether the third pressure value corresponding to the first moment is larger than a fourth threshold value, and if so, controlling the valve to be fully opened;
if not, determining a minimum threshold value and a maximum threshold value of the valve opening based on the third pressure value corresponding to the first moment;
if the difference value is larger than the maximum threshold value, reducing the opening of the valve;
if the difference value is smaller than the minimum threshold value, increasing the opening of the valve;
if the difference value is not more than the maximum threshold value and the difference value is not less than the minimum threshold value, the opening of the valve is unchanged.
7. The method of claim 6, wherein determining a minimum threshold and a maximum threshold for valve opening based on the third pressure value corresponding to the first time instance comprises:
judging whether the third pressure value is larger than a fifth threshold value, and if so, obtaining a first minimum threshold value and a first maximum threshold value;
judging whether the third pressure value is smaller than or equal to a sixth threshold value and larger than zero, if so, obtaining a second minimum threshold value and a second maximum threshold value;
and judging whether the third pressure value is smaller than or equal to the fifth threshold value and larger than the sixth threshold value, and if so, obtaining a third minimum threshold value and a third maximum threshold value.
8. A control device comprising a processor and a memory device, the memory device being adapted to store a plurality of program codes, characterized in that the program codes are adapted to be loaded and executed by the processor to perform the gas well pressure control method of any one of claims 1 to 7.
9. A gas well pressure control system, comprising:
the data acquisition device is used for acquiring the pressure of the oil pipe or the casing of the gas well according to a first preset duration;
the control device according to claim 8;
and the gas well valve is used for controlling the opening degree of the valve.
10. A computer readable storage medium having stored therein a plurality of program codes, wherein the program codes are adapted to be loaded and executed by a processor to perform the gas well pressure control method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311524691.0A CN117234252B (en) | 2023-11-16 | 2023-11-16 | Gas well pressure control method, system, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311524691.0A CN117234252B (en) | 2023-11-16 | 2023-11-16 | Gas well pressure control method, system, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117234252A CN117234252A (en) | 2023-12-15 |
CN117234252B true CN117234252B (en) | 2024-02-02 |
Family
ID=89097118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311524691.0A Active CN117234252B (en) | 2023-11-16 | 2023-11-16 | Gas well pressure control method, system, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117234252B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107780885A (en) * | 2016-08-24 | 2018-03-09 | 中国石油天然气股份有限公司 | Method and device for intelligently switching on and off well |
CN111364941A (en) * | 2020-05-14 | 2020-07-03 | 托普威尔石油技术股份公司成都分公司 | Shale gas well wellhead pressure control method and control system thereof |
CN112943181A (en) * | 2021-02-07 | 2021-06-11 | 北京爱新能智科技有限公司 | Intelligent gas well valve adjusting system |
CN114233272A (en) * | 2021-12-17 | 2022-03-25 | 西安安森智能仪器股份有限公司 | Intelligent exploitation control method and device for natural gas well |
CN114320629A (en) * | 2022-03-04 | 2022-04-12 | 潍柴动力股份有限公司 | Valve opening determining method and device, electronic equipment and storage medium |
CN115344064A (en) * | 2021-05-13 | 2022-11-15 | 中移(上海)信息通信科技有限公司 | Valve flow control method and device and electronic equipment |
CN116293423A (en) * | 2023-03-10 | 2023-06-23 | 深圳高发气体股份有限公司 | Air supply control method, device and equipment for air storage tank and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10274972B2 (en) * | 2015-09-16 | 2019-04-30 | Tokyo Electron Limited | Method of inspecting gas supply system |
-
2023
- 2023-11-16 CN CN202311524691.0A patent/CN117234252B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107780885A (en) * | 2016-08-24 | 2018-03-09 | 中国石油天然气股份有限公司 | Method and device for intelligently switching on and off well |
CN111364941A (en) * | 2020-05-14 | 2020-07-03 | 托普威尔石油技术股份公司成都分公司 | Shale gas well wellhead pressure control method and control system thereof |
CN112943181A (en) * | 2021-02-07 | 2021-06-11 | 北京爱新能智科技有限公司 | Intelligent gas well valve adjusting system |
CN115344064A (en) * | 2021-05-13 | 2022-11-15 | 中移(上海)信息通信科技有限公司 | Valve flow control method and device and electronic equipment |
CN114233272A (en) * | 2021-12-17 | 2022-03-25 | 西安安森智能仪器股份有限公司 | Intelligent exploitation control method and device for natural gas well |
CN114320629A (en) * | 2022-03-04 | 2022-04-12 | 潍柴动力股份有限公司 | Valve opening determining method and device, electronic equipment and storage medium |
CN116293423A (en) * | 2023-03-10 | 2023-06-23 | 深圳高发气体股份有限公司 | Air supply control method, device and equipment for air storage tank and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117234252A (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11408270B2 (en) | Well testing and monitoring | |
CN113222296B (en) | Flood control scheduling method based on digital twinning | |
CN107194068B (en) | Real-time prediction and early warning method and device for underground abnormal working condition in shale gas fracturing process | |
CN108922123B (en) | mine slope slip stability monitoring and early warning method | |
CA2994479C (en) | Method and system for detecting at least one of an influx event and a loss event during well drilling | |
EP2983048A2 (en) | Wind power plant management system and method thereof | |
US10359541B2 (en) | Creating virtual production logging tool profiles for improved history matching | |
BR112016000300B1 (en) | system to monitor a life of a well tool in a well hole, method to monitor a life of a well tool in a well hole and non-transient computer-readable media | |
AU2013296908B2 (en) | Monitoring and diagnosing water flooded reservoirs | |
CN117805542B (en) | Mining flameproof intrinsically safe frequency converter operation monitoring system | |
RU2714997C1 (en) | Optimum storage of data on load for prediction of service life of equipment used during well operation | |
CN117234252B (en) | Gas well pressure control method, system, device and medium | |
CN114048790A (en) | Road base layer strain analysis method based on coupling bidirectional LSTM and convolution structure network | |
CN117514128B (en) | Underground coal mine horizontal directional intelligent drilling control method | |
EP2090742A1 (en) | Methods and systems to estimate wellbore events | |
CN117113263A (en) | Real-time monitoring method for bridge pushing structure | |
Wang et al. | Machine learning–informed soil conditioning for mechanized shield tunneling | |
CN116205163A (en) | Stratum stability analysis method in natural gas hydrate reservoir numerical simulation | |
US11713669B2 (en) | Real-time diverter diagnostics and distribution | |
CN115221966A (en) | Information fusion method for slope stability estimation | |
CN108319915B (en) | Multi-time-window simplified form identification method for dynamically adjusting rock burst signal threshold | |
CN113758627A (en) | Transient flow event detection method for water supply pipe network | |
CN116974312B (en) | Method for controlling pressure of drilling and production shaft of natural gas hydrate | |
CN111324938A (en) | Method and system for calculating air supply capacity of substrate | |
CN116882639B (en) | Petroleum drilling and production equipment management method and system based on big data analysis |
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 |