Well collision prevention distance determination method, electronic equipment, storage medium and program product
By dividing the measurement point space of the anti-collision well into subspaces and using spatial binary tree technology and interpolation processing, the problem of high computational complexity in anti-collision well distance calculation was solved, improving drilling efficiency and safety, and promoting innovation in drilling technology.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- RICHFIT INFORMATION TECH
- Filing Date
- 2024-10-18
- Publication Date
- 2026-04-21
AI Technical Summary
Existing methods for determining anti-collision well distances are computationally complex and cannot meet the requirements of continuous dynamic calculations and the frequency of field data updates, resulting in low drilling efficiency.
By dividing the measurement point space of the anti-collision well into several subspaces, the target subspace where the reference well measurement point is located is determined, and the distance of the measurement point relative to the anti-collision well measurement point in the target subspace is calculated, the calculation process is optimized by using spatial binary tree technology and interpolation processing.
It reduces the computational complexity of determining the anti-collision well distance, improves drilling efficiency, ensures operational safety, and promotes the innovative development of drilling technology.
Smart Images

Figure CN121897326A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of drilling technology, and in particular to a method for determining anti-collision well distance, electronic equipment, storage medium, and program product. Background Technology
[0002] In drilling operations, the collision avoidance distance refers to the safe distance between the current wellbore and known wellbores. This distance is used to prevent collisions with other wellbores during drilling, ensuring the smooth progress of the drilling operation. Therefore, to ensure safety and avoid collision accidents during drilling, it is necessary to accurately determine the collision avoidance distance.
[0003] Currently, the most commonly used method for determining the distance to anti-collision manholes is the nearest distance analytical method. However, the equations that satisfy the conditions for the nearest distance analytical method are difficult to determine, and the derivation of the nonlinear equations is complex. The numerous calculation steps result in slow calculations when there are many anti-collision manholes, thus failing to meet the requirements of future continuous dynamic calculations and the fast data refresh rate in the field.
[0004] Therefore, a method for quickly determining the drilling collision avoidance distance is needed to improve the efficiency of drilling operations. Summary of the Invention
[0005] This application provides a method for determining anti-collision well distance, an electronic device, a storage medium, and a program product to improve drilling operation efficiency.
[0006] In a first aspect, this application provides a method for determining the distance to an anti-collision well, including:
[0007] Acquire the trajectory data set for the reference well, wherein the trajectory data includes the measurement point data of multiple measurement points on the set trajectory;
[0008] For the first measuring point in the set trajectory, the target subspace where the first measuring point is located is determined based on the measuring point data of the first measuring point; wherein, the target subspace is a part of the trajectory space divided according to the trajectory data of the anti-collision well;
[0009] In the second measuring point corresponding to the trajectory data of the anti-collision well, select the target measuring point corresponding to the target subspace according to the target subspace;
[0010] Based on the measurement data of the first measuring point and the measurement data of the target measuring point, determine the anti-collision well distance of the first measuring point.
[0011] In one possible implementation, among the second measuring points corresponding to the trajectory data of the anti-collision well, the target measuring point corresponding to the target subspace is selected according to the target subspace, including:
[0012] In all subspaces corresponding to the trajectory data of the anti-collision well, determine the adjacent subspaces of the target subspace;
[0013] In the second measuring point corresponding to the trajectory data of the anti-collision well, the measuring points contained in the target subspace and the measuring points contained in the adjacent subspace are selected as the target measuring points.
[0014] In one possible implementation, the subspace is divided in the following way:
[0015] Acquire the trajectory data of the anti-collision well, where the measuring point data includes the coordinate data of each coordinate axis in the corresponding spatial coordinate system;
[0016] For each coordinate axis, the coordinate data of the corresponding coordinate axis are sorted by size, and the sorted data is divided into different intervals according to the set step size to obtain a subspace.
[0017] In one possible implementation, the coordinate data of the corresponding coordinate axes are sorted by size, including:
[0018] Based on the acquisition interval of the measuring points corresponding to the reference well, the trajectory data of the anti-collision well is interpolated;
[0019] Based on the interpolation results, the coordinate data of the corresponding axes are sorted by size.
[0020] In one possible implementation, the trajectory data of the anti-collision well is interpolated based on the acquisition interval of the measuring point corresponding to the reference well, including:
[0021] The interpolation interval is determined based on the acquisition interval of the measurement points corresponding to the reference well and the set interpolation coefficients;
[0022] The interpolation interval and the trajectory data of the anti-collision well are used to determine the interpolation;
[0023] The trajectory data of the anti-collision well is interpolated based on the interpolation interval and the interpolation value.
[0024] In one possible implementation, determining the interpolation based on the interpolation interval and the trajectory data of the anti-collision well includes: determining the interpolation based on at least one of the minimum curvature method, minimum slope method, linear interpolation method, and polynomial interpolation method, based on the interpolation interval and the trajectory data of the anti-collision well.
[0025] In one possible implementation, there are multiple anti-collision manholes, and before sorting the coordinate data of the corresponding coordinate axes, the following steps are also included:
[0026] Select any collision avoidance well as the calibration reference well;
[0027] The measurement of anti-collision wells is standardized based on the calibration reference well.
[0028] In one possible implementation, determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point includes: determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point using spatial binary tree technology, wherein the trajectory data of the anti-collision well is stored using a spatial binary tree structure.
[0029] In one possible implementation, before determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, the method further includes:
[0030] Acquire relevant data from the reference well and the anti-collision well, including wellhead coordinates, ground elevation, and core height.
[0031] Based on relevant data, the measurements of reference wells and anti-collision wells are standardized.
[0032] Secondly, this application provides a device for determining the distance to an anti-collision well, comprising:
[0033] The acquisition module is used to acquire trajectory data set for the reference well, wherein the trajectory data includes measurement point data of multiple measurement points on the set trajectory;
[0034] The first determining module is used to determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point in the set trajectory; wherein, the target subspace is a part of the trajectory space divided according to the trajectory data of the anti-collision well.
[0035] The selection module is used to select the target measurement point corresponding to the target subspace in the second measurement point corresponding to the trajectory data of the anti-collision well, based on the target subspace.
[0036] The second determining module is used to determine the anti-collision well distance of the first measuring point based on the measuring point data of the first measuring point and the measuring point data of the target measuring point.
[0037] In one possible implementation, the selection module is specifically used for:
[0038] In the second measuring point corresponding to the trajectory data of the anti-collision well, target measuring points corresponding to the target subspace are selected based on the target subspace, including:
[0039] In all subspaces corresponding to the trajectory data of the anti-collision well, determine the adjacent subspaces of the target subspace;
[0040] In the second measuring point corresponding to the trajectory data of the anti-collision well, the measuring points contained in the target subspace and the measuring points contained in the adjacent subspace are selected as the target measuring points.
[0041] In one possible implementation, the subspace is divided in the following way:
[0042] Acquire the trajectory data of the anti-collision well, where the measuring point data includes the coordinate data of each coordinate axis in the corresponding spatial coordinate system;
[0043] For each coordinate axis, the coordinate data of the corresponding coordinate axis are sorted by size, and the sorted data is divided into different intervals according to the set step size to obtain a subspace.
[0044] In one possible implementation, the coordinate data of the corresponding coordinate axes are sorted by size, including:
[0045] Based on the acquisition interval of the measuring points corresponding to the reference well, the trajectory data of the anti-collision well is interpolated;
[0046] Based on the interpolation results, the coordinate data of the corresponding axes are sorted by size.
[0047] In one possible implementation, the trajectory data of the anti-collision well is interpolated based on the acquisition interval of the measuring point corresponding to the reference well, including:
[0048] The interpolation interval is determined based on the acquisition interval of the measurement points corresponding to the reference well and the set interpolation coefficients;
[0049] The interpolation interval and the trajectory data of the anti-collision well are used to determine the interpolation;
[0050] The trajectory data of the anti-collision well is interpolated based on the interpolation interval and the interpolation value.
[0051] In one possible implementation, the interpolation is determined based on the interpolation interval and the trajectory data of the anti-collision well, including:
[0052] The interpolation is determined based on at least one of the minimum curvature method, minimum slope method, linear interpolation method, and polynomial interpolation method, according to the interpolation interval and the trajectory data of the anti-collision well.
[0053] In one possible implementation, there are multiple anti-collision manholes, and before sorting the coordinate data of the corresponding coordinate axes, the following steps are also included:
[0054] Select any collision avoidance well as the calibration reference well;
[0055] The measurement of anti-collision wells is standardized based on the calibration reference well.
[0056] In one possible implementation, the first determining module is specifically used to: determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, including: determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point using spatial binary tree technology, wherein the trajectory data of the anti-collision well is stored using a spatial binary tree structure.
[0057] In one possible implementation, the acquisition module is further configured to: before determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, acquire relevant data of the reference well and the anti-collision well, the relevant data including wellhead coordinates, ground elevation and core height; and perform unified processing on the measurements of the reference well and the anti-collision well based on the relevant data.
[0058] Thirdly, this application provides an electronic device, including: a memory and a processor;
[0059] The memory stores instructions that the computer executes;
[0060] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0061] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible embodiments of the first aspect.
[0062] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0063] The anti-collision well distance determination method, electronic equipment, storage medium, and program product provided in this application, in the process of determining the anti-collision well distance of the measuring point on the set trajectory corresponding to the reference well, only considers the target measuring point in the anti-collision well corresponding to the target subspace where the measuring point is located, without considering the second measuring point in other subspaces. This reduces the solution space of the second measuring point corresponding to the anti-collision well distance, thereby reducing the amount of calculation required to determine the anti-collision well distance, reducing the complexity of determining the anti-collision well distance, and thus improving drilling operation efficiency. Attached Figure Description
[0064] The accompanying drawings of the embodiments described herein are incorporated in and form part of this specification, illustrating those consistent with this application and serving, together with the specification, to explain the principles of this application.
[0065] Figure 1 A flowchart illustrating the method for determining the anti-collision well distance provided in this application embodiment. Figure 1 ;
[0066] Figure 2 A schematic diagram illustrating the subspace partitioning process provided in an embodiment of this application;
[0067] Figure 3 A flowchart illustrating the method for determining the anti-collision well distance provided in this application embodiment. Figure 2 ;
[0068] Figure 4 This is a schematic diagram of the anti-collision well distance determination device provided in the embodiments of this application;
[0069] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0070] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0071] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0072] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0073] First, the terms used in the embodiments of this application will be explained:
[0074] A reference well is a well in an area of oil and gas exploration that requires collision avoidance design. In densely populated or clustered well areas, where the distance between wells is small, it is necessary to ensure that reference wells maintain a safe distance from existing wells to avoid wellbore collisions. Improper reference well design may lead to intersecting or excessively close wellbores, thereby causing safety and production problems.
[0075] Collision-avoidance wells refer to wells in densely populated well areas or cluster well development that require collision-avoidance design and monitoring to prevent new wells from colliding with existing wells (i.e., wellbores intersecting or being too close).
[0076] Dense cluster wells refer to drilling multiple wells in a relatively small area on the ground, which can maximize the use of surface facilities, reduce environmental impact, and improve the development efficiency of oil and gas fields.
[0077] The drilling platform height refers to the vertical distance from the drilling platform to the surface. The drilling platform itself is a crucial component of the drilling platform, used to support the drill pipe and other drilling equipment.
[0078] A K-Dimensional Tree (KD-tree) is a data structure used for K-dimensional spatial data, primarily for fast retrieval and query operations. KD-trees reduce the search scope by dividing a multidimensional space into multiple subspaces. KD-trees are a variant of binary search trees.
[0079] KD-tree nearest neighbor search is a search algorithm that uses KD-trees to find the nearest point to a given point in a multi-dimensional space. KD-trees make nearest neighbor search more efficient than directly calculating the distances between all points by effectively reducing the search space.
[0080] In related technologies, methods for determining anti-collision well distances include the ordinary surface method, the horizontal plane method, and the nearest distance analytical method. Among these, the ordinary surface method and the horizontal plane method have significant errors when calculating different well types, failing to accurately reflect the actual downhole conditions. The nearest distance analytical method involves complex formula derivation and high computational difficulty; its calculation speed significantly decreases when dealing with cluster wells and densely packed wells, thus failing to meet the requirements of future continuous dynamic calculations and the fast data refresh rates in the field.
[0081] To address the aforementioned issues, this application provides a method for determining the distance to anti-collision wells, aiming to reduce the computational complexity and time consumption in determining the distance, and to provide a faster solution for calculating the distance to anti-collision wells during drilling operations. Specifically, the measurement point space of the anti-collision well is divided into several subspaces. By determining the target subspace where the measurement point in the reference well is located, and calculating the distance between that measurement point and the measurement point of the corresponding anti-collision well in the target subspace, the anti-collision distance of the measurement point is determined, thereby achieving the following effects:
[0082] Improve operational efficiency: Quickly determining the distance to anti-collision wells can save a lot of time, reduce the manpower and time costs in the process of determining the distance to anti-collision wells, and improve drilling operation efficiency;
[0083] Improving operational safety: The method for determining anti-collision well distance provides a fast and accurate calculation method that can more accurately predict anti-collision well distance, thereby avoiding collision accidents during drilling operations and ensuring the safety of operators and equipment;
[0084] Promoting technological innovation: Introducing new methods for determining well collision avoidance distances can drive the innovative development of drilling technology, improve industry standards, and provide technical support for the improvement and optimization of future drilling operations.
[0085] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0086] Figure 1 A flowchart illustrating the method for determining the anti-collision well distance provided in this application embodiment. Figure 1 .like Figure 1 As shown, the method includes:
[0087] S101. Obtain the trajectory data set for the reference well, wherein the trajectory data includes the measurement point data of multiple measurement points on the set trajectory.
[0088] A reference well is typically a well to be drilled. Alternatively, a reference well may be a well to be drilled that only contains the design of the key row.
[0089] Trajectory data refers to the three-dimensional path information of a wellbore underground, which can include measurement data from multiple measuring points along a defined trajectory. The measurement data for a single measuring point can include data such as well depth, inclination, azimuth, vertical depth, north-south orientation, east-west orientation, and projected displacement.
[0090] S102. For the first measuring point in the set trajectory, determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point; wherein, the target subspace is a part of the trajectory space divided according to the trajectory data of the anti-collision well.
[0091] It can be understood that the first measuring point is any measuring point on the set trajectory of the reference well. The subspace is a number of spaces obtained by dividing the coordinate information of the measuring point data of all anti-collision wells in the working area. The subspace division will cause the measuring point of the reference well to fall into any of the subspaces, that is, the target subspace.
[0092] For example, the target subspace where the first measuring point is located can be found by using the same method as for dividing the trajectory data of the anti-collision wells. Alternatively, the index of the target subspace where the first measuring point is located can be obtained based on the index obtained from the trajectory data of the anti-collision wells and the measuring point data of the first measuring point; then, the target subspace where the first measuring point is located can be found through the index of the target subspace where the first measuring point is located.
[0093] S103. In the second measuring point corresponding to the trajectory data of the anti-collision well, select the target measuring point corresponding to the target subspace according to the target subspace.
[0094] The second measuring point is the measuring point corresponding to the measuring point data contained in the trajectory data of the anti-collision well.
[0095] Optionally, the number of anti-collision wells can be at least one, specifically any well that already exists in the work area. If there are multiple anti-collision wells, in this case, the second measuring point is all measuring points corresponding to all anti-collision wells.
[0096] Optionally, the target measurement points include all the second measurement points located in the target subspace.
[0097] S104. Based on the measurement data of the first measuring point and the measurement data of the target measuring point, determine the anti-collision well distance of the first measuring point.
[0098] In this step, the distance between the first measuring point and each target measuring point is calculated to determine the anti-collision well distance of the first measuring point. Specifically, the distance between each target measuring point and the first measuring point is calculated, and the obtained distances are sorted; the minimum distance is determined to be the anti-collision well distance of the first measuring point.
[0099] Optionally, for each target measuring point, the Euclidean distance between the first measuring point and the target measuring point is determined based on the measuring point data of the first measuring point and the measuring point data of the target measuring point; the minimum Euclidean distance is determined as the anti-collision well distance of the first measuring point. By calculating the Euclidean distance between the measuring point data of the first measuring point and the measuring point data of the target measuring point, the computational complexity can be reduced; moreover, by only calculating the Euclidean distance between the target measuring point corresponding to the target subspace and the first measuring point, the number of calculations can be significantly reduced, thereby shortening the computation time.
[0100] The anti-collision well distance determination method provided in this application embodiment only considers the target measuring point in the anti-collision well corresponding to the target subspace where the measuring point is located during the process of determining the anti-collision well distance of the measuring point on the set trajectory corresponding to the reference well, without considering the second measuring point in other subspaces. This reduces the solution space of the second measuring point corresponding to the anti-collision well distance, thereby reducing the number of calculations required to determine the anti-collision well distance, reducing the complexity of determining the anti-collision well distance, and thus improving the drilling operation efficiency.
[0101] Based on the above embodiments, considering that the distance between the first measuring point and the second measuring point in an adjacent subspace may be less than the distance between the first measuring point and the second measuring point in the target subspace, the second measuring point contained in the adjacent subspace of the target subspace can be taken into account when determining the target measuring point. That is, the target measuring point can include the second measuring point in the target subspace and the second measuring point in the adjacent subspace. An adjacent subspace is a subspace that is spatially adjacent to the target subspace. By introducing adjacent subspaces and measuring points located in adjacent subspaces as target measuring points, the accuracy of the anti-collision well distance calculation can be improved.
[0102] Therefore, S103, in the second measuring point corresponding to the trajectory data of the anti-collision well, selecting the target measuring point corresponding to the target subspace according to the target subspace, can further include: in all subspaces corresponding to the trajectory data of the anti-collision well, determining the adjacent subspaces of the target subspace; in the second measuring point corresponding to the trajectory data of the anti-collision well, selecting the measuring points contained in the target subspace and the measuring points contained in the adjacent subspaces as the target measuring points.
[0103] For example, the subspace structure and the measurement point data within each subspace are stored in the form of a spatial binary tree. In the spatial binary tree, an adjacent subspace can be the subspace represented by the left child node directly connected to the target node corresponding to the target subspace, and / or the subspace represented by the right child node directly connected to the target node corresponding to the target subspace. Here, "and / or" means that if the target node has only a left child node, the adjacent subspace is the subspace represented by the left child node; if the target node has only a right child node, the adjacent subspace is the subspace represented by the right child node; if the target node has both a left and a right child node, the adjacent subspace is the subspace represented by the left child node and the subspace represented by the right child node.
[0104] Figure 2 This is a schematic diagram illustrating the subspace partitioning process provided in an embodiment of this application. For example... Figure 2 As shown, the subspace partitioning process may include the following steps:
[0105] S201. Obtain the trajectory data of the anti-collision well, wherein the measuring point data includes the coordinate data of each coordinate axis in the corresponding spatial coordinate system.
[0106] In this step, the trajectory data of the anti-collision well is obtained by querying the drilling data. The drilling data must contain at least the trajectory data of the anti-collision well. The coordinate data in the spatial coordinate system corresponding to the measurement point data can be local coordinates (north-south, east-west, vertical depth), latitude and longitude coordinates (longitude, latitude, altitude), or geodetic coordinates (north-south, east-west, depth).
[0107] For example, the trajectory data of the anti-collision well can be obtained by measuring with a measuring tool or by consulting relevant materials.
[0108] S202. For each coordinate axis, sort the coordinate data of the corresponding coordinate axis by size, and divide the sorted data into different intervals according to the set step size to obtain a subspace.
[0109] Measurement point data contains information across multiple dimensions. During sorting, the information for each dimension can be processed separately. For any given dimension, the coordinate data representing coordinates within that dimension is sorted in ascending order to obtain ordered coordinate data for that dimension. It should be understood that since the measurement point data contains multiple dimensions, and sorting each dimension yields ordered coordinate data, the number of dimensions of the measurement point data and the number of ordered coordinate data obtained are the same.
[0110] The ordered coordinate data is divided into different intervals according to the corresponding set step size. During the division, the ordered coordinate data of each dimension can be processed separately.
[0111] For example, the measuring point data on the anti-collision well B is sorted, and the coordinate data P corresponding to the X-axis of the measuring point data is sorted. 0X P 1X , ..., P mX Sort the results in an ordered P by sorting them from smallest to largest. X =[P1′ x ,P2′ x ,...,P m ′ x Coordinate data. P1′ should be understood. x It is ordered coordinate data P X The minimum value in, P m ′ x It is ordered coordinate data P X The maximum value in the ordered coordinate data P. X =[P x1 ,P x2 ,P x3 ...,P xm The x-axis is divided into different intervals according to the set step size j. The number of intervals J on the x-axis is... X The calculation formula is as follows:
[0112]
[0113] The interval obtained by dividing the X-axis can then be represented as P0′. x ≤x <P0′ x +j,P0′ x +j≤x <P0′ x +2j,...,P0′ x +(J x -1)×j≤x <P′ mx .
[0114] Similarly, the coordinate data on other axes of the measured point data can also be divided. Here, it is assumed that the measured point data contains information in three dimensions. The coordinate data on the Y-axis, excluding the coordinate data on the X-axis, is divided to obtain the interval representation P′. 0y ≤y <P′ 0y +j,P′ 0y +j≤y <P′ 0y +2j,...,P′ 0y +(J y -1)×j≤x <P′ my The corresponding number of intervals is J. Y And the coordinate data on the Z-axis are divided into intervals to obtain the interval representation P0′. z ≤z <P0′ z +j,P0′ z +j≤z <P0′ z +2j,...,P0′ z +(J z -1)×j≤z <P′ mz The corresponding number of intervals is J. Z In practical engineering, adaptive processing can be performed based on the actual dimensions of the measurement point data.
[0115] After sorting the information for each dimension, the divided intervals are integrated to obtain several subspaces. The dimensions of the subspaces are the same as the dimensions of the measurement point data. Each subspace contains intervals for different coordinate axes, and at least one of the interval ranges for different coordinate axes represented by different subspaces is different.
[0116] For example, the measuring point space of the anti-collision well B can be divided into Z1, Z2, ... Z n Subspaces are created and stored. Here, n represents the total number of subspaces, n = J. X ×J Y ×J Z The total number of subspaces is the product of the number of intervals corresponding to the X, Y, and Z coordinate axes. Furthermore, each subspace is assigned a corresponding index number and interval range, as shown in Table 1:
[0117] Table 1. Index number and interval range corresponding to the subspace.
[0118]
[0119]
[0120] It should be understood that any measuring point of the anti-collision well must fall within a certain subspace, and only within that subspace. That is, all measuring points of the anti-collision well fall within their corresponding subspace.
[0121] Optionally, there may be multiple anti-collision wells. Before sorting the coordinate data of the corresponding coordinate axes, the method may include: selecting any anti-collision well as a calibration reference well; and using the calibration reference well as a benchmark, uniformly processing the measurement of the anti-collision wells.
[0122] Since the dimensions of coordinate data in the spatial coordinate system corresponding to the measured point data can be the same and / or different, if the dimensions of the measured point data are the same, the coordinate data of the corresponding coordinate axes can be directly sorted by size. If the dimensions of the measured point data are different, at least the dimensions of the coordinate data in the spatial coordinate system corresponding to the measured point data should be unified before sorting by size.
[0123] In particular, when there are multiple anti-collision wells, considering that the dimensional representation of the measurement data of different wells may not be the same, the measurement data of the anti-collision wells should be corrected before sorting the coordinate data of the corresponding coordinate axes. Those skilled in the art will understand that coordinate correction can be performed in any step and / or before any step before sorting the coordinates.
[0124] The subspace partitioning provided in this application involves first dividing the second measuring point into several intervals based on the measuring point data of the anti-collision well; then integrating the intervals to obtain several sub-intervals, so that the measuring points of the anti-collision well are organized in an orderly manner, which can quickly reduce the solution space when determining the distance of the anti-collision well in the future, thereby reducing the computational complexity of the distance of the anti-collision well.
[0125] Based on the above embodiments, considering that the trajectory data may be relatively sparse, the trajectory data can be interpolated to obtain more accurate trajectory data and improve the expressive power of the trajectory data.
[0126] Optionally, the trajectory data of the anti-collision well is interpolated according to the acquisition interval of the measuring point corresponding to the reference well; based on the interpolation result, the coordinate data of the corresponding coordinate axis are sorted by size.
[0127] Interpolation is a common data processing method that calculates intermediate data points based on known data points, creating a smooth transition between them. The sampling interval refers to the distance between two consecutive sampling points in time or space. In practical engineering, due to various adverse factors, the time and / or interval of trajectory data acquisition may not be standardized, leading to sparse trajectory sampling and poor data usability. Interpolating trajectory data can yield more accurate trajectory data.
[0128] Optionally, similar to step S202, sorting the coordinate data of the corresponding coordinate axes after interpolation can also be performed separately for different dimensions. The ordered coordinate data obtained after sorting the interpolated coordinate data of the corresponding coordinate axes is called "ordered interpolated coordinate data".
[0129] Optionally, the data of different dimensions in the ordered interpolation coordinate data can be divided into different intervals according to the corresponding step size; thus obtaining the interval representation of the data of different dimensions. Then, the interval representations of the data of different dimensions are integrated to obtain a subspace.
[0130] Optionally, the trajectory data of the anti-collision well is interpolated according to the acquisition interval of the measuring points corresponding to the reference well, including: determining the interpolation interval according to the acquisition interval of the measuring points corresponding to the reference well and the set interpolation coefficient; determining the interpolation according to the interpolation interval and the trajectory data of the anti-collision well; and interpolating the trajectory data of the anti-collision well according to the interpolation interval and the interpolation.
[0131] The interpolation interval can be the product of the acquisition interval and the interpolation coefficient, or it can be set to other available values according to the actual project.
[0132] For example, according to SY / T 5088-2017, the current data acquisition interval for measuring points does not exceed 30 meters. Assuming the acquisition interval I corresponding to the reference well is 30 meters, and the interpolation coefficient K is set to 0.01, the interpolation value corresponding to the anti-collision well is calculated according to an interpolation interval of K×Ⅰ=30×0.01=3 meters. Then, based on the interpolation interval and the interpolation value, the interpolation value corresponding to the anti-collision well is inserted into the trajectory data of the anti-collision well to obtain the interpolated trajectory data of the anti-collision well, and stored.
[0133] For example, assuming the sampling interval for well B (the anti-collision well) is 30 meters and the interpolation coefficient K is 0.01, then the interpolation interval is 3 meters. If the measuring points corresponding to well B are P0, P1, ..., P... m The interpolation value between P0 and P1 is calculated to be [P 01 ,P 02 ,....P 0i ], where i = acquisition interval ÷ interpolation interval = 30 ÷ 3 = 10, that is, 10 interpolations are inserted between P0 and P1. Then, the remaining interpolations are calculated, and the interpolated measurement point P0 is obtained, [P 01 ,P 02 ,....P 0i ], P1, [P 11 ,P 12 ,....P 1i ],…,P m .
[0134] Optionally, the interpolation is determined based on the interpolation interval and the trajectory data of the anti-collision well, including determining the interpolation based on at least one of the minimum curvature method, minimum slope method, linear interpolation method and polynomial interpolation method, based on the interpolation interval and the trajectory data of the anti-collision well.
[0135] The minimum curvature method generates new data points by calculating the minimum curvature between known data points. Curvature reflects the degree of bending of a geometric object, and in three-dimensional Euclidean space, mean curvature, principal curvature, and Gaussian curvature are the three basic elements of curvature. The minimum slope method is an interpolation method that seeks to generate new data points by minimizing the rate of change (i.e., the slope). Linear interpolation assumes that the change between known data points is linear, meaning that the interpolation result between two points can be represented by a straight line. Polynomial interpolation is a method that approximates known data points by constructing a polynomial function. In practical engineering, an appropriate interpolation method can be selected according to needs. This application recommends using the minimum curvature method for interpolation calculations.
[0136] Based on the above embodiments, when the reference well is the well to be drilled, the measurement point data is relatively sparse, which cannot express situations where the drilling trajectory set for the well to be drilled collides with the anti-collision well and / or the safe distance between the two is insufficient. Optionally, the trajectory data of the reference well is interpolated according to the measurement point acquisition interval corresponding to the reference well, including: determining the interpolation interval according to the measurement point acquisition interval corresponding to the reference well and the set interpolation coefficient; determining the interpolation according to the interpolation interval and the trajectory data of the anti-collision well; and interpolating the trajectory data of the reference well according to the interpolation interval and the interpolation. This obtains more accurate reference well drilling trajectory data, increasing the effectiveness and comprehensiveness of determining the distance to the anti-collision well.
[0137] Interpolation of the trajectory data makes the connection between the measurement points smoother, resulting in more complete and accurate measurement point data, thus overcoming the shortcomings of sparse sampling trajectories and poor data availability during measurement point sampling.
[0138] Optionally, based on spatial binary tree technology, the target subspace where the first measuring point is located is determined according to the measuring point data of the first measuring point, and the trajectory data of the anti-collision well is stored using a spatial binary tree structure.
[0139] For any measurement point data of the reference well, based on its relative coordinates, a spatial binary tree search algorithm is used to index it into its target subspace. First, the measurement point data of the first measurement point is obtained. Based on the relative coordinates of the first measurement point data, the interval range corresponding to the target subspace is found, and the index number of the first measurement point in the corresponding target subspace is obtained. Then, the target subspace where the first measurement point is located is obtained through the corresponding index number of the first measurement point.
[0140] Optionally, relevant data of the reference well and the anti-collision well can be obtained, including wellhead coordinates, ground elevation, and core height; based on the relevant data, the measurements of the reference well and the anti-collision well can be uniformly processed.
[0141] Since the coordinates of different well measuring points may have errors, normalizing the relevant data of the reference well and the relevant data of the anti-collision well can improve the coordinate accuracy of the entire exploration area and increase the representation capability of the measuring point data.
[0142] For example, any collision avoidance well is selected as the calibration reference well. Using the calibration reference well as the origin, the relevant data of the collision avoidance well, employing local coordinates, latitude and longitude coordinates, and / or geodetic coordinates, are standardized in terms of dimensions. The relevant data of the reference well are then corrected based on the calibration reference well, ensuring that the relevant data of the reference well and the relevant data of the collision avoidance well have the same dimensional representation. This same dimensional representation can be (north-south, east-west, vertical depth).
[0143] For example, suppose the reference well is A, and the reference well has n (n≥1) measurement points. The measurement points of well A are C0 (C... 0x C 0y C 0z ), C1(C 1x C 1y C 1z ), ..., C n (C nx C ny C nz Select any wellhead from the anti-collision wells as the calibration reference wellhead, and perform coordinate calibration on the measuring point data of well A. The calibration of the measuring point of well A is C′0(C′ 0x ,C′ 0y ,C′ 0z ), C′1(C′ 1x ,C′ 1y ,C′ 1z ), …C′ n (C′ nx ,C′ ny ,C′ nz The data of the calibrated reference well A's measurement points will be stored.
[0144] To facilitate understanding of the calculation process for determining the distance to anti-collision wells in actual engineering, Figure 3 A flowchart illustrating the method for determining the anti-collision well distance provided in this application embodiment. Figure 2 .like Figure 3 As shown, the calculation steps in this application embodiment include:
[0145] S301. Collect measurement data from reference wells and anti-collision wells.
[0146] In this step, firstly, detailed measurement data from reference wells and anti-collision wells are systematically collected, including precise geographical location information, formation depth data, lithological descriptions, fluid properties, and other relevant geological and engineering parameters obtained from each well location. Subsequently, the geographical location information and formation depth data from the measurement points are organized, categorized, and stored to obtain the measurement point data.
[0147] S302, Measurement point coordinate correction.
[0148] In this step, the measurement point information of the reference well and / or the anti-collision well is corrected. This process normalizes measurement point data from different dimensions to a unified dimension through mathematical transformation, improving the expressive power of the information and ensuring that all relevant characteristic parameters remain within the same scale range. This step effectively avoids calculation errors caused by differences in dimensions, thereby ensuring the accuracy and efficiency of the anti-collision well distance determination method in practical applications.
[0149] S303, Obtain the data acquisition interval.
[0150] To more accurately acquire and analyze well data, interpolation is required for sparse data points. First, the data acquisition interval must be determined, and appropriate interpolation coefficients must be selected. The interpolation interval is then calculated as the product of the data acquisition interval and the interpolation coefficients.
[0151] S304, Interpolation calculation.
[0152] Interpolation calculations are performed on the measuring point data according to the determined interpolation intervals, and the interpolated measuring point data of the reference well and / or anti-collision well are stored.
[0153] S305. Divide the coordinate axes into several intervals.
[0154] First, extract the different coordinates (usually including X, Y and Z coordinates, or coordinates in other dimensions) from the interpolated measurement point data of the anti-collision well.
[0155] Next, the data on each coordinate axis are sorted in ascending order.
[0156] Finally, the dataset is partitioned into intervals for each coordinate axis. The sorted dataset is divided into several intervals based on a determined step size. These intervals have different value ranges on their respective coordinate axes. Since the data distribution characteristics and value ranges may differ on different coordinate axes, different step sizes may be used for interval partitioning on different axes.
[0157] S306. After integrating the intervals, divide them into several subspaces.
[0158] The wellhead of a certain anti-collision well is selected as the origin. The intervals on different coordinate axes are integrated and divided into subspaces. The subspaces contain the same interval information on different coordinate axes. Different subspaces have at least one different coordinate interval. Each subspace is assigned an index number and interval range. All second measuring points are distributed in different subspaces.
[0159] S307. Select the first measuring point from which the distance to the anti-collision well needs to be determined.
[0160] Randomly select the first measuring point from the reference well measuring points where the distance to the anti-collision well needs to be calculated.
[0161] S308, Index to the target subspace where the first measurement point is located.
[0162] Based on the range of the target subspace, the index number, and the measurement data of the first measurement point, the index is used to locate the target subspace corresponding to the first measurement point.
[0163] S309. Calculate the distance from the first measuring point to all second measuring points in the target subspace.
[0164] In this step, the measurement data of all second measurement points in the target subspace are first obtained, and then the distance between the first and second measurement points is calculated using the Euclidean distance calculation formula, and the corresponding distances are stored.
[0165] S310. Sort to determine the nearest distance.
[0166] First, sort the distances between the first measuring point and each of the second measuring points. Then, find the specific value that minimizes the distance to the first measuring point among these sorted distances. This minimum distance is the shortest distance, representing the straight-line distance between the first measuring point and the nearest second measuring point.
[0167] S311. Determine the anti-collision points.
[0168] The second measuring point is obtained based on the closest distance obtained, and this second measuring point is the anti-collision point.
[0169] S312, Store data.
[0170] Store the obtained nearest distance and collision avoidance points.
[0171] S313. Determine whether it is the last first measurement point.
[0172] If the anti-collision well distances of the remaining reference well measuring points have been determined, then the current first measuring point becomes the last first measuring point, and the calculation ends.
[0173] If there is a reference well measurement point without a collision avoidance distance, then proceed to step S314.
[0174] S314. Select the next first measurement point.
[0175] Randomly select a first measuring point from the reference well measuring points where the distance to the anti-collision well needs to be calculated, and execute step S308.
[0176] The anti-collision distance of each measuring point in the reference well can be determined through the calculation in steps S301-S313, thereby obtaining the full-well anti-collision scan result of the reference well. The full-well anti-collision scan result of the reference well includes the anti-collision distance and anti-collision point of each measuring point in the reference well.
[0177] The anti-collision well distance determination method provided in this application firstly obtains more accurate and complete measurement point data by interpolating the measurement point data, thus compensating for the shortcomings of sparse sampling trajectories and poor data availability during measurement point sampling; secondly, by dividing the second measurement point into sub-intervals, the solution space for anti-collision well distance calculation is reduced, the computational complexity is reduced, and the effect of fast and accurate anti-collision well distance calculation is achieved.
[0178] To facilitate understanding of the calculation process of the anti-collision well distance determination method in actual engineering, this application embodiment determines the anti-collision well distance for reference well A and anti-collision well B. Reference well A is a well to be drilled, with wellhead coordinates (0, 0) and an altitude of 331.74m. Table 2 shows the trajectory data of reference well A. The trajectory data is presented in tabular form, i.e., a trajectory design data table. The set trajectory of reference well A includes measuring points 1, 2, 3, and 4; the specific measuring point data for measuring points 1, 2, 3, and 4 are shown in Table 2.
[0179] The wellhead coordinates of anti-collision well B are (0, 0), and the vertical depth is 0m. The coordinates of the last measuring point in the trajectory data of anti-collision well B are (-411.28, -249.61), and the vertical depth is 4106.87m. Table 3 is a partial trajectory data table of anti-collision well B provided in the embodiments of this application. As shown in Table 3, the first 6 measuring points in the trajectory data of anti-collision well B, and the corresponding measuring point data are displayed: depth, well inclination, azimuth, vertical depth, north coordinate, and east coordinate.
[0180] Table 2 Reference Well Track Design Data Table
[0181] Measurement point number well deep Section Chief Well deviation position Vertical depth North and South thing Projected displacement 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 2 900.00 900.00 0.00 45.00 900.00 0.00 0.00 0.00 3 1546.86 646.86 75.47 45.00 1375.39 260.12 260.12 367.86 4 2043.41 496.55 75.47 45.00 1500.00 600.00 600.00 848.53
[0182] Table 3. Partial trajectory data of anti-collision well B.
[0183]
[0184]
[0185] The anti-collision well distance determination method provided in this application embodiment is programmed into a computer, with a scanning interval of 30m and an interpolation coefficient of 1, and the trajectory data of wells A and B are interpolated respectively. Then, using reference well A as the reference well and anti-collision well B as the anti-collision well, the full-well anti-collision scan result of reference well A is calculated, and the full-well anti-collision scan result of reference well A is recorded and stored.
[0186] This application embodiment also provides Table 4, a full-well anti-collision scan result table for reference well A (at 300-meter intervals). The data in the full-well anti-collision scan result table for reference well A (at 300-meter intervals) is obtained by extracting one data point every 300 meters from the full-well anti-collision scan results of reference well A. As shown in Table 4, the anti-collision well depth is the depth of the anti-collision point corresponding to that measuring point, and the anti-collision well distance is the anti-collision well distance corresponding to that measuring point.
[0187] Table 4. Full-well anti-collision scan results for reference well A (at 300-meter intervals).
[0188]
[0189] For reference well A, which is more than 2,000 meters deep, the closest distance determined by the anti-collision well distance determination method proposed in this application has an error of only centimeters compared with the prior art, and the error with the anti-collision well distance determined by related technologies does not exceed 3cm; and the error is mostly caused by the difference in the determination of the anti-collision well depth by related technologies.
[0190] In summary, the method for determining the anti-collision well distance provided in this application has at least the following advantages:
[0191] Fast calculation speed: By using subspace partitioning to reduce the number of calculations, and with the Euclidean distance formula being convenient and fast to solve, the calculation speed for determining the distance of dense cluster wells with many anti-collision wells is significantly improved.
[0192] High versatility: It has no restrictions on the well type of reference wells and / or anti-collision wells, combining the advantages of both traditional normal plane and horizontal plane scanning methods. Whether it is a conventional directional well or a horizontal well, it can obtain accurate anti-collision well distances, providing reliable data for anti-collision and obstacle avoidance in three-dimensional drilling.
[0193] Easy to use: By avoiding the determination of complex analytical equations and the solution of nonlinear equations, the mathematical threshold for writing algorithms to calculate drilling collision avoidance distances is lowered, requiring only commonly used computer languages. Furthermore, by performing calculations locally without using external software and / or uploading local data, it has positive implications for ensuring energy security and geological information security.
[0194] High computational accuracy: Interpolation calculations are performed on the well measurement point data to achieve high accuracy in the anti-collision well distance. The proposed method can not only improve computational accuracy by adjusting the interpolation interval and interpolation coefficients, but also control the size and number of subspaces by adjusting the interval step size to adapt to the number of surrounding anti-collision wells, thereby improving the solution speed and meeting the requirements of continuous dynamic calculation of dense cluster wells.
[0195] Figure 4 This is a schematic diagram of the anti-collision well distance determination device provided in an embodiment of this application. Figure 4 As shown, the anti-collision well distance determination device 40 provided in this embodiment includes:
[0196] The acquisition module 401 is used to acquire trajectory data set for the reference well, wherein the trajectory data includes measurement point data of multiple measurement points on the set trajectory;
[0197] The first determining module 402 is used to determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point in the set trajectory; wherein, the target subspace is a part of the trajectory space divided according to the trajectory data of the anti-collision well;
[0198] The selection module 403 is used to select the target measurement point corresponding to the target subspace in the second measurement point corresponding to the trajectory data of the anti-collision well, based on the target subspace.
[0199] The second determining module 404 is used to determine the anti-collision well distance of the first measuring point based on the measuring point data of the first measuring point and the measuring point data of the target measuring point.
[0200] In one possible implementation, the selection module 403 is specifically used for:
[0201] In the second measuring point corresponding to the trajectory data of the anti-collision well, target measuring points corresponding to the target subspace are selected based on the target subspace, including:
[0202] In all subspaces corresponding to the trajectory data of the anti-collision well, determine the adjacent subspaces of the target subspace;
[0203] In the second measuring point corresponding to the trajectory data of the anti-collision well, the measuring points contained in the target subspace and the measuring points contained in the adjacent subspace are selected as the target measuring points.
[0204] In one possible implementation, the subspace is divided in the following way:
[0205] Acquire the trajectory data of the anti-collision well, where the measuring point data includes the coordinate data of each coordinate axis in the corresponding spatial coordinate system;
[0206] For each coordinate axis, the coordinate data of the corresponding coordinate axis are sorted by size, and the sorted data is divided into different intervals according to the set step size to obtain a subspace.
[0207] In one possible implementation, the coordinate data of the corresponding coordinate axes are sorted by size, including:
[0208] Based on the acquisition interval of the measuring points corresponding to the reference well, the trajectory data of the anti-collision well is interpolated;
[0209] Based on the interpolation results, the coordinate data of the corresponding axes are sorted by size.
[0210] In one possible implementation, the trajectory data of the anti-collision well is interpolated based on the acquisition interval of the measuring point corresponding to the reference well, including:
[0211] The interpolation interval is determined based on the acquisition interval of the measurement points corresponding to the reference well and the set interpolation coefficients;
[0212] The interpolation interval and the trajectory data of the anti-collision well are used to determine the interpolation;
[0213] The trajectory data of the anti-collision well is interpolated based on the interpolation interval and the interpolation value.
[0214] In one possible implementation, the interpolation is determined based on the interpolation interval and the trajectory data of the anti-collision well, including:
[0215] The interpolation is determined based on at least one of the minimum curvature method, minimum slope method, linear interpolation method, and polynomial interpolation method, according to the interpolation interval and the trajectory data of the anti-collision well.
[0216] In one possible implementation, there are multiple anti-collision manholes, and before sorting the coordinate data of the corresponding coordinate axes, the following steps are also included:
[0217] Select any collision avoidance well as the calibration reference well;
[0218] The measurement of anti-collision wells is standardized based on the calibration reference well.
[0219] In one possible implementation, the first determining module 402 is specifically used to: determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, including: determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point using spatial binary tree technology, wherein the trajectory data of the anti-collision well is stored using a spatial binary tree structure.
[0220] In one possible implementation, the acquisition module 401 is further configured to: before determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, acquire relevant data of the reference well and relevant data of the anti-collision well, the relevant data including wellhead coordinates, ground elevation and core height; and perform unified processing on the measurement of the reference well and the anti-collision well based on the relevant data.
[0221] The anti-collision well distance determination device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0222] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.
[0223] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0224] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0225] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0226] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0227] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0228] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0229] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0230] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0231] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0232] The division of units is merely a logical functional division; 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 coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0233] 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, depending on actual needs.
[0234] In addition, the functional units in the various embodiments of the present invention 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.
[0235] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium 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 invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0236] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0237] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for determining the distance to an anti-collision well, characterized in that, include: Acquire trajectory data set for a reference well, wherein the trajectory data includes measurement point data of multiple measurement points on the set trajectory; For the first measuring point in the set trajectory, the target subspace where the first measuring point is located is determined based on the measuring point data of the first measuring point; wherein, the target subspace is a portion of the trajectory space divided according to the trajectory data of the anti-collision well; In the second measuring point corresponding to the trajectory data of the anti-collision well, the target measuring point corresponding to the target subspace is selected according to the target subspace; Based on the measurement data of the first measuring point and the measurement data of the target measuring point, the anti-collision well distance of the first measuring point is determined.
2. The method according to claim 1, characterized in that, In the second measuring point corresponding to the trajectory data of the anti-collision well, selecting the target measuring point corresponding to the target subspace according to the target subspace includes: In all subspaces corresponding to the trajectory data of the anti-collision well, determine the adjacent subspaces of the target subspace; Among the second measuring points corresponding to the trajectory data of the anti-collision well, the measuring points contained in the target subspace and the measuring points contained in the adjacent subspace are selected as the target measuring points.
3. The method according to claim 1, characterized in that, The subspace is divided in the following way: Acquire the trajectory data of the anti-collision well, where the measuring point data includes the coordinate data of each coordinate axis in the corresponding spatial coordinate system; For each coordinate axis, the coordinate data corresponding to the coordinate axis are sorted by size, and the sorted data is divided into different intervals according to a set step size to obtain the subspace.
4. The method according to claim 3, characterized in that, The step of sorting the coordinate data corresponding to the coordinate axes by size includes: Based on the acquisition interval of the measuring points corresponding to the reference well, the trajectory data of the anti-collision well is interpolated; Based on the interpolation results, the coordinate data corresponding to the coordinate axes are sorted by size.
5. The method according to claim 4, characterized in that, The step of interpolating the trajectory data of the anti-collision well based on the acquisition interval of the measuring point corresponding to the reference well includes: The interpolation interval is determined based on the acquisition interval of the measurement points corresponding to the reference well and the set interpolation coefficient; The interpolation is determined based on the interpolation interval and the trajectory data of the anti-collision well; The trajectory data of the anti-collision well is interpolated based on the interpolation interval and the interpolation value.
6. The method according to any one of claims 3 to 5, characterized in that, There are multiple anti-collision manholes. Before sorting the coordinate data corresponding to the coordinate axes, the method further includes: Select any collision avoidance well as the calibration reference well; The measurement of the anti-collision well is uniformly processed based on the calibration reference well.
7. The method according to any one of claims 1 to 5, characterized in that, The step of determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point includes: Based on spatial binary tree technology, the target subspace where the first measuring point is located is determined according to the measuring point data of the first measuring point, and the trajectory data of the anti-collision well is stored using a spatial binary tree structure.
8. The method according to any one of claims 1 to 5, characterized in that, Before determining the target subspace where the first measuring point is located based on the measuring point data of the first measuring point, the method further includes: Acquire relevant data of the reference well and the anti-collision well, the relevant data including wellhead coordinates, ground elevation and core filling height; Based on the relevant data, the measurements of the reference well and the anti-collision well are processed in a unified manner.
9. A device for determining the distance to an anti-collision well, characterized in that, include: The acquisition module is used to acquire trajectory data set for the reference well, wherein the trajectory data includes measurement point data of multiple measurement points on the set trajectory; The first determining module is used to determine the target subspace where the first measuring point is located based on the measuring point data of the first measuring point in the set trajectory. The target subspace is a part of the trajectory space divided according to the trajectory data of the anti-collision well. The selection module is used to select the target measurement point corresponding to the target subspace from the second measurement point corresponding to the trajectory data of the anti-collision well, based on the target subspace. The second determining module is used to determine the anti-collision well distance of the first measuring point based on the measuring point data of the first measuring point and the measuring point data of the target measuring point.
10. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-8.
12. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-8.