A method for measuring and inverting the permeability of porous media for simulating the confluence of scattering holes in horizontal wells.
By constructing a physical model of a block sample with a built-in end-closed wellbore and a scattering hole in the pipe wall, and using a three-dimensional steady-state Darcy flow numerical model to generate a multi-level locally refined grid, the total geometric resistance parameters are calculated. This solves the problem of large deviations in permeability inversion results in existing technologies and achieves accurate permeability measurement and inversion.
Patent Information
- Application Number
- CN202611387915.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-17
AI Technical Summary
Existing technologies fail to accurately account for the additional flow resistance caused by the scattering holes in experimental setups, resulting in large deviations in permeability inversion results. Furthermore, they are difficult to characterize the flow process of the scattering holes in the pipe wall flowing into the well, and lack systematic methods for flux extraction, convergence discrimination, and uncertainty assessment of calibration results.
A physical model of a block sample with an internally sealed end and a wellbore with a scattering hole in the pipe wall was constructed. A multi-level local fine mesh was generated using a three-dimensional steady-state Darcy flow numerical model. The total geometric resistance parameters were calculated by solving the pore surface flow rate of each level of the local fine mesh, and the permeability inversion formula was calibrated using the calibration value of the densest mesh.
It accurately accounts for the additional flow resistance caused by the scattering hole, reduces the permeability inversion bias, provides a reliable basis for permeability measurement, and is suitable for non-circular and long-tube devices and horizontal well production processes.
Smart Images

Figure CN123111920A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of porous media seepage testing and numerical inversion technology, and in particular to a method for measuring and inverting the permeability of porous media for simulating the confluence of scattering pores in horizontal wells. Background Technology
[0002] Laboratory physical models are crucial for studying the seepage dynamics of porous media. Existing seepage physical models often employ one-dimensional long tubular or cylindrical samples, or use inlets and outlets at the end faces of rectangular simulation cavities for fluid displacement. However, mature methods for permeability measurement of blocky samples with internally sealed ends and scattering perforations in the wellbore are lacking. For perforated wells in oilfields, existing technologies have developed analytical, semi-analytical, electrical simulation, and numerical simulation methods to determine the perforation skin coefficient. Numerical simulation, in particular, establishes a three-dimensional model through locally refined meshing, applying bottomhole flowing pressure as the inner boundary and formation pressure as the outer boundary, and then calculates the total skin coefficient after solving the steady-state seepage field. However, the above studies all focus on oilfield production wells, aiming at production capacity prediction and perforation parameter optimization, and have not been used for calibrating permeability inversion formulas in experimental setups. In experimental setups, if conventional radial flow or linear seepage models are used to invert permeability, the additional flow resistance caused by the scattering perforation skin effect is usually not accounted for, leading to significant deviations in the inversion results. Meanwhile, the pressure gradient near the perforation orifice edge exhibits singular characteristics, resulting in slow convergence of direct flux integration and significant flow error when the mesh is insufficient. Existing technologies lack systematic methods for flux extraction, convergence discrimination, and uncertainty assessment of calibration results for such models. Furthermore, existing experimental setups often employ continuous inflow and outflow at the end face, making it difficult to characterize the flow process from the pipe wall to the scattering orifice confluence into the well. Moreover, for non-circular cross-sections or long pipe devices, the equivalent supply radius assumption introduces uncontrollable shape errors. Summary of the Invention
[0003] The main objective of this invention is to propose a method, electronic device, storage medium, and program product for measuring and inverting the permeability of porous media in simulating the confluence of scattering holes in horizontal wells. The aim is to accurately account for the additional flow resistance caused by scattering holes, thereby improving the accuracy and reliability of permeability measurement and inversion in porous media.
[0004] To achieve the above objectives, one aspect of this invention proposes a method for measuring and inverting the permeability of porous media used to simulate the confluence of scattering pores in horizontal wells. The method includes: A physical model is constructed by forming a block-shaped sample of porous media and inserting a horizontal well casing inside the sample. One end of the horizontal well casing is open and connected to an external fluid pipeline, while the other end of the horizontal well casing is closed. Multiple discrete perforations are provided on the pre-perforated section wall of the horizontal well casing. A preset pressure is applied to the physical model, and a three-dimensional numerical model is established using a three-dimensional steady-state Darcy flow numerical model; wherein, the preset pressure includes a first pressure applied to the preset outer surface of the outer boundary of the sample and a second pressure applied to the surface of each perforation. Based on a three-dimensional numerical model, a multi-level local refinement mesh is generated in the edge region of each perforation hole using a preset mesh size; wherein, the mesh size of each level of the multi-level local refinement mesh decreases progressively. Steady-state Darcy flow solution is performed for each level of local densification grid, and the perforation surface flow rate of each perforation under each level of local densification grid is extracted. Then, the sum of the perforation surface flow rates of the perforations under each level of local densification grid is obtained by summing. Based on the preset reference permeability, preset reference fluid viscosity, first pressure, second pressure, characteristic thickness of the sample, and the sum of the flow rates at the perforation surface corresponding to each level of local densification grid, the total geometric resistance parameters corresponding to each level of local densification grid are obtained. The relative change rate is quantified based on the total geometric resistance parameters corresponding to two adjacent levels of local densification grid. When the relative change rate exceeds the preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multi-level local densification grids in the orifice edge region of each perforation using the preset grid size until the relative change rate does not exceed the preset grid convergence threshold. The local densification grid with the smaller grid size among the two adjacent levels of local densification grids corresponding to the relative change rate is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as the calibration value. The coefficients of the permeability inversion formula are calibrated based on the calibration values to obtain the calibrated target inversion formula; Displacement pressure differential is applied to the physical model and experimental flow rate is measured. Then, the permeability of the porous medium is quantified using the target inversion formula.
[0005] In some alternative approaches, the method may also include the following steps: The perforation settings are determined based on the preset target geometric resistance parameters; The parameters to be set include the number of rows, the number of holes per row, the hole diameter, the phase angle, and the row spacing; Based on the set parameters, the perforations in the same row are distributed circumferentially, and the perforations in each row are spaced apart axially. The horizontal well casing is horizontally embedded inside the sample.
[0006] In some alternative approaches, the outer boundary of the specimen includes multiple outer surfaces, and a preset pressure is applied to the physical model, including the following steps: A first pressure is applied to at least one outer surface of the sample's outer boundary, excluding the opening of the horizontal wellbore, as the inlet boundary. A second pressure is applied to the surface of each perforation as a flow collection boundary; wherein, the perforations are connected to the external fluid pipeline through the internal space of the horizontal wellbore; The non-perforated pipe wall in the horizontal well casing, the closed end of the horizontal well casing, and the outer surface of the sample without the first pressure are set as flow-free boundaries, so that the fluid or gas in the sample can only flow into the horizontal well casing through the perforation.
[0007] In some optional methods, the total geometric resistance parameters corresponding to each level of localized fine-grained grid are obtained based on a preset reference permeability, a preset reference fluid viscosity, a first pressure, a second pressure, the characteristic thickness of the sample, and the sum of the perforation surface flow rates corresponding to each level of localized fine-grained grid. This includes the following steps: The first value is obtained based on the difference between the first pressure and the second pressure; The second value is obtained by multiplying the reference permeability, characteristic thickness, and first value by twice pi; The third value is obtained by multiplying the reference fluid viscosity by the total flow rate over the orifice. Based on the ratio of the second value to the sum of the perforation flow rates corresponding to each level of local densification grid, the total geometric resistance parameters corresponding to each level of local densification grid are obtained.
[0008] In some alternative approaches, after establishing the three-dimensional numerical model, the method further includes the following steps: The area of the perforation surface under the second pressure is checked to ensure that the deviation between the sum of the perforation surface areas and the preset theoretical area does not exceed the preset area threshold; wherein, the theoretical area is determined by the number of perforations, the perforation diameter, and the actual geometry of the perforation surface in the three-dimensional numerical model. After obtaining the calibration values of the total geometric drag parameters, the total geometric drag parameters are decomposed into a formal radial reference term and a comprehensive additional geometric drag term relative to the formal radial reference term.
[0009] In some alternative methods, the coefficients of the permeability inversion formula are calibrated based on the calibration values to obtain the calibrated target inversion formula, including the following steps: When the preset pressure is applied based on the water phase, the calibration value of the total geometric resistance parameter is converted into the first coefficient of water phase permeability inversion through the engineering unit conversion constant of the water phase, so as to construct the calibrated water phase permeability inversion formula. When the preset pressure is applied based on the gas phase, the calibration value of the total geometric resistance parameter is converted into the second coefficient of the gas phase permeability inversion through the engineering unit conversion constant of the gas phase, so as to construct the calibrated gas phase permeability inversion formula.
[0010] In some alternative approaches, the target inversion formula includes an aqueous phase permeability inversion formula and a gas phase permeability inversion formula. The coefficients of the permeability inversion formula include the first coefficient of the aqueous phase permeability inversion formula and the second coefficient of the gas phase permeability inversion formula. A displacement pressure differential is applied to the physical model, and the experimental flow rate is measured. The permeability of the porous medium is then quantified using the inversion formula, including the following steps: When a displacement pressure difference is applied to the physical model by water phase, the water phase flow rate is measured and the corresponding water phase viscosity, the third pressure applied by the water phase to the preset outer surface of the outer boundary of the sample, and the fourth pressure applied to the orifice surface of each perforation are obtained. Substituting the water phase flow rate, water phase viscosity, third pressure, and fourth pressure into the water phase permeability inversion formula, and using the product of the first coefficient, water phase flow rate, and water phase viscosity as the numerator, and the pressure difference between the third pressure and the fourth pressure as the denominator, the water phase permeability of the porous medium is calculated. When a displacement pressure difference is applied to the physical model by the gas phase, the standard state flow rate of the gas phase is measured and the gas phase viscosity, gas deviation factor, experimental temperature, standard state temperature, fifth pressure applied by the gas phase to the preset outer surface of the outer boundary of the sample, and sixth pressure applied to the orifice surface of each perforation are obtained. Substituting the standard state flow rate, gas viscosity, gas deviation factor, experimental temperature, standard state temperature, fifth pressure, and sixth pressure into the gas phase permeability inversion formula, and using the product of the second coefficient, the standard state flow rate, the gas viscosity, the gas deviation factor, and the temperature ratio as the numerator, and the difference between the squares of the fifth pressure and the sixth pressure as the denominator, the gas phase permeability of the porous medium is calculated. Here, the fifth and sixth pressures are absolute pressures, and the temperature ratio is determined based on the ratio of the experimental temperature to the standard state temperature. Based on the first-order linear error propagation model, the root sum of squares is synthesized using the numerical calibration uncertainty corresponding to the calibration value, the systematic error and random error of the measurement process as error sources, to obtain the uncertainty range of porous media water phase permeability and porous media gas phase permeability. Systematic errors include input errors in pressure, flow rate, temperature, and fluid viscosity.
[0011] In some alternative approaches, the method further includes the following steps before constructing the physical model: Based on the preset target geometric resistance parameters, the setting parameters of the perforation corresponding to the target geometric resistance parameters are determined by looking up tables or interpolating in the preset calibration database. The calibration database is configured by setting the mapping relationship between parameters and total geometric resistance parameters. The mapping relationship is constructed by establishing a three-dimensional numerical model for multiple experimental physical models with different horizontal well diameters and different setting parameters, and determining the calibration value of the total geometric resistance parameter.
[0012] In some alternative approaches, the method may also include the following steps: By iterating through each setting parameter, the single-factor rotating central difference method is used to solve the total geometric resistance parameter when the corresponding setting parameter takes different values through the three-dimensional numerical model corresponding to the setting parameter, and then the sensitivity coefficient of each setting parameter is determined. When determining the setting parameters based on the target geometric resistance parameters, priority should be given to adjusting the setting parameters with the largest absolute value of the sensitivity coefficient.
[0013] In some alternative approaches, the method may also include the following steps: When the physical model corresponds to a non-circular cross-section or a long tubular device, a three-dimensional numerical model is established based on the geometric model corresponding to the actual cross-sectional shape and length of the sample. In this process, the horizontal well casing is horizontally embedded inside the sample. The open end of the horizontal well casing is located at the outer boundary of the sample as the heel end, and the closed end of the horizontal well casing is located as the toe end. In the step of applying a preset pressure to the physical model, the fluid flows into the well only through the discrete perforations on the perforated section wall to simulate the flow regime under the horizontal well perforation completion and production process.
[0014] To achieve the above objectives, another aspect of the present invention provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned method.
[0015] To achieve the above objectives, another aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned method.
[0016] To achieve the above objectives, another aspect of the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method.
[0017] The embodiments of the present invention include at least the following beneficial effects: The present invention provides a method, electronic device, storage medium, and program product for simulating the flow of scattering holes in a horizontal well for measuring and inverting the permeability of porous media. This method involves constructing a physical model by forming a block-shaped sample of porous media and inserting a horizontal well casing inside the sample. One end of the horizontal well casing is open and connected to an external fluid pipeline, while the other end is closed. Multiple discrete perforations are provided on the wall of a pre-defined perforated section of the horizontal well casing. A pre-defined pressure is applied to the physical model, and a three-dimensional numerical model is established using a three-dimensional steady-state Darcy flow numerical model. The pre-defined pressure includes a first pressure applied to a pre-defined outer surface at the outer boundary of the sample and a second pressure applied to the surface of each perforation. Based on the three-dimensional numerical model, a multi-level local fine-grained grid is generated in the edge region of each perforation using a pre-defined grid size. The grid size of each level of the multi-level local fine-grained grid decreases progressively. Steady-state Darcy flow is solved for each level of the local fine-grained grid, and the flow rate at the surface of each perforation under each level of the local fine-grained grid is extracted. The summation of the flow rates at the perforation surface corresponding to each level of local densification grid is obtained by summation. Based on the preset reference permeability, preset reference fluid viscosity, first pressure, second pressure, characteristic thickness of the sample, and the sum of the flow rates at the perforation surface corresponding to each level of local densification grid, the total geometric resistance parameters corresponding to each level of local densification grid are transformed into the total geometric resistance parameters corresponding to each level of local densification grid. The relative change rate is quantified based on the total geometric resistance parameters corresponding to two adjacent levels of local densification grid. When the relative change rate exceeds the preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multi-level local densification grids in the orifice edge region of each perforation using the preset grid size until the relative change rate does not exceed the preset grid convergence threshold. The local densification grid with the smaller grid size among the two adjacent levels of local densification grids corresponding to the relative change rate is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as the calibration value. The coefficients of the permeability inversion formula are calibrated according to the calibration value to obtain the calibrated target inversion formula. A displacement pressure difference is applied to the physical model and the experimental flow rate is measured. Then, the permeability of the porous medium is quantified using the target inversion formula. This invention constructs a physical model of a blocky sample with an internally sealed end and a perforation hole in the pipe wall, and establishes a geometrically consistent three-dimensional steady-state Darcy numerical model. Using the first pressure at the outer boundary and the second pressure at the perforation surface as boundary conditions, the total flow rate at the perforation surface is extracted to calculate the total geometric resistance parameters. Inlet and outlet mass balance errors and grid convergence criteria are used to ensure flux convergence. The total geometric resistance parameters corresponding to the densest grid that meets the preset grid convergence threshold are taken as calibration values, and the calibration uncertainty is evaluated. Then, the coefficients of the permeability inversion formula are calibrated before experimental inversion. Therefore, the additional flow resistance caused by the perforation hole can be accurately accounted for, reducing the permeability inversion deviation caused by using ideal radial flow or occupancy resistance parameters, and providing a reliable basis for permeability measurement under perforation hole confluence conditions in blocky samples. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the method for measuring and inverting the permeability of porous media for simulating the confluence of scattering holes in horizontal wells, provided in an embodiment of the present invention. Figure 2 This is a schematic diagram illustrating the geometric and boundary conditions of the physical model and the three-dimensional numerical model provided in the embodiments of the present invention; Figure 3 This is a schematic diagram of a grid convergence verification example provided in an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of this invention; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this invention as detailed in the appended claims.
[0020] It is understood that the terms "first," "second," etc., used in this invention may be used to describe various concepts, but unless specifically stated otherwise, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of embodiments of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" or "when" as used herein may be interpreted as "when," "in response to determination," or "in the event of a determination."
[0021] The terms “at least one,” “multiple,” “each,” “any,” etc., used in this invention, “at least one” includes one, two, or more than two; “multiple” includes two or more than two; “each” refers to each of the corresponding multiple; and “any” refers to any one of the multiple.
[0022] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this invention is for descriptive purposes only and is not intended to limit the invention.
[0023] In related technologies, there is a need for a permeability measurement and inversion method that can accurately calibrate the geometric resistance of the scattering aperture device, ensure reliable numerical flux convergence, and is applicable to the simulation of non-circular and long-tube devices and horizontal well production processes.
[0024] In view of this, this invention provides a method for measuring and inverting the permeability of porous media for simulating the confluence of scattering holes in horizontal wells. This method involves constructing a physical model by forming a block-shaped sample of porous media and inserting a horizontal well casing inside the sample. One end of the horizontal well casing is open and connected to an external fluid pipeline, while the other end is closed. Multiple discrete perforations are provided on the wall of a pre-defined perforation section of the horizontal well casing. A pre-defined pressure is applied to the physical model, and a three-dimensional numerical model is established using a three-dimensional steady-state Darcy flow numerical model. The pre-defined pressure includes a first pressure applied to a pre-defined outer surface of the sample's outer boundary and a second pressure applied to the surface of each perforation. Based on the three-dimensional numerical model, a multi-level local fine-grained grid is generated in the edge region of each perforation using a pre-defined grid size. The grid size of each level of the multi-level local fine-grained grid decreases progressively. Steady-state Darcy flow is solved for each level of the local fine-grained grid, and the surface flow rate of each perforation under each level of the local fine-grained grid is extracted. Then, the flow rate of each perforation under each level of the local fine-grained grid is obtained by summing the results. The sum of the flow rates at the perforation surfaces corresponding to each level of the local fine-grained grid is used. Based on preset reference permeability, preset reference fluid viscosity, first pressure, second pressure, characteristic thickness of the sample, and the sum of the flow rates at the perforation surfaces corresponding to each level of local fine-grained grid, the total geometric resistance parameters corresponding to each level of local fine-grained grid are converted. The relative rate of change is quantified based on the total geometric resistance parameters corresponding to two adjacent levels of local fine-grained grid. When the relative rate of change exceeds the preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multi-level local fine-grained grids in the orifice edge region of each perforation using the preset grid size, until the relative rate of change does not exceed the preset grid convergence threshold. The local fine-grained grid with the smaller grid size among the two adjacent levels of local fine-grained grids corresponding to the relative rate of change is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as the calibration value. The coefficients of the permeability inversion formula are calibrated according to the calibration value to obtain the calibrated target inversion formula. A displacement pressure difference is applied to the physical model and the experimental flow rate is measured. Then, the permeability of the porous medium is quantified using the target inversion formula. This invention constructs a physical model of a blocky sample with an internally sealed end and a perforation hole in the pipe wall, and establishes a geometrically consistent three-dimensional steady-state Darcy numerical model. Using the first pressure at the outer boundary and the second pressure at the perforation surface as boundary conditions, the total flow rate at the perforation surface is extracted to calculate the total geometric resistance parameters. Inlet and outlet mass balance errors and grid convergence criteria are used to ensure flux convergence. The total geometric resistance parameters corresponding to the densest grid that meets the preset grid convergence threshold are taken as calibration values, and the calibration uncertainty is evaluated. Then, the coefficients of the permeability inversion formula are calibrated before experimental inversion. Therefore, the additional flow resistance caused by the perforation hole can be accurately accounted for, reducing the permeability inversion deviation caused by using ideal radial flow or occupancy resistance parameters, and providing a reliable basis for permeability measurement under perforation hole confluence conditions in blocky samples.
[0025] Reference Figure 1 , Figure 1 This is an optional flowchart of a porous media permeability measurement and inversion method for simulating horizontal well out-of-scattering hole confluence provided by an embodiment of the present invention. Figure 1 The method may include, but is not limited to, steps S100 to S500.
[0026] Step S100: The porous medium is made into a block-shaped sample, and a horizontal well shaft is placed inside the sample to construct a physical model; The horizontal well casing has an open end that is connected to an external fluid pipeline, and a closed end. The pre-perforated section of the horizontal well casing has multiple discrete perforations on its wall. It should be noted that in some embodiments, the method may further include the following steps: determining the perforation setting parameters based on preset target geometric resistance parameters; wherein, the setting parameters include the number of rows, the number of holes per row, the hole diameter, the phase angle, and the row spacing; distributing the perforations in the same row circumferentially based on the setting parameters, and spacing the perforations in each row axially; wherein, the horizontal well casing is horizontally embedded inside the sample.
[0027] For example, in some specific embodiments, the physical model can be constructed as follows: a porous medium is made into a block sample, and a horizontal well casing is placed inside the sample. One end of the horizontal well casing is open and connected to a fluid pipeline outside the sample, while the other end is closed. Multiple scattering holes are set on the wall of a pre-defined perforated section of the horizontal well casing. The perforations can be arranged in M rows × N per row, distributed circumferentially in the same row and spaced apart axially in each row. The number of perforation rows, the number of holes per row, the hole diameter, the phase angle, and the row spacing are determined according to the target geometric resistance parameters of the physical model.
[0028] Step S200: Apply a preset pressure to the physical model and establish a three-dimensional numerical model using a three-dimensional steady-state Darcy flow numerical model. The preset pressure includes a first pressure applied to the preset outer surface of the outer boundary of the sample and a second pressure applied to the surface of each perforation hole; It should be noted that the outer boundary of the sample includes multiple outer surfaces. In some embodiments, applying a preset pressure to the physical model includes the following steps: applying a first pressure to at least one outer surface of the outer boundary of the sample, excluding the opening of the horizontal well casing, as an inlet boundary; applying a second pressure to the perforation surface of each perforation as a flow collection boundary; wherein the perforations are connected to the external fluid pipeline through the internal space of the horizontal well casing; setting the non-perforated pipe wall of the horizontal well casing, the closed end of the horizontal well casing, and the outer surface of the outer boundary of the sample where the first pressure is not applied as a flow-free boundary, so that the fluid or gas in the sample only flows into the horizontal well casing through the perforations.
[0029] For example, in some specific embodiments, a three-dimensional steady-state Darcy flow numerical model is established that is geometrically consistent with the physical model, and the governing equations are: ·( (k m / μ) p)=0; p represents the pressure gradient, where a first pressure p is applied to a predetermined outer surface at the outer boundary of the sample. e Other sample outer surfaces are set as flow-free boundaries; a second pressure p is applied to each perforation surface. w The non-perforated pipe wall and the closed end are set as flow-free boundaries; the flow inside the well is not explicitly modeled. When the ratio of the pressure drop along the well to the external driving pressure difference does not exceed a preset threshold, the surface of each perforation is approximated as the same well pressure, and the approximation condition is verified by the pressure drop along the well. When the pressure drop along the well cannot be ignored, the one-dimensional pipe flow or three-dimensional flow in the well is coupled with the external Darcy flow for solution.
[0030] Specifically, the numerical model solves the steady-state Darcy equation, with reference permeability k. m =1×10 15 m 2 (Approximately 1.013 mD), reference viscosity μ = 1.05 × 10⁻⁶ 3 Pa·s; Apply p to the three sides at x=0.5 m, y=0, and y=0.5 m. e =1000 Pa was used as the supply boundary, and p was applied to the surfaces of the 10 perforations. w =0 is used as the flow collection boundary; the x=0 side where the well opening is located, except for the well opening itself, is set as a flow-free boundary, and the top and bottom surfaces are also set as flow-free boundaries; the well opening is connected to the external pipeline through the inside of the well; the pressure drop along the shaft is estimated to be negligible, therefore the same pressure is used for each perforation surface. The perforation surface is obtained by geometrically dividing the area intersecting with the well shaft, and the correct selection of the perforation surface is confirmed by area verification.
[0031] Approximate criterion and coupling implementation for wellbore pressure drop: The preset threshold is set so that the ratio of the pressure drop along the wellbore to the external driving pressure difference does not exceed 1% (it can be selected within the range of 0.1% to 5% according to the target accuracy). The basis for this value is: under linear Darcy flow, the relative deviation of the driving pressure difference at each perforation surface caused by the pressure drop along the wellbore does not exceed this ratio. This deviation is approximately equally transmitted as the system relative deviation of the total geometric resistance parameter and the inverted permeability. The combined uncertainty of the experimental measurement link is usually 2% to 5%. When synthesized by the root of square, a system deviation of no more than 1% makes the increase in total uncertainty no more than about 0.2 percentage points. That is, this system deviation is covered by the measurement uncertainty, and further reducing the threshold has no substantial contribution to the inversion accuracy. When the experimental measurement uncertainty is larger or the target accuracy is lower, the threshold can be appropriately relaxed or tightened within the range of 0.1% to 5%. The pressure drop along the wellbore is estimated using the laminar flow pipe flow formula Δp. w =8μL w / (πr w 4 ),in The average flow rate along the wellbore is approximately half of the total flow rate under uniform flow conditions, L. w The flow length within the wellbore; Δp in this embodiment of the invention w ≈1×10 4 Pa, which is only 10% of the driving pressure differential of 1000 Pa. 7 The magnitude is much smaller than the threshold. When the threshold is exceeded, a uniform pressure p is applied to all orifice surfaces. w Replace with friction pressure distribution p w(x) The axial pressure distribution in the wellbore is calculated using the flow rate of each perforation hole in a one-dimensional pipe flow model (Laminar flow according to the Hagen–Poiseuille formula, turbulent flow according to the Darcy–Weisbach formula). This is then used as the pressure boundary of each orifice in the external Darcy model for resolving the problem. The pressure drop in the wellbore is then updated with the new flow rate. This iteration continues until the change in the total geometric resistance parameter between two adjacent cycles does not exceed a preset proportion (e.g., 0.5%). When high-speed non-Darcy flow occurs in the wellbore, the solution can be changed to a three-dimensional Navier–Stokes equation in the wellbore domain coupled with the external Darcy seepage zone for resolution.
[0032] It should be noted that in some embodiments, the method may further include the following steps: when the physical model corresponds to a non-circular cross-section or a long tubular device, a three-dimensional numerical model is established based on the geometric model corresponding to the actual cross-sectional shape and length of the sample; wherein, the horizontal well casing is horizontally buried inside the sample, the open end of the horizontal well casing is located at the outer boundary of the sample as the heel end, and the closed end of the horizontal well casing is located as the toe end. In the step of applying a preset pressure to the physical model, the fluid flows into the well only through the discrete perforations on the perforated section pipe wall to simulate the flow regime under the horizontal well perforation completion and production process.
[0033] For example, in some specific embodiments, non-circular and long tubular devices are established with a three-dimensional numerical model based on the actual cross-sectional shape, length and boundary conditions. The coefficients of the inversion formula are directly determined by the total geometric resistance parameters, without the need for equivalent supply radius or shape factor assumptions.
[0034] Step S300: Based on the three-dimensional numerical model, generate a multi-level local refinement mesh in the edge region of each perforation hole using a preset mesh size; In the multi-level local densification grid, the grid size of each level of the local densification grid decreases progressively; It should be noted that in some specific implementations, multi-level local densification grids are generated in the edge region of each perforation hole using a preset grid size, including the following steps: determining the initial feature grid size of the perforation hole edge based on the perforation hole radius, and gradually reducing the initial feature grid size according to a preset scaling ratio to generate the next level of local densification grid.
[0035] Furthermore, in subsequent iterations, the reduction operation of the preset grid size is based on the minimum size that has already been generated, with the preset scaling ratio decreasing step by step.
[0036] Step S400: Perform steady-state Darcy flow solution for each level of local densification grid, extract the perforation surface flow rate of each perforation under each level of local densification grid, and then sum the perforation surface flow rates of the perforations in each level of local densification grid by summing them. It should be noted that in some specific implementations, the extraction of the perforation surface flow rate of each perforation under each level of local densification grid includes the following steps: extracting the perforation surface flow rate of each perforation using the reaction flux under the Dirichlet boundary conditions; and / or, integrating the normal Darcy flux of each perforation surface, and using the deviation of the normal Darcy flux integration result relative to the reaction flux as the grid densification monotonically decreases as the grid densification progresses as an auxiliary criterion for the sufficiency of local densification.
[0037] Step S500: Based on the preset reference permeability, preset reference fluid viscosity, first pressure, second pressure, characteristic thickness of the sample, and the sum of the flow rates at the perforation surface corresponding to each level of local densification grid, the total geometric resistance parameters corresponding to each level of local densification grid are obtained. The relative change rate is quantified based on the total geometric resistance parameters corresponding to two adjacent levels of local densification grid. When the relative change rate exceeds the preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multi-level local densification grids in the orifice edge region of each perforation using the preset grid size until the relative change rate does not exceed the preset grid convergence threshold. The local densification grid with the smaller grid size among the two adjacent levels of local densification grids corresponding to the relative change rate is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as the calibration value. It should be noted that, in this embodiment of the invention, the parameters used to determine the preset grid convergence threshold for each level of the grid are obtained by the following process: a hierarchical local densification grid sequence is generated according to the preset local densification rules. The local densification grid sequence determines the characteristic grid size of the perforation orifice edge based on the perforation radius and decreases it step by step. For each level of local densification grid, the three-dimensional numerical model is solved, the sum of the flow rates of each perforation surface under that level of grid is extracted, and the total geometric resistance parameter corresponding to that level of grid is calculated based on the reference permeability, reference fluid viscosity, first pressure, second pressure and characteristic thickness. Starting from the second-level mesh, the relative rate of change of the total geometric resistance parameter between the current-level mesh and the previous-level mesh is compared with the preset mesh convergence threshold. When the relative rate of change does not exceed the preset mesh convergence threshold for the first time, the generation of the next-level local refinement mesh is stopped, and the current-level mesh, i.e., the one with the smaller perforation orifice edge feature mesh size among the two adjacent meshes that meet the convergence criterion, is determined as the densest mesh, and the total geometric resistance parameter corresponding to the densest mesh is taken as the calibration value. When the relative rate of change exceeds the preset mesh convergence threshold, the generation of the next-level local refinement mesh continues and the above solution and comparison steps are repeated.
[0038] For example, in some specific implementations, the mesh convergence solution can be achieved as follows: The perforation orifice edge region is locally densified and meshed, and the total flow rate Q of each perforation surface is extracted using the finite element reaction flux under Dirichlet boundary conditions. The inlet and outlet mass balance error of the reaction flux does not exceed a preset threshold as the flux convergence criterion. Simultaneously, the direct flux integral of the perforation surface is used for verification. When the relative change in the total geometric resistance parameter calculated from adjacent mesh levels after progressive densification does not exceed a preset proportion, and the deviation of the direct flux integral relative to the reaction flux decreases with mesh densification, the local densification at the orifice edge is deemed sufficient, and the total geometric resistance parameter calculated from the densest mesh is taken as the calibration value. Based on the reference permeability, reference fluid viscosity, pressure difference, sample characteristic thickness, and total flow rate of the perforation surface, according to S... eff =2πk m h(p e p w The total geometric drag parameter is calculated using (μQ) / (μQ).
[0039] The total geometric resistance parameter Seff is used as the target quantity for mesh convergence judgment, rather than the number of mesh cells or solver residuals. This is because Seff is obtained by inverting the sum of the perforation surface flow rates, directly determining the calibration coefficients of the permeability inversion formula. Furthermore, since the reference permeability, reference fluid viscosity, first pressure, second pressure, and characteristic thickness remain constant across mesh levels, Seff is strictly inversely proportional to the sum of the perforation surface flow rates. The relative rate of change of Seff between two adjacent levels is equivalent to the relative rate of change of the sum of the surface flow rates. Therefore, the preset mesh convergence threshold equally limits the calibration error of the inversion coefficients. The densest mesh is not a preset fixed mesh level, but rather the termination point of the convergence judgment process: when the i-th level mesh and the i-th... When the relative rate of change of the Seeff of the Level 1 mesh does not exceed the preset mesh convergence threshold for the first time, mesh refinement stops. The level with the smaller mesh size of the perforation aperture edge feature between the two adjacent levels is determined as the densest mesh, and the Seeff calculation result of the densest mesh is directly used as the calibration value, instead of using the extrapolated limit value. If the Seeff of two adjacent levels shows a non-monotonic change, the mesh quality, geometric partitioning, and boundary settings are checked and the mesh is re-divided, and this result is not used as the calibration value. Optionally, a maximum refinement level is preset. If the preset mesh convergence threshold is still not met even after reaching the maximum refinement level, the mesh quality and boundary conditions are checked, instead of directly accepting the result of the final level mesh.
[0040] Among them, S eff k is the total geometric drag parameter. m The reference permeability is given by h, the characteristic thickness of the sample is given by p. e To address supply-side pressures, p w S is the pressure at the perforation surface, μ is the viscosity of the reference fluid, and Q is the sum of the flow rates at all perforation surfaces. eff It characterizes the combined flow resistance generated by a fixed three-dimensional geometry and boundary conditions, and is not considered an inherent physical property parameter of porous media materials.
[0041] It should be noted that, in some embodiments, the total geometric resistance parameter corresponding to each level of localized densification grid is obtained based on a preset reference permeability, a preset reference fluid viscosity, a first pressure, a second pressure, the characteristic thickness of the sample, and the sum of the perforation surface flow rates corresponding to each level of localized densification grid. This process includes the following steps: obtaining a first value based on the difference between the first pressure and the second pressure; multiplying the reference permeability, characteristic thickness, and the first value by twice pi to obtain a second value; multiplying the reference fluid viscosity by the total perforation surface flow rate to obtain a third value; and obtaining the total geometric resistance parameter corresponding to each level of localized densification grid based on the ratio of the second value to the sum of the perforation surface flow rates corresponding to each level of localized densification grid.
[0042] For example, in some specific embodiments, based on the reference permeability, reference fluid viscosity, pressure difference, sample characteristic thickness, and total flow rate, according to Seff = 2πk m h(p e p w The total epidermal coefficient is calculated using (μQ) / (μQ). Where Seff is the total geometric drag (total skin coefficient). m p is the permeability of the porous medium, h is the seepage thickness (model z-axis, i.e., rock sample thickness), and p is the permeability of the porous medium. e It is the supply pressure at the injection port, p w is the pressure at the perforation surface, μ is the viscosity, and Q is the flow rate.
[0043] It should be noted that in some embodiments, the relative rate of change of the total geometric drag parameter is δ. i =|S eff,i S eff,i 1| / |S eff,i |;wherein, S eff,i S represents the total geometric drag parameter corresponding to the i-th level locally refined mesh. eff,i 1 is the i-th Total geometric resistance parameters corresponding to Level 1 localized mesh refinement.
[0044] It should be noted that, in some embodiments, before calculating the total geometric resistance parameters corresponding to each level of local densification grid, the method further includes: performing a quality balance check on the sum of the supply boundary flow rate and the perforation surface flow rate of each level of local densification grid; when the relative difference between the two does not exceed a preset quality balance threshold, the total geometric resistance parameters are calculated using the sum of the perforation surface flow rates of that level of local densification grid.
[0045] It should be noted that, in some embodiments, after establishing the three-dimensional numerical model, the method may further include the following steps: checking the area of the perforation surface of the perforation to which the second pressure is applied, so that the deviation between the sum of the areas of the perforation surfaces and the preset theoretical area does not exceed the preset area threshold; wherein, the theoretical area is determined by the number of perforations, the diameter of the perforations, and the actual geometric shape of the perforation surface in the three-dimensional numerical model; after obtaining the calibration value of the total geometric resistance parameter, decomposing the total geometric resistance parameter into a formal radial reference term and a comprehensive additional geometric resistance term relative to the formal radial reference term.
[0046] Exemplary, in some specific embodiments, optionally, it can be according to S eff =S r +S comp The geometric drag parameters are obtained by decomposition, where S r For the formal radial datum term, Scomp This is a comprehensive additional geometric resistance term relative to the baseline term, used to comprehensively reflect the effects of non-circular finite boundaries, local supply, scattering hole confluence, inter-hole interference, perforation phase limitation, and finite-length wellbore closure. The equivalent supply radius is only used for result decomposition or comparison under the circular model and is not a necessary condition for inversion. Before solving, check the deviation between the sum of the perforation surface areas and the theoretical area determined according to the actual three-dimensional geometry to rule out incorrect selection of internal surfaces or omission of perforation surfaces.
[0047] Step S600: Calibrate the coefficients of the permeability inversion formula according to the calibration values to obtain the calibrated target inversion formula; It should be noted that in some embodiments, step S600 may include the following steps: when the preset pressure is applied based on the aqueous phase, the calibration value of the total geometric resistance parameter is converted into the first coefficient of aqueous phase permeability inversion through the engineering unit conversion constant of the aqueous phase, so as to construct the calibrated aqueous phase permeability inversion formula; when the preset pressure is applied based on the gas phase, the calibration value of the total geometric resistance parameter is converted into the second coefficient of gas phase permeability inversion through the engineering unit conversion constant of the gas phase, so as to construct the calibrated gas phase permeability inversion formula.
[0048] For example, in some specific implementations, the calibration inversion formula can be implemented as follows: based on S eff The coefficients of the inversion formulas for aqueous and / or gas phase permeability are calibrated; the aqueous phase formula is k. w =C w ·Q w μ w / Δp, the gas phase formula is k g =C g ·Q g , sc μ g Z·(T / T sc ) / (p e 2 p w 2 ), where C w =A w ·S eff C g =A g ·S eff C w C g A represents the final coefficients of the inversion formulas for the aqueous and gaseous phases. w A g For conversion constants between aqueous and gaseous phase engineering units; μ w μ g It refers to the viscosity of the aqueous phase and the gas phase. Q w Q g,scThese are the total volumetric flow rate of the outlet water and the standard state volumetric flow rate of the outlet gas phase. T, T sc These are the experimental temperature and the standard state temperature. The p in the gas phase formula... e and p w All are absolute pressures.
[0049] For situations with a large pressure range and significant variations in the gas deviation factor Z, a pseudo-pressure difference is used instead of the simple pressure squared difference. Before calibration, parameter invariance is verified: the pressure difference, reference permeability, or reference fluid viscosity are multiplied and recalculated. If the change in the total geometric resistance parameter does not exceed a preset proportion, the numerical values are confirmed to conform to the scaling relationship of the linear Darcy equation.
[0050] Step S700: Apply displacement pressure difference to the physical model and measure the experimental flow rate, and then use the target inversion formula to quantify the permeability of the porous medium. It should be noted that the target inversion formula includes an aqueous phase permeability inversion formula and a gas phase permeability inversion formula. The coefficients of the permeability inversion formula include the first coefficient of the aqueous phase permeability inversion formula and the second coefficient of the gas phase permeability inversion formula. In some embodiments, step S700 may include the following steps: when a displacement pressure difference is applied to the physical model through the aqueous phase, the aqueous phase flow rate is measured and the corresponding aqueous phase viscosity, the third pressure applied to the outer surface of the sample by the aqueous phase, and the fourth pressure applied to the pore surface of each perforation are obtained; the aqueous phase flow rate, aqueous phase viscosity, third pressure, and fourth pressure are substituted into the aqueous phase permeability inversion formula, and the permeability of the porous medium is calculated by using the product of the first coefficient, the aqueous phase flow rate, and the aqueous phase viscosity as the numerator and the pressure difference between the third pressure and the fourth pressure as the denominator; when a displacement pressure difference is applied to the physical model through the gas phase, the standard state flow rate of the gas phase is measured and the gas phase viscosity, gas deviation factor, experimental temperature, standard state temperature, and the gas phase applied to the sample are obtained. The fifth pressure on the preset outer surface of the outer boundary of the sample and the sixth pressure applied to the surface of each perforation are used. The standard state flow rate, gas viscosity, gas deviation factor, experimental temperature, standard state temperature, fifth pressure, and sixth pressure are substituted into the gas phase permeability inversion formula. The porous medium gas phase permeability is calculated by using the product of the second coefficient, the standard state flow rate, gas viscosity, gas deviation factor, and the temperature ratio as the numerator, and the difference between the squares of the fifth and sixth pressures as the denominator. Here, the fifth and sixth pressures are absolute pressures, and the temperature ratio is determined based on the ratio of the experimental temperature to the standard state temperature. According to the first-order linear error propagation model, the root sum of squares is synthesized using the numerical calibration uncertainty corresponding to the calibration value, the systematic error of the measurement process, and the random error as error sources to obtain the uncertainty range of the porous medium aqueous phase permeability and the porous medium gas phase permeability. Here, the systematic error includes input errors in pressure, flow rate, temperature, and fluid viscosity.
[0051] For example, in some specific implementations, the calibration database can establish a three-dimensional numerical model for multiple experimental physical models with different horizontal wellbore diameters and different setting parameters, and determine the total geometric resistance parameter by taking the calculation result of the densest grid after satisfying the same grid convergence criterion, thereby constructing a mapping relationship between the setting parameters and the total geometric resistance parameter.
[0052] For example, in some specific implementations, experimental inversion can be achieved by: applying a pressure difference to the physical model and measuring the flow rate; substituting the measured pressure difference, flow rate, and fluid properties into the calibrated inversion formula to obtain the permeability of the porous medium; and outputting the uncertainty range of the permeability according to a first-order linear error propagation model (the error propagation formula and error source adopt first-order linear error propagation (GUM root summation), for aqueous phase and gas phase (for p... e 2 p w 2 The formula for partial derivatives has been written; the error sources include numerical calibration uncertainty, systematic and random errors of pressure / flow / temperature instruments, and geometric verification deviations of the sample; when directly measuring differential pressure, the uncertainty of the differential pressure gauge is taken to avoid repeated inclusion of correlations; Monte Carlo method can be selected as an alternative.
[0053] It should be noted that, in some embodiments, before constructing the physical model, the method may further include the following steps: based on the preset target geometric resistance parameters, look up a table or interpolate in a preset calibration database to determine the perforation setting parameters corresponding to the target geometric resistance parameters; wherein, the calibration database is configured through the mapping relationship between the setting parameters and the total geometric resistance parameters, and the mapping relationship is constructed by establishing a three-dimensional numerical model for multiple sets of experimental physical models with different horizontal wellbore diameters and different setting parameters and determining the calibration value of the total geometric resistance parameters.
[0054] For example, in some specific implementations, the calibration database is calibrated in batches for 12 working conditions of 3 types of horizontal wellbore diameter × 4 types of perforation arrangements, using the same three-in-one-out boundary process (each working condition is verified by two-stage orifice edge densification and convergence, with an increment of 0.44% to 0.45% between the two stages, and the numerical calibration uncertainty is evaluated according to the relative change rate between the two stages (approximately 0.44% to 0.45%); the wellbore capture ratio—the ratio of the flow rate flowing into the wellbore through the perforation orifice to the total inflow on the three sides—is between 5.9% and 6.4%, slightly decreasing with increasing pipe diameter and single-sided concentrated arrangement).
[0055] It should be noted that in some embodiments, the method may also include the following steps: traversing each setting parameter, using the single-factor rotation central difference method, solving the total geometric resistance parameter when the corresponding setting parameter takes different values through the three-dimensional numerical model corresponding to the setting parameter, and then determining the sensitivity coefficient of each setting parameter; when determining the setting parameter according to the target geometric resistance parameter, prioritizing the adjustment of the setting parameter with the largest absolute value of the sensitivity coefficient.
[0056] For example, in some specific embodiments, parameters are defined to quantitatively compare the influence weights of each perforation arrangement parameter on the geometric resistance parameter. (Number of rows M, number of holes per row N, hole diameter d, phase angle θ, row spacing L, etc.) for S comp The relative sensitivity coefficient (dimensionless elasticity coefficient) is Its physical meaning is parameters S caused by a relative change of 1% comp Relative percentage change. Since the number of rows and the number of holes per row are integer discrete parameters and S... comp Without an analytical expression, the sensitivity coefficient is implemented on a three-dimensional numerical model using the single-factor rotation (OFAT) central difference method. That is, only one parameter is changed each time, while the other parameters remain fixed at the reference condition, respectively. ± Repeatedly solve and calculate S comp Substituting into the above formula, we get ;| The larger the value, the higher the weight of this parameter on the geometric drag parameter, and it should be adjusted first during reverse design. The selection of the differential step size Δxi should make S... comp The difference value is significantly greater than the preset mesh convergence threshold; the minimum integer step size is taken for integer parameters, and 10% to 25% of the reference value is taken for continuous parameters (aperture, row spacing, phase angle).
[0057] To explain in detail the principle of the technical solution of the present invention, the overall process of the present invention will be described below with reference to some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and should not be regarded as a limitation of the present invention.
[0058] First, it should be noted that for laboratory physical model devices with horizontal well casings that are closed at the inside and have scattering holes in the pipe wall, existing technologies lack technical guidance on using three-dimensional numerical calibration to correct the coefficients of the permeability inversion formula for experimental devices. Instead, one-dimensional radial flow formulas or artificially given empirical substitute parameters are commonly used, which fails to reflect the combined geometric resistance generated by non-circular finite boundaries, discrete orifice confluence, finite number of orifices, orifice diameter, arrangement, and closed ends. The applicant's research has found that the resistance parameters corresponding to the actual three-dimensional geometry differ significantly from the ideal radial reference or occupancy parameters. Taking the typical device of this invention as an example, using the occupancy resistance parameters will underestimate the inverted permeability by approximately 67%, while using the pure radial flow formula will underestimate it by approximately 73%. Therefore, when using the three-dimensional numerical model for experimental device calibration, it is necessary to establish a consistent relationship between the physical model boundary, perforation flux extraction, mesh convergence evaluation, and inversion coefficient conversion. The pressure gradient near the edge of the perforation orifice exhibits singular characteristics, resulting in slow convergence of conventional direct flux integration. Insufficient mesh size can significantly increase flow error. Therefore, it is necessary to employ reaction flux, mass balance verification, and local mesh refinement at the orifice edge to ensure that the calculation results of the densest mesh meet the preset mesh convergence criteria.
[0059] Furthermore, existing experimental devices (including the aforementioned rectangular simulation cavity system) mostly adopt one-dimensional linear displacement or radial flow in a vertical well at the end face inlet and outlet. The fluid flows out from the continuous end face, making it difficult to characterize the flow process from the pipe wall to the scattering hole and into the well. The flow regime during measurement does not match the actual production process of horizontal wells. Moreover, for non-circular cross-section devices such as rectangular ones or long pipes, the equivalent supply radius assumption on which the radial flow formula is based introduces uncontrollable shape errors.
[0060] Therefore, embodiments of the present invention provide a method for measuring and inverting the permeability of porous media for simulating the confluence of scattering pores in horizontal wells. Embodiments of the present invention can be implemented through the following process: S1. Constructing the physical model: The porous medium is made into a block sample, and a horizontal well casing is placed inside the sample. One end of the horizontal well casing is open and connected to the external fluid pipeline of the sample, while the other end is closed. Multiple scattering holes are set on the pre-designed perforated section wall of the horizontal well casing. The perforations can be arranged in M rows × N per row, distributed circumferentially in the same row and spaced apart axially in each row. The number of perforation rows, the number of holes per row, the hole diameter, the phase angle, and the row spacing are determined according to the target geometric resistance parameters of the physical model.
[0061] like Figure 2 The diagram shown illustrates examples of the geometric and boundary conditions for the physical model and the 3D numerical model. Figure 2(a) is a side view showing the porous medium, horizontal wellbore, closed end, perforated section and the position of each row of perforations, as well as the constant pressure inlet on three sides, constant pressure flow collection on the perforation surface, connection between the wellbore opening and the external pipeline, and the pressure boundary of the remaining outer surface and top and bottom surfaces without flow. The perforated section is 25-35 cm long with perforations d=2.5 mm, row spacing 2 cm, using 5 rows x 2 holes, arranged 180° opposite each other in the same row, for a total of 10 holes; (b) is a cross-sectional view showing the sample cross-section and the position of the wellbore; (c) is an enlarged schematic diagram of the wellbore, showing the wellbore radius, perforation diameter and the 180° opposite relationship of two holes in the same row.
[0062] S2, Establish a three-dimensional numerical model: Establish a three-dimensional steady-state Darcy seepage numerical model with geometric consistency with the physical model, and the governing equations are: ·( (k m / μ) p)=0; A first pressure p is applied to the preset outer surface of the outer boundary of the sample. e The outer surface without the first pressure is designated as a flow-free boundary; a second pressure p is applied to the surface of each perforation hole. w The non-perforated pipe wall and the closed end are set as flow-free boundaries; the flow inside the well is not explicitly modeled; when the ratio of the friction pressure drop inside the well to the external driving pressure difference does not exceed the preset threshold (the value is based on the coupling implementation method as shown in Example (2)), the perforation surface is approximated as the same well pressure; when the friction pressure drop cannot be ignored, the flow inside the well is included in the coupling model.
[0063] S3, Mesh Convergence Solution: The perforation orifice edge region is locally refined and meshed, and the solution is obtained. The total flow rate Q of each perforation surface is extracted using the finite element reaction flux under Dirichlet boundary conditions. The inlet and outlet mass balance error of the reaction flux does not exceed a preset threshold as the flux convergence criterion. At the same time, the direct flux integral of the perforation surface is used for verification. When the relative change of the total geometric resistance parameter between two adjacent mesh levels after progressive refinement does not exceed a preset ratio, and the deviation of the direct flux integral relative to the reaction flux decreases with mesh refinement, the orifice edge is deemed sufficiently refined, and the result of the densest mesh is taken as the calibration value.
[0064] like Figure 3 The image shown is a schematic diagram of a grid convergence verification example. Figure 3 In the middle: (a) is the convergence curve of the total geometric resistance parameter as the mesh refinement changes; (b) is the curve of the direct flux integral deviation as the mesh size at the orifice edge changes.
[0065] S4, Calculate geometric resistance parameters: Based on the reference permeability, reference fluid viscosity, pressure difference, sample characteristic thickness, and total flow rate, calculate according to S... eff =2πk m h(p e pw The total geometric drag parameters are calculated using (μQ) / (μQ); optionally, they are calculated using S. eff =S r +S comp The geometric resistance parameters are obtained through decomposition. The equivalent supply radius is only used for result decomposition or comparison display under the circular model and is not a necessary condition for inversion. Before solving, the area of the perforation surfaces is checked: the deviation between the sum of the areas of the selected perforation surfaces and the theoretical area determined by the number of perforations, the perforation diameter, and the actual three-dimensional geometry does not exceed a preset ratio to eliminate the possibility of incorrect selection of internal surfaces or omission of perforation surfaces.
[0066] Where S eff S represents the total geometric drag parameter. r For the formal radial datum term, S comp This is the combined additional geometric resistance term relative to the formal radial reference term. m Where p is the permeability of the porous medium, h is the seepage thickness, and p is the permeability of the porous medium. e To address supply-side pressures, p w S represents the pressure on the perforation surface, μ represents the fluid viscosity, and Q represents the sum of the flow rates at the perforation surface. eff Used to characterize the overall flow resistance under given device geometry and boundary conditions, not as an inherent physical property parameter of the porous media material itself. S5, Calibration Inversion Formula: Based on Seff, calibrate the coefficients of the aqueous and / or gaseous phase permeability inversion formulas. The aqueous phase formula is k. w =C w ·Q w μ w / Δp, the gas phase formula is k g =C g ·Q g,sc μ g Z·(T / T sc ) / (p e 2 p w 2 ), where C w =A w ·S eff C g =A g ·S eff C w C g A represents the final coefficients of the inversion formulas for the aqueous and gaseous phases. w A g For conversion constants between aqueous and gaseous phase engineering units; μ w μ g It refers to the viscosity of the aqueous phase and the gas phase. Q w Q g,sc These are the total volumetric flow rate of the outlet water and the standard state volumetric flow rate of the outlet gas phase, respectively. T, Tsc It refers to the experimental temperature and the standard state temperature.
[0067] For situations with a large pressure range and significant variations in the gas deviation factor Z, a pseudo-pressure difference is used instead of the simple pressure squared difference. Before calibration, parameter invariance is verified: the pressure difference, reference permeability, or reference fluid viscosity are multiplied and the solution is recalculated. If the change in the total geometric resistance parameter does not exceed a preset proportion, the model is confirmed to satisfy the parameter invariance of linear Darcy flow.
[0068] S6, Experimental Inversion: Apply a pressure difference to the physical model and measure the flow rate. Substitute the measured pressure difference, flow rate, and fluid properties into the calibrated inversion formula to obtain the permeability of the porous medium. The uncertainty range of the permeability can be output according to the first-order linear error propagation model. For cases with a large pressure range and significant changes in the gas deviation factor Z, a pseudo-pressure difference is used to replace the simple pressure squared difference.
[0069] In some specific application scenarios, the content involved in the method flow of the embodiments of the present invention will be described in conjunction with the following examples: (1) Physical model: The sample is a 0.5 m × 0.5 m × 0.1 m (x × y × z) porous medium block. The radius r of the horizontal wellbore. w =4 mm (diameter Ø8 mm), length 0.35 m, inserted from the x=0 side along the axis y=0.25 m, z=0.05 m, with the entrance located at the outer boundary of x=0, and closed at the x=0.35 m end. The perforation section is x=0.25–0.35 m, with 5 rows of perforations, row positions x=0.26, 0.28, 0.30, 0.32, 0.34 m (row spacing 2 cm), 2 perforations per row, with the two perforations in the same row spaced 180° apart, each row aligned axially without spiral, perforation diameter d=2.5 mm, for a total of 10 perforations.
[0070] (2) Numerical model: Solve the steady-state Darcy equation, with reference permeability k m =1×10 15 m 2 (Approximately 1.013 mD), reference viscosity μ = 1.05 × 10⁻⁶ 3 Pa·s; Apply p to the three sides at x=0.5 m, y=0, and y=0.5 m. e =1000 Pa is used as the supply boundary, and pw=0 is applied as the collection boundary at the 10 perforation faces; the x=0 side where the wellhead opening is located is set as a no-flow boundary except for the wellhead opening, and the top and bottom surfaces are also set as no-flow boundaries; the pressure drop along the wellhead is estimated to be approximately 1.4 × 10⁻⁶ Pa. 4 Pa (ratio of driving pressure difference is approximately 10) 7The perforation surface is obtained by dividing the borehole using a tool cylinder coaxial with the wellbore, ensuring geometric accuracy of the perforation surface. Where r... e r w These are the supply radius of an equal-area circle and the wellbore radius, respectively.
[0071] Approximate criterion and coupling implementation for wellbore pressure drop: The preset threshold is set so that the ratio of the pressure drop along the wellbore to the external driving pressure difference does not exceed 1% (it can be selected within the range of 0.1% to 5% according to the target accuracy). The basis for this value is: under linear Darcy flow, the relative deviation of the driving pressure difference at each perforation surface caused by the pressure drop along the wellbore does not exceed this ratio. This deviation is approximately equally transmitted as the system relative deviation of the total geometric resistance parameter and the inverted permeability. The combined uncertainty of the experimental measurement link is usually 2% to 5%. When synthesizing by the root of square, a system deviation of no more than 1% makes the increase in the total uncertainty no more than about 0.2 percentage points. That is, this system deviation is covered by the measurement uncertainty, and further reducing the threshold has no substantial contribution to the inversion accuracy. The pressure drop along the wellbore is estimated using the laminar flow pipe flow formula Δp. w =8μL w / (πr w 4 ),in The average flow rate along the wellbore is approximately half of the total flow rate under uniform flow conditions, L. w For the flow length within the wellbore, Δp is the flow length in this embodiment. w ≈1×10 4 Pa, which is only 10% of the driving pressure differential of 1000 Pa. 7 The magnitude is much smaller than the threshold. When the threshold is exceeded, a uniform pressure p is applied to all orifice surfaces. w Replace with friction pressure distribution p w(x) The axial pressure distribution in the wellbore is calculated using the flow rate of each perforation hole in a one-dimensional pipe flow model (Laminar flow according to the Hagen–Poiseuille formula, turbulent flow according to the Darcy–Weisbach formula). This is then used as the pressure boundary of each orifice in the external Darcy model for resolving the problem. The pressure drop in the wellbore is then updated with the new flow rate. The iteration continues until the change in the total geometric resistance parameter between two adjacent cycles does not exceed a preset proportion (e.g., 0.5%). When high-speed non-Darcy flow occurs in the wellbore, the solution can be changed to a three-dimensional Navier–Stokes equation in the wellbore domain coupled with the external Darcy seepage zone solution.
[0072] (3) Mesh convergence: The mesh size of the orifice edge features is based on the perforation radius r. h =1 / 10 of d / 2, which is 1.25 × 10 4 m is the initial value, which is halved step by step (rim) Scale=1, 0.5), degrees of freedom 473923, 760522. The total flow rate of the 10-well reaction flux extraction is Q = 3.7919 × 10⁻⁶. 11 3.7748×10 11 m 3 / s, inlet and outlet quality balance error 0.000%; direct flux integral relative deviation 16.29% and 10.79%, decreasing with grid refinement; two-level S eff The values are 15.7812 and 15.8524, with an increment of 0.45%, which is less than the preset 0.5% grid convergence threshold. Therefore, the result S calculated using the densest grid is taken. eff =15.8524 was used as the calibration value.
[0073] In this embodiment, the second-level mesh (rim) Scale =0.5, degrees of freedom 760522) and S of the first-level mesh eff The relative change rate of 0.45% first met the condition of not exceeding the preset grid convergence threshold of 0.5%, and the densification process was terminated accordingly. The second-level grid was then determined as the densest grid. The relative deviation of the direct flux integral decreased from 16.29% to 10.79%, which decreased monotonically with the densification of the grid, thus verifying that the densification direction was correct and that the flux result had entered the asymptotic convergence region.
[0074] Subsequent processing of encryption sufficiency: If the change in the encryption results between two adjacent levels still exceeds the preset ratio (0.5% in this embodiment), continue encryption until the preset mesh convergence threshold is met; if the mesh quality, geometry or boundary settings cause the result to change non-monotonically, the mesh should be checked and re-divided, and the result should not be used as the calibration value.
[0075] (4) Geometric drag parameter: S is obtained from the densest mesh result. eff =15.85; based on the equivalent supply radius r e =0.2820948m decomposition, S r =4.2559, S comp =11.60.
[0076] (5) Model validation: p e Double, k m S under three operating conditions: 10x magnification and μ-doubling eff The change was less than 0.01%; the area of the 10-hole area integral was 4.9087 × 10⁻⁶. 5 m 2 The deviation is within the range of the cylindrical surface curvature correction, ruling out incorrect selection of internal surfaces; Muskat's isolated circular orifice confluence formula estimates the flow rate of 10 orifices to be approximately 4.8 × 10⁻⁶ based on the total driving pressure difference. 11 m 3 / s, compared to the orifice flow rate of 3.77×10 in this model. 11 m 3 The difference is on the same order of magnitude as / s, reflecting the actual flow resistance caused by the combined effects of finite boundaries, scattering apertures, and inter-aperture interference.
[0077] (6) Formula calibration and experimental inversion: In this embodiment, permeability is expressed in mD, Q w and Q g,sc In mL / min, μ w and μ g In mPa·s, Δp, p e and p w The characteristic thickness h of the sample is 0.10 m in MPa; the engineering unit conversion constant A w =0.0268773、A g =0.00544668, calibrated to C w =0.4261, C g =0.08634. Aqueous phase experiments were conducted according to k... w =0.4261·Q w μ w / Δp, gas phase experiments according to k g =0.08634·Q g,sc μ g Z·(T / T sc ) / (p e 2 p w 2 Invert permeability. If the characteristic thickness, unit system, geometry, or boundary conditions of the sample are changed, the corresponding coefficients should be recalibrated.
[0078] Error propagation model: First-order linear error propagation (partial derivative method, combined according to the root sum of squares of GUM). The exponents of each input quantity in the aqueous phase formula are ±1, and the relative combined standard uncertainty is: ur(k w )=√[(u(Q w ) / Q w ) 2 +(u(μ w ) / μ w ) 2 +(u(Δp) / Δp) 2 +(u(C w ) / C w ) 2 ] Where √[·] represents taking the square root of the value in [·].
[0079] Gas phase formula for p e 2 p w 2 Taking the partial derivative, we get: ur(k g ) = √[(u(Q g,sc ) / Q g,sc ) 2 + (u(μ g ) / μ g ) 2 + (u(Z) / Z) 2 + (u(T) / T) 2 + (2p e ·u(p e ) / (p e 2 p w 2 )) 2 + (2p w ·u(p w ) / (p e 2 p w 2 )) 2 + (u(Cg) / Cg) 2 ] The error sources include: (i) numerical calibration uncertainty u(C) w ), u(C g (ii) The uncertainty of the experimental measuring instruments, including the systematic and random errors of pressure or differential pressure sensors (according to their accuracy class), flow meters, and thermometers; (iii) The machining and measurement deviations of the sample geometry. Under normal operating conditions, each input quantity is considered to be uncorrelated and synthesized according to the square root; when the differential pressure is directly measured by the differential pressure sensor, the uncertainty of the differential pressure gauge is taken to avoid p e With p w The correlation between them is repeatedly taken into account. For more refined evaluation, Monte Carlo simulation can be used to sample and synthesize the distributions of each input quantity as an alternative to the linear method described above.
[0080] (7) Comparison of different inversion methods under the same parameters and experimental conditions (virtual experiment verification): The model set the permeability as 1.013 mD as the true value and the model flow rate as Q = 3.7748 × 10 11 m 3 / s represents the virtual experimental measurement value, as shown in Table 1 below, which represents the three back-substitution inversion methods: Table 1
[0081] (8) Calibration Database: For 12 working conditions with 3 types of horizontal wellbore diameter × 4 types of perforation layout, batch calibration was performed under the same supply boundary, scattering hole flow collection boundary and no-flow boundary conditions; each working condition was gradually refined at the orifice edge, and after the results of two adjacent levels met the preset grid convergence threshold, the calculation result of the densest grid was taken as the geometric resistance calibration value of the corresponding working condition: Table 2
[0082] As shown in Table 2, the geometric resistance of the two perforation arrangements (180° opposite and 120° phase) around the entire circumference is almost the same and lowest (the difference is less than 0.1%). The arrangement concentrated on one side of the wellbore (120° inner spiral, single row on the same generatrix) has a resistance of about 3% to 6%, indicating that the key to determining the geometric resistance is whether the perforation utilizes the entire circumference rather than a specific phase angle. When the diameter of the horizontal wellbore increases, because the diameter remains unchanged and the perforation distribution becomes sparser in the circumferential direction, S... comp The increase exceeds the radial term S r With the reduction of diameter, the total geometric resistance parameter increases by approximately 1% to 4% for every 2 mm increase in pipe diameter. This database can be directly used for equipment selection and reverse engineering.
[0083] (9) Reverse Design Example and Quantitative Design Criteria: Based on the 12-condition calibration database of Example (8), the weight of each arrangement parameter on the geometric resistance parameter is ranked as follows: perforation circumferential coverage (3% to 6% higher for single-sided concentrated arrangement than for full circumferential distribution) > horizontal wellbore diameter (for every 2 mm increase from Ø6 mm to Ø10 mm, S eff Increase by about 1% to 4%) > phase angle (less than 0.1% under the same coverage, which can be ignored); the aperture affects the convergence intensity at the aperture edge through its ratio to the pipe diameter, and the number of rows and row spacing are mainly reflected by coverage and inter-aperture interference. The semi-quantitative design criterion is: given the target geometric resistance parameters, first select the arrangement level according to the circumferential coverage (number of holes per row and phase arrangement), then adjust the aperture, number of rows or number of holes per row according to the sensitivity ranking (λ absolute value 1.2 to 1.5, see (10) (11)), and finally fine-tune the inter-aperture interference with the row spacing; the pipe diameter sensitivity is low (λ≈0.18) and is constrained by the pipe material specifications, so it is generally not used as an adjustment means. The reverse engineering implementation process employs a layered parameter scanning (gradient-based algorithms are not suitable because the number of rows and the number of holes per row are discrete integer parameters): ① Repeat steps S2 to S5 on the parameter grid of pipe diameter × layout × hole diameter × number of rows to establish a database; ② Retrieve the parameter combination closest to the target value from the database and use it as the center of a local densification scan; ③ The termination criterion is the S value of the candidate combination.comp The absolute value of the difference from the target value should not exceed a preset design threshold. For example, target S. comp When Scomp = 12.0, the Ø8 mm full-circle arrangement (Scomp = 11.60) is too low, and the Ø8 mm single-sided concentrated arrangement (S... comp =12.25~12.29) is too high; Ø10 mm full circumferential arrangement S comp =12.03, which is 0.25% different from the target. It can be used as a candidate combination to meet the 0.5% design threshold. If necessary, a local scan will be performed to determine the specific combination.
[0084] (10) Formula for sensitivity coefficient of geometric parameters: In order to quantitatively compare the influence weight of each perforation arrangement parameter on the geometric resistance parameter, the parameter is defined. (Number of rows M, number of holes per row N, hole diameter d, phase angle θ, row spacing L, etc.) for S comp The relative sensitivity coefficient (dimensionless elasticity coefficient) is Its physical meaning is parameters The percentage change in Scomp caused by a 1% relative change. Since the number of rows and the number of holes per row are integer discrete parameters, and S... comp Without an analytical expression, the sensitivity coefficient is implemented on a three-dimensional numerical model using the single-factor rotation (OFAT) central difference method. That is, only one parameter is changed each time, while the other parameters remain fixed at the reference condition, respectively. ± Repeat steps S2 to S5 to solve and calculate S. comp Substituting into the above formula, we get ;| The larger the value, the higher the weight of this parameter on the geometric drag parameter, and it should be adjusted first during reverse design. The selection of the differential step size Δxi should make S... comp The difference value is significantly greater than the preset mesh convergence threshold; the minimum integer step size is taken for integer parameters, and 10% to 25% of the reference value is taken for continuous parameters (aperture, row spacing, phase angle).
[0085] (11) Establishment and backfilling of complete sensitivity data table: Under the reference working condition (in this embodiment, it is 5 rows × 2 holes per row, hole diameter 2.5 mm, well radius 4 mm, 180° opposite, row spacing 2 cm, reference S comp =11.60) Based on the central difference scheme of (10), OFAT parameter scanning was performed on the aperture (1.5~4 mm), number of rows (3~6), number of holes per row (1~4), phase angle (0°~180°), and row spacing (1~3 cm) respectively (a total of 26 working conditions, including pipe diameter Ø6~Ø10 mm for comparison). Steps S2~S5 were repeated for each working condition, and the flux reliability was guaranteed by reaction flux and mesh convergence criterion. The sensitivity coefficients λ of each parameter were obtained.i The data are listed in a complete sensitivity data table (refer to Table 3); after merging Table 3 with the 12 working condition database of Example (8), it covers all five types of layout parameters and serves as a quantitative basis for prioritizing parameter adjustments during reverse design. The actual measurement results after scanning and backfilling are shown in the table below: the absolute values of the sensitivity coefficients of the number of holes, hole diameter, and number of rows are all between 1.2 and 1.5, which belong to the first tier and should be prioritized for adjustment during reverse design; the well shaft radius λ≈+0.18 is usually determined by the pipe material specifications and is not suitable as an adjustment method; the row spacing λ≈ 0.08, used only for fine-tuning; the effect of the phase angle (0.1%) is less than the calibration uncertainty and can be ignored, and can be freely selected according to process convenience. The negative sign indicates that increasing this parameter makes S... comp Decrease (increasing the number of orifices and increasing the orifice diameter reduces the flow resistance); λ i For the central difference result, the difference step size is taken as 20% to 25% of the baseline value.
[0086] Table 3
[0087] (12) Non-circular and long tubular devices: When the sample is a non-circular cross section or a long tubular device, a three-dimensional numerical model is established according to the actual cross section shape, length and boundary conditions. The coefficients of the inversion formula are directly determined by the total geometric resistance parameters, without the need for equivalent supply radius or shape factor assumptions.
[0088] (13) Simulation of horizontal well production process: The horizontal well shaft is horizontally buried in the middle of the sample, with the open end located at the outer boundary of the sample (equivalent to the horizontal well heel end) and the end closed (equivalent to the horizontal well toe end). The fluid flows into the well only through the scattering holes of the perforated section, thus reproducing the flow regime of horizontal well perforation completion production.
[0089] In summary, this invention utilizes three-dimensional scattering perforation numerical calibration to correct the permeability inversion formula coefficients for experimental devices rather than field wells, forming a complete method for establishing a geometrically consistent model, solving the grid convergence problem, calculating total geometric resistance parameters, calibration coefficients, and performing measured inversion. This method ensures that the densest grid results used for calibration meet the preset grid convergence criteria through Dirichlet boundary reaction flux extraction, mass balance criteria, local densification of perforation edges, verification of perforation surface area, and parameter invariance. Furthermore, it can establish a perforation layout-geometric resistance calibration database, supporting coefficient lookup and reverse design of the device perforation layout based on target geometric resistance parameters.
[0090] Compared with the prior art, the present invention has at least the following beneficial effects: 1. Good closed-loop consistency: Under the same parameters and boundary conditions, substituting the flow rate of the numerical model back into the calibration formula of this invention can restore the preset reference permeability within the output accuracy range; compared with the radial flow formula or the positional resistance parameter that does not take into account the actual geometric resistance, it can reduce the system deviation caused by the geometric model mismatch.
[0091] 2. Verifiable numerical results: The calibration results are evaluated by reaction flux extraction, mass balance test and stepwise grid convergence criterion, and the calculation result of the densest grid that meets the preset grid convergence threshold is taken as the calibration value; 3. Wide range of applications: It can calibrate any perforation arrangement, diameter, pipe diameter and sample shape (rectangular and other non-circular, long pipe type devices), and can simulate the horizontal well perforation completion and production process; 4. A perforation layout-geometric resistance database is established, supporting table lookup for coefficients and reverse design of devices based on target geometric resistance. This invention also provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0092] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0093] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0094] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0095] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0096] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0097] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0098] The present invention provides a method, electronic device, storage medium, and program product for simulating the flow of scattering holes in a horizontal well, and includes a porous medium permeability measurement and inversion method. The method involves constructing a physical model by forming a block-shaped sample of porous medium and inserting a horizontal well casing inside the sample. One end of the horizontal well casing is open and connected to an external fluid pipeline, while the other end is closed. Multiple discrete perforations are provided on the wall of a pre-defined perforated section of the horizontal well casing. A pre-defined pressure is applied to the physical model, and a three-dimensional steady-state Darcy flow numerical model is used to establish a three-dimensional numerical model. A numerical model is used; wherein the preset pressure includes a first pressure applied to the preset outer surface of the outer boundary of the sample and a second pressure applied to the orifice surface of each of the perforations; based on the three-dimensional numerical model, a multi-level local fine mesh is generated in the orifice edge region of each of the perforations using a preset mesh size; wherein, the mesh size of each level of the local fine mesh decreases progressively in the multi-level local fine mesh; steady-state Darcy flow is solved for each level of the local fine mesh, the orifice surface flow rate of each of the perforations under each level of the local fine mesh is extracted, and then the perforation at each level of the local fine mesh is obtained by summation. The sum of the flow rates at the perforation surfaces corresponding to each level of the local dense grid is used to calculate the total geometric resistance parameter corresponding to each level of the local dense grid. Based on a preset reference permeability, a preset reference fluid viscosity, the first pressure, the second pressure, the characteristic thickness of the sample, and the sum of the flow rates at the perforation surfaces corresponding to each level of the local dense grid, the total geometric resistance parameter corresponding to each level of the local dense grid is converted. The relative rate of change is quantified based on the total geometric resistance parameter corresponding to two adjacent levels of the local dense grid. When the relative rate of change exceeds a preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multiple levels of local dense grids at the orifice edge region of each perforation using the preset grid size, until the relative rate of change does not exceed the preset grid convergence threshold. The local dense grid with the smaller grid size among the two adjacent levels of the local dense grid corresponding to the relative rate of change is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as a calibration value. The coefficients of the permeability inversion formula are calibrated according to the calibration value to obtain the calibrated target inversion formula. A displacement pressure difference is applied to the physical model, and the experimental flow rate is measured. The permeability of the porous medium is then quantified using the target inversion formula. This invention constructs a physical model of a blocky sample with a closed end and a perforation wellbore, and establishes a geometrically consistent three-dimensional steady-state Darcy numerical model. Using the first pressure at the outer boundary and the second pressure at the perforation surface as boundary conditions, the total flow rate at the perforation surface is extracted to calculate the total geometric resistance parameters. The flux convergence is ensured by using the inlet and outlet mass balance error and the grid convergence criterion. The total geometric resistance parameters corresponding to the densest grid that meets the preset grid convergence threshold are taken as calibration values. At the same time, the calibration uncertainty is evaluated, and then the coefficients of the permeability inversion formula are calibrated before experimental inversion.Therefore, it is possible to accurately account for the additional flow resistance caused by the scattering holes, reduce the permeability inversion deviation caused by the use of ideal radial flow or occupancy resistance parameters, and provide a reliable basis for permeability measurement under the confluence conditions of scattering holes in bulk samples.
[0099] The embodiments described in this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.
[0100] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present invention, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0101] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0102] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0103] The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of the present invention should be within the scope of the claims of the present invention.
Claims
1. A method for multi-porosity medium permeability measurement and inversion for simulating discrete perforation convergence in horizontal wells, characterized in that, The method includes the following steps: A porous medium is made into a block-shaped sample, and a horizontal well casing is placed inside the sample to construct a physical model; wherein, one end of the horizontal well casing is open and connected to an external fluid pipeline, the other end of the horizontal well casing is closed, and multiple discrete perforations are provided on the pre-perforated section of the horizontal well casing. A preset pressure is applied to the physical model, and a three-dimensional numerical model is established using a three-dimensional steady-state Darcy flow numerical model; wherein, the preset pressure includes a first pressure applied to the preset outer surface of the outer boundary of the sample and a second pressure applied to the surface of each of the perforations; Based on the three-dimensional numerical model, a multi-level local densification grid is generated in the edge region of each of the perforations using a preset grid size; wherein, the grid size of each level of the multi-level local densification grid decreases progressively. Steady-state Darcy flow solution is performed on each level of the local densification grid to extract the perforation surface flow rate of each perforation under each level of the local densification grid. Then, the sum of the perforation surface flow rates of each perforation under each level of the local densification grid is obtained by summing. Based on a preset reference permeability, a preset reference fluid viscosity, a first pressure, a second pressure, a characteristic thickness of the sample, and the sum of the flow rates at the perforation surfaces corresponding to each level of the local densification grid, the total geometric resistance parameters corresponding to each level of the local densification grid are obtained. The relative rate of change is quantified based on the total geometric resistance parameters corresponding to two adjacent levels of the local densification grid. When the relative rate of change exceeds a preset grid convergence threshold, the preset grid size is reduced, and the process returns to the step of generating multi-level local densification grids at the orifice edge region of each perforation using the preset grid size, until the relative rate of change does not exceed the preset grid convergence threshold. The local densification grid with the smaller grid size among the two adjacent levels of the local densification grids corresponding to the relative rate of change is determined as the densest grid, and the total geometric resistance parameter corresponding to the densest grid is used as a calibration value. The coefficients of the permeability inversion formula are calibrated based on the calibration values to obtain the calibrated target inversion formula; Displacement pressure differential is applied to the physical model and experimental flow rate is measured. The permeability of the porous medium is then quantified using the target inversion formula.
2. The method of claim 1, wherein, The method further includes the following steps: The setting parameters of the perforation are determined based on the preset target geometric resistance parameters; The setting parameters include the number of rows, the number of holes per row, the hole diameter, the phase angle, and the row spacing; Based on the setting parameters, the perforations in the same row are distributed circumferentially, and the perforations in each row are spaced apart axially. The horizontal well casing is horizontally embedded inside the sample.
3. The method of claim 1, wherein, The outer boundary of the sample includes multiple outer surfaces, and the application of a preset pressure to the physical model includes the following steps: The first pressure is applied to at least one outer surface of the outer boundary of the sample, excluding the opening of the horizontal wellbore, as the inlet boundary. The second pressure is applied to the surface of each of the perforations as a flow collection boundary; wherein the perforations are connected to external fluid pipelines through the internal space of the horizontal wellbore; The non-perforated pipe wall of the horizontal well casing, the closed end of the horizontal well casing, and the outer surface of the outer boundary of the sample where the first pressure is not applied are set as flow-free boundaries, so that the fluid or gas in the sample can only flow into the horizontal well casing through the perforation.
4. The method of claim 1, wherein, The process of converting the total geometric resistance parameters corresponding to each level of the localized densification grid into the sum of preset reference permeability, preset reference fluid viscosity, first pressure, second pressure, characteristic thickness of the sample, and perforation surface flow rate corresponding to each level of the localized densification grid includes the following steps: The first value is obtained based on the difference between the first pressure and the second pressure; The second value is obtained by multiplying the reference permeability, the characteristic thickness, the first value, and twice pi. The third value is obtained by multiplying the reference fluid viscosity by the total flow rate over the orifice. Based on the ratio of the second value to the sum of the perforation flow rates corresponding to each level of the local densification grid, the total geometric resistance parameter corresponding to each level of the local densification grid is obtained.
5. The method of claim 1, wherein, After establishing the three-dimensional numerical model, the method further includes the following steps: The area of the perforation surface under the second pressure is checked to ensure that the deviation between the sum of the areas of the perforation surfaces and the preset theoretical area does not exceed a preset area threshold; wherein, the theoretical area is determined by the number of perforations, the diameter of the perforations, and the actual geometry of the perforation surface in the three-dimensional numerical model; After obtaining the calibrated value of the total geometric drag parameter, the total geometric drag parameter is decomposed into a formal radial reference term and a comprehensive additional geometric drag term relative to the formal radial reference term.
6. The method of claim 1, wherein, The process of calibrating the coefficients of the permeability inversion formula based on the calibration values to obtain the calibrated target inversion formula includes the following steps: When the preset pressure is applied based on the water phase, the calibration value of the total geometric resistance parameter is converted into the first coefficient of water phase permeability inversion through the engineering unit conversion constant of the water phase, so as to construct the calibrated water phase permeability inversion formula. When the preset pressure is applied based on the gas phase, the calibrated value of the total geometric resistance parameter is converted into the second coefficient of gas phase permeability inversion through the engineering unit conversion constant of the gas phase, so as to construct the calibrated gas phase permeability inversion formula.
7. The method of claim 1, wherein, The target inversion formula includes an aqueous phase permeability inversion formula and a gas phase permeability inversion formula. The coefficients of the permeability inversion formula include a first coefficient of the aqueous phase permeability inversion formula and a second coefficient of the gas phase permeability inversion formula. The step of applying a displacement pressure difference to the physical model and measuring the experimental flow rate, and then using the inversion formula to quantify the permeability of the porous medium, includes the following steps: When a displacement pressure difference is applied to the physical model by water, the water phase flow rate is measured and the corresponding water phase viscosity, the third pressure applied by the water phase to the preset outer surface of the outer boundary of the sample, and the fourth pressure applied to the orifice surface of each of the perforations are obtained. Substituting the water phase flow rate, water phase viscosity, third pressure, and fourth pressure into the water phase permeability inversion formula, and using the product of the first coefficient, the water phase flow rate, and the water phase viscosity as the numerator, and the pressure difference between the third pressure and the fourth pressure as the denominator, the porous medium water phase permeability is calculated. When a displacement pressure difference is applied to the physical model by the gas phase, the standard state flow rate of the gas phase is measured and the gas phase viscosity, gas deviation factor, experimental temperature, standard state temperature, fifth pressure applied by the gas phase to the preset outer surface of the outer boundary of the sample, and sixth pressure applied to the orifice surface of each of the perforations are obtained. Substituting the gas phase standard state flow rate, gas phase viscosity, gas deviation factor, experimental temperature, standard state temperature, fifth pressure, and sixth pressure into the gas phase permeability inversion formula, and using the product of the second coefficient, the gas phase standard state flow rate, the gas phase viscosity, the gas deviation factor, and the temperature ratio as the numerator, and the difference between the square of the fifth pressure and the square of the sixth pressure as the denominator, the porous medium gas phase permeability is calculated; wherein, the fifth pressure and the sixth pressure are both absolute pressures, and the temperature ratio is determined based on the ratio of the experimental temperature to the standard state temperature; Based on the first-order linear error propagation model, the root sum of squares is synthesized using the numerical calibration uncertainty corresponding to the calibration value, the systematic error and random error of the measurement process as error sources, to obtain the uncertainty range of the water phase permeability and the gas phase permeability of the porous medium. The system errors include input errors in pressure, flow rate, temperature, and fluid viscosity.
8. The method of claim 1, wherein, Before constructing the physical model, the method further includes the following steps: Based on the preset target geometric resistance parameters, the setting parameters of the perforation corresponding to the target geometric resistance parameters are determined by looking up a table or interpolating in a preset calibration database. The calibration database is configured through the mapping relationship between the setting parameters and the total geometric resistance parameters. The mapping relationship is constructed by establishing a three-dimensional numerical model for multiple experimental physical models with different horizontal well diameters and different setting parameters, and determining the calibration value of the total geometric resistance parameters.
9. The method of claim 8, wherein, The method further includes the following steps: By iterating through each of the aforementioned setting parameters, the single-factor rotating central difference method is used to solve the total geometric resistance parameter when the corresponding setting parameter takes different values through the three-dimensional numerical model corresponding to the setting parameter, thereby determining the sensitivity coefficient of each of the aforementioned setting parameters; When determining the setting parameters based on the target geometric resistance parameters, the setting parameter with the largest absolute value of the sensitivity coefficient is adjusted first.
10. The method of claim 1, wherein, The method further includes the following steps: When the physical model corresponds to a sample with a non-circular cross-section or a long tubular device, the three-dimensional numerical model is established based on the geometric model corresponding to the actual cross-sectional shape and length of the sample. In this design, the horizontal well casing is horizontally embedded inside the sample. The open end of the horizontal well casing is located at the outer boundary of the sample as the heel end, and the closed end of the horizontal well casing is located as the toe end. In the step of applying a preset pressure to the physical model, the fluid flows into the well only through the discrete perforations on the perforated section wall, in order to simulate the flow regime under the horizontal well perforation completion and production process.
