Multi-grid solving method for mixed storage structure of oil reservoir pressure equation
By combining the multi-grid solution method with structural matrix and sparse compressed row storage format in the reservoir pressure equation, the problem of low resolution efficiency of complex reservoir pressure equations is solved, and efficient solution of reservoir pressure equations is achieved, and the calculation efficiency is improved and convergence speed.
Patent Information
- Application Number
- CN202310568591.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
The existing reservoir pressure equation solution method has poor convergence effect on complex PDEs discrete systems, especially in the problem of chemical oil and gas reservoirs, which is difficult to effectively improve the solution efficiency.
Using a multi-grid solution method for mixed storage structures for reservoir pressure equations, AMG-V-Cycle cycle is performed by combining structural matrix (STR) and sparse compressed row (CSR) storage formats, using Gauss Seidel or Jacques Binder Optical operations and matrix vector product linear operations to improve calculation efficiency.
The efficiency of solving reservoir pressure equations is significantly improved, the universality of the multi-grid method and the fast convergence speed are maintained, and the computing efficiency and memory hit rate are improved through the advantages of the structural matrix.
Smart Images

Figure CN119004743A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of oil reservoir numerical simulation algorithm research and technical application technology, and in particular to a multi-grid solution method for a mixed storage structure of an oil reservoir pressure equation. Background Art
[0002] The research on numerical reservoir simulation can be traced back to the 1950s and gradually developed in the late 1970s. Various mathematical models of reservoirs have been established, such as black oil models, component models, thermal recovery models and chemical flooding models. Among them, the black oil model is the basic model to describe reservoir simulation problems, and the chemical flooding model is usually expanded on the basis of the black oil model.
[0003] Solving the pressure equation is a key step in the preconditioning process, and AMG is mainly used to solve it. The AMG method is currently an extremely effective method for solving large-scale PDEs discrete algebraic systems internationally. It was proposed by Brandt et al. in the early 1980s and has been greatly developed and applied in recent years. At present, various AMG methods have emerged, such as the RS-AMG method based on strong and weak connectivity, the AMG method based on the aggregation method (AGAMG method), the adaptive AMG method, and the AMG method based on the Falgout coarsening algorithm, the HMIS coarsening algorithm and the long-distance interpolation algorithm. Among them, the AGAMG method has become a hot topic in the research field of the AMG method because of its low algorithm complexity and better suitability for heterogeneous systems. These AGAMG methods have good convergence effects on some simple scalar partial differential equation discrete algebraic systems. However, for complex PDEs discrete systems, such as the pressure equation of chemical flooding oil and gas reservoir problems, the convergence effect is not satisfactory and deserves further study.
[0004] In the Chinese patent application with application number: CN201710702432.0, a method and system for rapid analysis of remaining oil in fracture-cavity reservoirs is involved, which includes establishing a mathematical model of fracture-cavity reservoirs; dividing the fracture-cavity reservoirs into grid units, and establishing a numerical model based on the mathematical model; iteratively solving the numerical model, and analyzing the remaining oil in the fracture-cavity reservoir according to the distribution of fluid pressure and saturation used to describe the fracture-cavity reservoir; wherein, in each iterative step of iteratively solving the numerical model, it includes: extracting the oil phase pressure equation from the numerical model based on the characteristics of the grid unit; processing the oil phase pressure equation based on the algebraic multigrid algorithm to obtain a first pressure value; and using the first pressure value as the initial solution when iterating the numerical model. By adopting this method, the remaining oil in fracture-cavity reservoirs can be rapidly and effectively analyzed.
[0005] In the Chinese patent application with application number: CN201710321462.7, a method for numerical simulation of oil reservoirs is involved, which includes: determining a preliminary near-well region according to the near-well effect occurrence region; determining the pressure equipotential lines in the preliminary near-well region according to the wellbore diameter and the seepage equation when the wellbore production reaches a steady state; determining the final near-well region according to each pressure equipotential line; establishing a near-well coarse grid model of the final near-well region according to the pressure equipotential lines in the final near-well region; establishing a far-well region model for the oil reservoir region outside the final near-well region; determining a seepage model about the oil reservoir numerical value according to the near-well coarse grid model and the far-well region model to predict the pressure distribution and production of the oil reservoir region. The invention first determines the preliminary near-well region according to the near-well effect occurrence region, and then determines the final near-well region according to the pressure equipotential lines in the preliminary near-well region, so that the near-well coarse grid model of the final near-well region can not only accurately simulate the influence of the near-well effect, but also has a small number of grids and a small amount of calculation.
[0006] In the Chinese patent application with application number: CN201610621336.9, a method and device for simulating a black oil reservoir is involved. The method includes: establishing a component model describing the seepage law of black oil reservoir fluid based on component seepage parameters; numerically discretizing the component model based on the data required for black oil simulation based on the black oil model to obtain a component numerical model based on the discrete grid of the black oil reservoir geological model; establishing a component phase equilibrium parameter table using fluid PVT data; flashing and calculating the fluid phase state and corresponding physical property parameters based on the component phase equilibrium parameter table and the estimated value of the component seepage parameter; adjusting the component numerical model based on the fluid phase state and the corresponding physical property parameters; calculating the reservoir pressure change value and the saturation change value of each fluid phase using the estimated value of the component seepage parameter and the adjusted component numerical model; judging whether the reservoir pressure change value and the saturation change value of each fluid phase converge, if so, calculating the reservoir pressure and the saturation of each fluid phase. The invention can improve the scalability of the reservoir numerical simulation architecture.
[0007] The above existing technologies are greatly different from the present invention and fail to solve the technical problem we want to solve. For this reason, we have invented a new multi-grid solution method for the hybrid storage structure of the reservoir pressure equation. Summary of the invention
[0008] The purpose of the present invention is to provide a multi-grid solution method for a mixed storage structure of a reservoir pressure equation, which can significantly improve the solution efficiency of the reservoir pressure equation.
[0009] The object of the present invention can be achieved by the following technical measures: a multi-grid solution method for a hybrid storage structure of a reservoir pressure equation, the multi-grid solution method for a hybrid storage structure of a reservoir pressure equation comprises:
[0010] Step 1, calculate and obtain the initial solution vector and the corresponding residual vector on the finest grid layer;
[0011] Step 2, restrict the residual vector on the fine grid layer to the coarse grid layer;
[0012] Step 3, calculate and obtain the initial solution vector residual vector on the corresponding coarse grid;
[0013] Step 4, lifting the solution vector on the coarse grid layer to the corresponding fine grid layer;
[0014] Step 5: Calculate the solution vector and the corresponding residual vector on the finest grid layer to complete a complete AMG-V-Cycl e cycle.
[0015] The purpose of the present invention can also be achieved by the following technical measures:
[0016] The multi-grid solution method for the mixed storage structure of the reservoir pressure equation also includes, before step 1, for the chemical flooding reservoir model, discretizing the algebraic system based on the three-dimensional structure grid using a 7-point central difference format, wherein the reservoir matrix is composed of 7 bands, namely, C, E, W, S, N, T and B, C represents the unit center, E and W represent its east-west direction respectively, S and N represent its north-south direction respectively, and T and B represent its up-down direction respectively.
[0017] In step 1, the finest grid, i.e., the coefficient matrix of the 0th layer, is stored in the structured matrix STR mode, and the initial solution vector and the corresponding residual vector on the finest grid layer are obtained by using Gauss-Seidel or Jacobi polishing operations based on the STR mode and matrix-vector product linear operations.
[0018] In step 1, since the reservoir matrix has a 7-band structure and the edging matrix corresponding to the implicit wells has the characteristics of symmetry and small size, the structural matrix and the two-dimensional array are used to store the above two matrices respectively.
[0019] In step 1, n is used to represent the number of effective units, nwel l represents the total number of wells, and nxy = nx*ny, where nx and ny are the number of units in the x and y directions respectively; o represents a non-zero element, and m is the maximum number of perforations in a well; in order to ensure that a sparse structure of the reservoir and well edge matrix can be formed, it is necessary to introduce a mapping map into the two-dimensional array, map (s, t) represents the grid unit number where the tth perforation of the sth well is located, s = 1, ..., nwel l, t = 1, ..., m, and the calculation formula is:
[0020] map(s,t)=[KWC(s,t)-1]*nxy+[JWC(s,t)-1]*nx+IWC(s,t),
[0021] Where IWC(s,t), JWC(s,t) and KWC(s,t) represent the grid cell numbers of the tth perforation in the sth well in the x, y and z directions, respectively.
[0022] In step 2, the residual vectors on the fine grid layer are restricted to the coarse grid layer using a restriction operator based on the CSR storage format.
[0023] In step 3, using the coarse grid matrix based on the CSR storage format and the residual vector restricted in step 2, Gauss-Seidel or Jacobi polishing operations and matrix-vector product linear operations are performed to obtain the initial solution vector residual vector on the corresponding coarse grid.
[0024] In step 4, the solution vector on the coarse grid layer is promoted to the corresponding fine grid layer using a promotion operator based on the CSR storage format; calculations are performed from the coarse grid to the fine grid in sequence, and when the finest grid is reached, the process enters step 5.
[0025] In step 5, the finest grid, i.e., the coefficient matrix of the 0th layer, is stored in the structured matrix STR method, and Gauss-Seidel or Jacobi polishing operations based on the STR method and matrix-vector product linear operations are used to obtain the solution vector and the corresponding residual vector on the finest grid layer, completing a complete AMG-V-Cycle cycle.
[0026] In step 5, if the solution vector meets the accuracy requirement, the solution process ends, otherwise the process enters step 1 to continue the next AMG-V-Cycle cycle.
[0027] The multigrid method is the most effective method for solving large-scale elliptic partial differential equations discretized into linear algebraic equations. It has the characteristics of strong universality (only the coefficient matrix information is needed) and fast convergence speed (the number of iterations is almost independent of the grid size). In order to improve the adaptability of this method to complex problems, it usually adopts the sparse compressed row (CSR) storage format and performs grid coarsening and other operations based on the adjacency graph of the coefficient matrix. However, due to the randomness and wide distribution of the non-zero column numbers in the row of the CSR format matrix, the memory hit rate is often low during its basic operations, which affects the efficiency of the solution method. The structure (STR) matrix usually uses several one-dimensional arrays of equal length to store and calculate the non-zero elements of the matrix, which has the characteristics of smaller storage and higher calculation efficiency. The pressure equation of the reservoir problem belongs to the elliptic partial differential equation, which is suitable for efficient solution using the multigrid method; the reservoir units and wells of the reservoir problem have strong structural characteristics, and the use of the edge-added structure matrix for storage and calculation is more advantageous than the CSR matrix. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation in the present invention proposes a multi-grid solution method based on the hybrid storage format according to the characteristics of low access complexity and high computational efficiency of the structure matrix. This method not only maintains the universality and fast convergence speed of the multi-grid method, but also gives full play to the storage and computational advantages of the structure matrix. The correctness and efficiency of the new method are verified by numerical experiments. Compared with the traditional numerical solution method, the computational efficiency of this solution method is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of a three-dimensional seven-point template of a reservoir unit in a specific embodiment of the present invention;
[0029] Figure 2 It is a schematic diagram of the oil field and the border matrix structure in a specific embodiment of the present invention;
[0030] Figure 3 A schematic diagram of a structure matrix storage in a specific embodiment of the present invention;
[0031] Figure 4 It is a schematic diagram of storing a part of the well perforation unit in the structure matrix in a specific embodiment of the present invention;
[0032] Figure 5 A flowchart of a specific embodiment of the multi-grid solution method (AMG-V-Cycle) for a hybrid storage structure of reservoir pressure equations according to the present invention;
[0033] Figure 6 It is a schematic diagram of error reduction curves of three solution methods for the Y8 example in a specific embodiment of the present invention;
[0034] Figure 7It is a schematic diagram of error reduction curves of three solution methods for the T28-5M example in a specific embodiment of the present invention;
[0035] Figure 8 Schematic diagram of error reduction curves of three solution methods for the T28-10M example in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0036] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations and / or combinations thereof.
[0038] like Figure 5 As shown, Figure 5 The flowchart of the multi-grid solution method for the hybrid storage structure of the reservoir pressure equation of the present invention. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation includes:
[0039] In step 101, the coefficient matrix of the finest grid (0th layer) is stored in the structured matrix STR method, and the Gauss-Seidel or Jacobi polishing operation based on the STR method and the matrix-vector product linear operation are used to obtain the initial solution vector and the corresponding residual vector on the finest grid layer; the process enters step 102.
[0040] In step 102 , the residual vector on the fine grid layer is restricted to the coarse grid layer using a restriction operator based on the CSR storage format; the process proceeds to step 103 .
[0041] In step 103, the coarse grid matrix based on the CSR storage format and the residual vector restricted in step 102 are used to perform Gauss-Seidel or Jacobi polishing operations and matrix-vector product linear operations to obtain the initial solution vector residual vector on the corresponding coarse grid; the process enters step 104.
[0042] In step 104, the solution vector on the coarse grid layer is promoted to the corresponding fine grid layer using a promotion operator based on the CSR storage format; calculations are performed from the coarse grid to the fine grid in sequence, and when the finest grid is reached, the process enters step 105.
[0043] In step 105, the coefficient matrix of the finest grid (0th layer) is stored in the structured matrix STR method, and Gauss-Seidel or Jacobi polishing operations based on the STR method and matrix-vector product linear operations are used to obtain the solution vector and the corresponding residual vector on the finest grid layer to complete a complete algebraic multigrid V-cycle, namely the AMG-V-Cycle cycle; if the solution vector meets the accuracy requirements, the solution process ends, otherwise the process enters the left side of step 101 to continue the next AMG-V-Cycle cycle.
[0044] The following are several specific embodiments of the present invention.
[0045] Example 1
[0046] In a specific embodiment 1 of the present invention, the multi-grid solution method for the hybrid storage structure of the reservoir pressure equation includes the following steps:
[0047] 1. For the chemical flooding reservoir model, a 7-point grid is used based on the 3D structure (see Figure 1 ) The central difference format is used to discretize the algebraic system (the matrix structure is shown in Figure 2 ), where the reservoir matrix consists of seven bands: C, E, W, S, N, T and B. C represents the unit center, E and W represent its east-west direction, S and N represent its north-south direction, and T and B represent its up-down direction.
[0048] 2. Since the reservoir matrix has a 7-band structure and the edging matrix corresponding to the implicit well has the characteristics of symmetry and small scale, the structural matrix (STR, see Figure 3 ) and two-dimensional arrays (see Figure 4 ) for storage. Figure 3 The dark part in the middle is the effective storage, where n represents the number of effective units, nwell represents the total number of wells, and nxy = nx*ny, where nx and ny are the number of units in the x and y directions, respectively. Figure 4 o represents a non-zero element, and m is the maximum number of perforations in a well. In order to ensure that a sparse structure of the reservoir and well edge matrix can be formed, it is necessary to introduce a mapping map into the two-dimensional array. Map (s, t) represents the grid unit number where the tth perforation of the sth well is located, s = 1, ..., nwell, t = 1, ..., m, and the calculation formula is:
[0049] map(s,t)=[KWC(s,t)-1]*nxy+[JWC(s,t)-1]*nx+IWC(s,t),
[0050] Where IWC(s,t), JWC(s,t) and KWC(s,t) represent the grid cell numbers of the t-th perforation in the s-th well in the x, y and z directions, respectively;
[0051] 3. For the solver AMG-CG, which is composed of the low-complexity aggregation AMG method as the preconditioner and the conjugate gradient method (CG) as the iteration method, a hybrid storage format (Hybrid of STR and CSR, HSC) solver (AMG-CG-HSC) is designed based on the STR and CSR formats;
[0052] 4. In the AMG solution phase, the finest grid layer is calculated using STR (see Figure 5 ), other layers are calculated using CSR;
[0053] 5. For the PCG iterative method, the STR format is used to calculate the matrix-vector multiplication and residual calculations with high computational overhead. The PCG iterative method consists of the following three steps (S1, S2 and S3).
[0054] S1: Calculate the residual r using the STR structure matrix 0 =f-Au 0 , where r 0 is the initial residual vector, f is the right-hand side vector of the equation system, u 0 is the initial iterative solution vector, and A is the coefficient matrix stored in the STR structure.
[0055] The 0th layer of the S2 preconditioner AMG uses the STR matrix to calculate z 0 =Br 0 ,p 0 =z 0 , where z 0 and p 0 is the conjugate direction vector, and B is the AMG preconditioner using a hybrid storage structure.
[0056] S3 loops through steps S31-S37 until the solution vector reaches the given accuracy requirement.
[0057] S31 Calculate the conjugate direction coefficient where α m is the conjugate direction coefficient of the mth cycle, r m is the residual vector of the mth cycle, z m and p m is the conjugate direction vector of the mth cycle.
[0058] S32 Update solution vector u m+1 =u m +α m p m , where u m+1 is the updated solution vector in the mth cycle, u m is the solution vector before updating in the mth loop.
[0059] S33 uses STR to calculate matrix-vector multiplication r m+1 =r m -α m Ap m , where r m+1 is the residual vector updated in the mth cycle.
[0060] S34 Solve the preconditioned system z m+1 =Br m+1 , where z m+1 is the conjugate direction vector after the preconditioner calculation in the mth cycle.
[0061] S35 Calculate the conjugate direction coefficient where β m is the conjugate direction coefficient of the mth cycle.
[0062] S36 Update conjugate vector p m+1 =z m+1 +β m p m , p m+1 It is the conjugate direction vector updated in the mth cycle.
[0063] S37 checks whether the iteration has converged.
[0064] 6. Finally, the effectiveness of the new method is verified through three actual chemical flooding problems.
[0065] Example 2
[0066] In a specific embodiment 2 of the present invention, the numerical simulation example of the actual mine chemical flooding oil reservoir is the Y8 block, and the effective grid size is 436,000; for a discrete algebraic system in the numerical simulation example of this example, the three methods of ADI-BiCGstab, ILU-CG, and AMG-CG-HSC are used to solve it, and the solution accuracy is 1E-8, and the maximum number of iterations is 1500. Figure 6 The relative residual norm of the three solution methods for the Y8 example with an effective grid size of 440,000 is given as a function of the number of iterations. In the figure, the horizontal axis ITs represents the number of iterations, and the vertical axis RRN represents the relative residual norm (the calculation formula is where r is the residue and b is the right side of the algebraic system). Figure 6It can be seen that the three methods all meet the solution accuracy, among which the ILU-CG method has the most iterations, and the AMG-CG-HSC has the least iterations; from the decreasing trend of RRN with the number of iterations, the error curves of the ILU-CG and ADI-BiCGstab methods are not monotonically decreasing (there is a phenomenon of ups and down fluctuations), while the error curve of the AMG-CG-HSC method is monotonically decreasing, and it decreases faster than the other two methods, indicating that the new method AMG-CG-HSC has a fast convergence speed and a small number of iterations. Further, Table 1 gives the final number of iterations (ITs), RRN, solution time (Time) and speed-up ratio of the three solution methods for the Y8 example. It can be seen from Table 1 that, under the premise of meeting the accuracy of 1E-8, the number of iterations of ADI-BiCGstab, ILU-CG and AMG-CG-HSC are 234, 567 and 22 respectively. The solution time of the new method AMG-CG-HSC method is at least 1.30s, which is 5.42 times faster than the ADI-BiCGstab method and 4.49 times faster than the ILU-CG method.
[0067] Table 1 Example - Y8 (effective grid size is 436,000)
[0068] Methods ITER RRN Time(s) Speed ratio ADI-BiCGstab 234 6.4069E-09 7.04 5.42 ILU-CG 567 9.6089E-09 5.84 4.49 AMG-CG-HSC 22 9.5272E-09 1.30 --
[0069] Example 3
[0070] In a specific embodiment 3 of the present invention, the numerical simulation example of the actual mine chemical flooding oil reservoir is 5 million grids in the T28 block, and the effective grid size is 1.568 million; for a discrete algebraic system in the numerical simulation example of this example, three methods, ADI-BiCGstab, ILU-CG, and AMG-CG-HSC, are used to solve it, and the solution accuracy is 1E-8, and the maximum number of iterations is 1500. Figure 7 The curves of the relative residual norm of the three solution methods for the T28-5M example with a grid size of 5 million and the number of iterations are given. Table 2 shows the final number of iterations (ITs), RRN, solution time (Time) and speed-up ratio of the three solution methods ADI-BiCGstab, ILU-CG and AMG-CG-HSC for the T28-5M example. From the above test results, the new method AMG-CG-HSC has a faster convergence speed, fewer iterations and a more stable number of iterations.
[0071] Table 2 Example - T28-5M (effective grid size is 1.568 million)
[0072] Methods ITER RRN Time(s) Speed ratio ADI-BiCGstab 324 9.7236E-09 40.44 4.45 ILU-CG 1135 8.8001E-09 52.95 5.83 AMG-CG-HSC 42 7.9095E-09 9.08 --
[0073] Example 4
[0074] In a specific embodiment 4 of the present invention, the numerical simulation example of the actual mine chemical flooding oil reservoir is an encrypted model of 10 million grids in the T28 block, and the effective grid size is 3.078 million; for a discrete algebraic system in the numerical simulation example of this example, three methods, ADI-BiCGstab, ILU-CG, and AMG-CG-HSC, are used to solve it, and the solution accuracy is 1E-8, and the maximum number of iterations is 1500. Figure 8 The curves of the relative residual norm of the three solution methods for the T28-10M example with a grid size of 10 million and the number of iterations are given. Table 3 shows the final number of iterations (ITs), RRN, solution time (Time) and speed-up ratio of the three solution methods ADI-BiCGstab, ILU-CG and AMG-CG-HSC for the T28-10M example. From the above test results, the new method AMG-CG-HSC has a faster convergence speed, fewer iterations and a more stable number of iterations.
[0075] Table 3 Example - T28-10M (effective grid size is 3.078 million)
[0076] Methods ITs RRN Time(s) Speed ratio ADI-BiCGstab 425 8.3843E-09 102.06 6.30 ILU-CG 1194 9.12013E-09 111.83 6.90 AMG-CG-HSC 36 9.576386e-03 16.20 --
[0077] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0078] Except for the technical features described in the specification, all other technical features are known technologies to those skilled in the art.
Claims
1. A multi-grid solution method for a mixed storage structure of reservoir pressure equations, characterized in that: The multi-grid solution method for the mixed storage structure of the reservoir pressure equation includes: Step 1, calculate and obtain the initial solution vector and the corresponding residual vector on the finest grid layer; Step 2, restrict the residual vector on the fine grid layer to the coarse grid layer; Step 3, calculate and obtain the initial solution vector residual vector on the corresponding coarse grid; Step 4, lifting the solution vector on the coarse grid layer to the corresponding fine grid layer; Step 5: Calculate the solution vector and the corresponding residual vector on the finest grid layer to complete a complete AMG-V-Cycle cycle.
2. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 1 is characterized in that: The multi-grid solution method for the mixed storage structure of the reservoir pressure equation also includes, before step 1, for the chemical flooding reservoir model, discretizing the algebraic system based on the three-dimensional structure grid using a 7-point central difference format, wherein the reservoir matrix is composed of 7 bands, namely, C, E, W, S, N, T and B, C represents the unit center, E and W represent its east-west direction respectively, S and N represent its north-south direction respectively, and T and B represent its up-down direction respectively.
3. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 2 is characterized in that: In step 1, the finest grid, i.e., the coefficient matrix of the 0th layer, is stored in the structured matrix STR mode, and the initial solution vector and the corresponding residual vector on the finest grid layer are obtained by using Gauss-Seidel or Jacobi polishing operations based on the STR mode and matrix-vector product linear operations.
4. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 3 is characterized in that: In step 1, since the reservoir matrix has a 7-band structure and the edging matrix corresponding to the implicit wells has the characteristics of symmetry and small size, the structural matrix and the two-dimensional array are used to store the above two matrices respectively.
5. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 4 is characterized in that: In step 1, n represents the number of effective units, nwell represents the total number of wells, and nxy = nx*ny, where nx and ny are the number of units in the x and y directions respectively; o represents a non-zero element, and m is the maximum number of perforations in a well; in order to ensure that a sparse structure of the reservoir and well edge matrix can be formed, it is necessary to introduce a mapping map into the two-dimensional array, map(s,t) represents the grid unit number where the tth perforation of the sth well is located, s = 1, ..., nwell, t = 1, ..., m, and the calculation formula is: map(s,t)=[KWC(s,t)-1]*nxy+[JWC(s,t)-1]*nx+IWC(s,t), Where IWC(s,t), JWC(s,t) and KWC(s,t) represent the grid cell numbers of the tth perforation in the sth well in the x, y and z directions, respectively.
6. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 1 is characterized in that: In step 2, the residual vectors on the fine grid layer are restricted to the coarse grid layer using a restriction operator based on the CSR storage format.
7. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 1 is characterized in that: In step 3, using the coarse grid matrix based on the CSR storage format and the residual vector restricted in step 2, Gauss-Seidel or Jacobi polishing operations and matrix-vector product linear operations are performed to obtain the initial solution vector residual vector on the corresponding coarse grid.
8. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 1 is characterized in that: In step 4, the solution vector on the coarse grid layer is promoted to the corresponding fine grid layer using a promotion operator based on the CSR storage format; calculations are performed from the coarse grid to the fine grid in sequence, and when the finest grid is reached, the process enters step 5.
9. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 1 is characterized in that: In step 5, the finest grid, i.e., the coefficient matrix of the 0th layer, is stored in the structured matrix STR method, and Gauss-Seidel or Jacobi polishing operations based on the STR method and matrix-vector product linear operations are used to obtain the solution vector and the corresponding residual vector on the finest grid layer, completing a complete AMG-V-Cycle cycle.
10. The multi-grid solution method for the hybrid storage structure of the reservoir pressure equation according to claim 9, characterized in that: In step 5, if the solution vector meets the accuracy requirement, the solution process ends, otherwise the process enters step 1 to continue the next AMG-V-Cycle cycle.
