Method for random filling of polyphasic medium, electronic device, storage medium and apparatus

By establishing a medium distribution trend map and a standard graphic database, and randomly generating and adjusting the medium coordinates and angles, the randomness and controllability problems of medium filling in the prior art are solved, realizing a random filling method for multiphase media, which is suitable for seismic wavefield and material mechanics simulation.

CN120125708BActive Publication Date: 2025-11-25CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311686185.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2025-11-25
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Existing software and methods cannot effectively achieve random distribution of multiple media during media filling, while simultaneously satisfying the controllability of scale, density, and shape. Furthermore, they lack the constraints of statistical laws, making it difficult to meet the needs of seismic wavefield and materials mechanics research.

Method used

By establishing a scale and density distribution trend map of multiphase media, combined with a standard filling graphic database, media coordinates and angles are randomly generated, the overlap is judged, and random filling of multiphase media is achieved. The degree of filling completion is judged based on the density value.

Benefits of technology

A random filling method for multiphase media is provided, which enables controllability of medium type, size and density in seismic wavefield and materials mechanics simulations, conforms to statistical laws, supports flexible selection and simulation of multiple media, and is suitable for three-dimensional spatial expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120125708B_ABST
    Figure CN120125708B_ABST
Patent Text Reader

Abstract

The application discloses a kind of multi-phase medium random filling method, electronic equipment, storage medium and device.The method comprises the following steps: establishing the scale distribution trend chart and density distribution trend chart of different multi-phase media, determining the distribution density value of different multi-phase media, establishing standard filling pattern database, determining the filling quantity of different multi-phase media, reading the standard filling pattern corresponding to multi-phase medium based on pattern database, determining the size of filling pattern of multi-phase medium based on magnification, randomly determining the filling angle of filling pattern, judging whether filling pattern overlaps with the filling pattern of adjacent coordinate point, if not overlapping, then filling multi-phase medium to multi-phase medium simulation model based on filling coordinate, the size and filling angle of filling pattern, judging whether filling distribution density value is less than corresponding distribution density value, if not, then complete filling.The application realizes that the type of medium is controllable, size is controllable, density is controllable, and the simulation scheme of flexible selection of pattern library.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of applied geophysics, and more particularly, relates to a method for random filling of multiphase media, an electronic device, a storage medium and an apparatus. BACKGROUND

[0002] In geological mapping and other engineering mapping software, it is often necessary to fill different colors or different shapes of media to represent different minerals, rocks, strata and other information. However, most of the current software can only draw the same color or regular pattern in a closed area. Even if there is a random pattern filling scheme, it can only be controlled by a single factor because of the limited parameters, and the number, size and distribution density of the filling media are limited.

[0003] In addition, in the study of material mechanics, seismic wave field and other disciplines, it is also necessary to design various medium filling patterns to carry out finite element numerical simulation and other researches to analyze the mechanical properties or seismic wave field response characteristics. However, there is no random medium filling method constrained by scale field and density field.

[0004] The information disclosed in the background section of the present application is only intended to deepen the understanding of the general background of the present application, and should not be regarded as acknowledging or implying in any form that the information constitutes prior art known to those skilled in the art. SUMMARY

[0005] The purpose of the present application is to provide a method for random filling of multiphase media, an electronic device, a storage medium and an apparatus, which can provide a simulation scheme containing multiple media with random distribution characteristics, statistical rules, controllable medium types, controllable sizes and controllable densities, and flexible selection of pattern libraries, when carrying out finite element numerical simulation of seismic wave field or mechanical properties for different rock masses, geological structures or material and mineral compositions.

[0006] To achieve the above-mentioned purpose, the present application provides a method for random filling of multiphase media, an electronic device, a storage medium and an apparatus.

[0007] According to a first aspect of the present application, a method for random filling of multiphase media is provided, comprising:

[0008] establishing a scale distribution trend graph of different multiphase media, wherein each coordinate point on the scale distribution trend graph is marked with a value representing the size of the multiphase medium corresponding to the position of the coordinate point;

[0009] determining the distribution density values of different multiphase media based on the density distribution trend graph;

[0010] A standard filling graphic database is established, which stores the boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard filling graphic, and different multiphase media correspond to different standard filling graphics.

[0011] The filling quantity of different multiphase media is determined, and a filling coordinate is randomly generated for each multiphase medium;

[0012] Read the standard filling pattern corresponding to the multiphase medium based on the graphics database;

[0013] The magnification factor of the standard filling pattern is determined based on the filling coordinates and the array corresponding to the standard filling pattern, and the size of the filling pattern of the multiphase medium is determined based on the magnification factor.

[0014] The fill angle of the fill graphic is randomly determined, and the rotation angle of the fill graphic is determined based on the fill angle;

[0015] Based on the fill coordinates and the coordinate values ​​and marker values ​​of adjacent coordinate points, it is determined whether the fill pattern overlaps with the fill pattern of adjacent coordinate points. If they overlap, the fill coordinates are deleted and the fill coordinates of the multiphase medium are randomly generated again.

[0016] If there is no overlap, the multiphase medium is filled into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic, and the fill angle;

[0017] Calculate the filling distribution density value of the multiphase medium in the multiphase medium simulation model, and determine whether the filling distribution density value is less than the corresponding distribution density value. If yes, continue filling; otherwise, complete filling.

[0018] Optionally, the multiphase medium includes at least two media.

[0019] Optionally, the coordinates of the array are in the range of -1 to 1, to serve as the standard fill shape.

[0020] Optionally, the range of the filled coordinates is the coordinate range of the multiphase medium scale distribution trend map.

[0021] Optionally, the array is represented in the form of an m×2 matrix, i.e., [x i ,y i ], i∈[1,m];

[0022] Where [x] i ,y i [] represents the coordinates of the i-th inflection point of the polyline of the particle's outline, where m is the number of inflection points.

[0023] Optionally, determining the rotation angle of the filled graphic based on the fill angle includes:

[0024]

[0025] Where θ is the filling angle, [Zx] i ,Zy i [] represents the coordinates of the boundary outline of the filled shape, Z represents the magnification factor of the standard filled shape, [u i ,v i ] is the fill shape in [Zx i ,Zy i The coordinates after rotation by θ.

[0026] Optionally, filling the multiphase medium into the multiphase medium scale distribution trend map based on the fill coordinates, the size of the fill pattern, and the fill angle includes:

[0027] Centered on the fill coordinates, the rotated fill pattern is drawn on the multiphase medium simulation model based on the size of the fill pattern and the fill angle.

[0028] According to a second aspect of the present invention, a multiphase medium random filling device is provided, comprising:

[0029] The first module is used to establish a scale distribution trend map of different multiphase media, wherein the marked value of each coordinate point on the scale distribution trend map represents the size of the multiphase media corresponding to the coordinate point position;

[0030] The first determining module is used to determine the distribution density values ​​of different multiphase media based on the density distribution trend map;

[0031] The second module is used to establish a standard fill graphic database. The standard fill graphic database stores boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard fill graphic, and different multiphase media correspond to different standard fill graphics.

[0032] The determination and random generation module is used to determine the filling quantity of different multiphase media and randomly generate a filling coordinate for each multiphase medium.

[0033] A random selection and reading module is used to read the standard filling pattern corresponding to the multiphase medium based on the graphics database;

[0034] The second determining module is used to determine the magnification factor of the standard filling pattern based on the filling coordinates and the array corresponding to the standard filling pattern, and to determine the size of the filling pattern of the multiphase medium based on the magnification factor;

[0035] A random determination and rotation module is used to randomly determine the filling angle of the filling graphic and determine the rotation angle of the filling graphic based on the filling angle.

[0036] The judgment module is used to determine whether the filling pattern overlaps with the filling pattern of the adjacent coordinate points based on the filling coordinates and the coordinate values ​​and marker values ​​of the adjacent coordinate points. If they overlap, the filling coordinates are deleted and the filling coordinates of the multiphase medium are randomly generated again.

[0037] A filling module is used to fill the multiphase medium into the multiphase medium simulation model based on the filling coordinates, the size of the filling graphic, and the filling angle if there is no overlap.

[0038] The calculation and filling module calculates the filling distribution density value of the multiphase medium in the scale distribution trend map, and determines whether the filling distribution density value is less than the corresponding distribution density value. If so, the filling continues; otherwise, the filling is completed.

[0039] According to a third aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0040] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multiphase medium random filling method according to any of the first aspects.

[0041] According to a fourth aspect of the invention, a non-transitory computer-readable storage medium is provided, which stores computer instructions for causing a computer to perform the multiphase medium random filling method described in any of the first aspects.

[0042] The beneficial effects of this invention are as follows: This invention establishes a multiphase medium scale distribution trend map, where the marked value of each coordinate point represents the size of the multiphase medium corresponding to that coordinate point; it establishes a density distribution trend map for different multiphase media to determine the distribution density values ​​of different multiphase media; it establishes a standard filling pattern database, where standard filling patterns of different shapes correspond to different multiphase media; it determines the filling position, filling pattern, and size of the multiphase medium by randomly generating coordinate points and randomly selecting filling multiphase media, and determines the filling angle of the filling pattern; it determines whether filling should be performed based on whether the filling pattern of the multiphase medium overlaps with the filling patterns of adjacent coordinate points; and it determines whether filling is complete based on the filling distribution density value of the multiphase medium after filling. In seismic wavefield or material mechanics numerical simulation analysis, for the distribution of different rock masses, geological structures, or materials and mineral compositions, when conducting finite element numerical simulations of seismic wavefields or mechanical properties, this invention provides a simulation scheme that includes multiple media, exhibits both random distribution characteristics and conforms to statistical laws, and allows for controllable media types, sizes, densities, and flexible selection of the pattern library. This invention allows for convenient modification of the distribution density, shape, and size of multiple media. This invention allows for convenient modification of simulation effects by adjusting parameters such as the simulated medium graphics library, medium scale field, and distribution density value. Furthermore, it can simulate more than three types of media by increasing the number of media types, and extend to three-dimensional space by increasing the dimension of the parameters. It can also be easily applied in other similar industrial or engineering fields.

[0043] The system of the present invention has other features and advantages that will be apparent from or will be set forth in detail in the accompanying drawings and following detailed description, which together serve to explain the particular principles of the invention. Attached Figure Description

[0044] The above and other objects, features and advantages of the present invention will become more apparent from the accompanying drawings, in which like reference numerals generally denote like parts.

[0045] Figure 1 A flowchart illustrating the steps of a multiphase medium random filling method according to the present invention is shown.

[0046] Figure 2 A flowchart illustrating the steps of a multiphase medium random filling method according to Embodiment 2 of the present invention is shown.

[0047] Figure 3 A scale distribution trend diagram of medium A according to Embodiment 2 of the present invention is shown.

[0048] Figure 4 A scale distribution trend diagram of medium B according to Embodiment 2 of the present invention is shown.

[0049] Figure 5 The diagram shows the simulation results of medium A (elliptical scale 4-60m, density 100) and medium B (irregular polygonal scale 10-30m, density 300) according to Embodiment 2 of the present invention.

[0050] Figure 6 The diagram shows the simulation results of medium A (elliptical scale 4-60m, density 300) and medium B (irregular polygonal scale 10-30m, density 100) according to Embodiment 2 of the present invention.

[0051] Figure 7 The diagram shows the simulation results of medium A (elliptical scale 4-40m, density 500) and medium B (irregular polygonal scale 30m, density 40) according to Embodiment 2 of the present invention.

[0052] Figure 8 The diagram shows the simulation results of medium A (elliptical scale 4-60m, density 200) and medium B (irregular polygonal scale 10-40m, density 200) according to Embodiment 2 of the present invention.

[0053] Figure 9 The diagram shows the simulation results of medium A (elliptical scale 40m, density 50) and medium B (irregular polygonal scale 40m, density 50) according to Embodiment 2 of the present invention.

[0054] Figure 10 The diagram shows the simulation results of medium A (elliptical scale 20m, density 150) and medium B (irregular polygonal scale 20m, density 150) according to Embodiment 2 of the present invention.

[0055] Figure 11 The diagram shows the simulation results of medium A (triangular scale 4-60m, density 100) and medium B (irregular pentagonal scale 10-30m, density 300) according to Embodiment 2 of the present invention.

[0056] Figure 12 The diagram shows the simulation results of medium A (circular size 4-60m, density 300) and medium B (rectangular size 10-30m, density 100) according to Embodiment 2 of the present invention. Detailed Implementation

[0057] The invention will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0058] like Figure 1 As shown, a method for random filling of a multiphase medium according to the present invention includes:

[0059] Establish scale distribution trend maps for different multiphase media. The value of each coordinate point on the scale distribution trend map represents the size of the multiphase media corresponding to the coordinate point location.

[0060] The distribution density values ​​of different multiphase media are determined based on the density distribution trend diagram;

[0061] Establish a standard fill graphic database. The standard fill graphic database stores the boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard fill graphic. Different multiphase media correspond to different standard fill graphics.

[0062] Determine the filling quantity for different multiphase media, and randomly generate a filling coordinate for each multiphase media;

[0063] Read the standard filling graphics corresponding to multiphase media based on the graph database;

[0064] The magnification factor of the standard filling pattern is determined based on the filling coordinates and the array corresponding to the standard filling pattern, and the size of the filling pattern of the multiphase medium is determined based on the magnification factor.

[0065] The fill angle of the fill shape is randomly determined, and the rotation angle of the fill shape is determined based on the fill angle;

[0066] Based on the fill coordinates and the coordinate values ​​and marker values ​​of adjacent coordinate points, it is determined whether the fill graphic overlaps with the fill graphic of adjacent coordinate points. If they overlap, the fill coordinates are deleted and the fill coordinates of the multiphase medium are randomly generated again.

[0067] If there is no overlap, the multiphase medium is filled into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic, and the fill angle;

[0068] Calculate the filling density value of the multiphase medium in the multiphase medium simulation model, and determine whether the filling density value is less than the corresponding density value. If yes, continue filling; otherwise, complete filling.

[0069] Specifically, this invention establishes scale distribution trend maps for different multiphase media, where the marked values ​​of coordinate points represent the size of the multiphase media corresponding to those coordinate points, with each multiphase medium corresponding to a scale distribution trend map; it also establishes density distribution trend maps for different multiphase media to determine the distribution density values ​​of different multiphase media, i.e., determining the number of media distributed per unit area in the density distribution trend map; and it establishes a standard filling pattern database, with standard filling patterns of different shapes corresponding to different multiphase media. By randomly generating coordinate points of the multiphase media and randomly selecting the multiphase media to be filled, the filling position, filling pattern, and size of the multiphase media are determined, along with the filling angle. Whether to fill is determined based on whether the filling pattern of the multiphase media overlaps with the filling patterns of adjacent coordinate points, i.e., calculating the shortest distance between two coordinate points based on the filling coordinates and the coordinate values ​​of adjacent coordinate points, and then determining the filling corresponding to these two coordinate points based on their marked values. If the graphics overlap, for example, if the fill coordinates are (1,2) and the corresponding marker value is 2, and an adjacent coordinate point is (1,5) and the corresponding marker value is 2, then the shortest distance between these two coordinate points is 3. The fill graphic is centered on the fill coordinates. Assuming the fill graphic is a circle, the radius of the fill graphic is 1. The radius of the fill graphic at the other coordinate point is also 1. 1+1=2<3, so the fill coordinates and the fill graphic of the adjacent coordinate point do not overlap. If they overlap, the fill coordinates are deleted and the fill coordinates of the multiphase medium are randomly generated again. If they do not overlap, the multiphase medium is filled into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic, and the fill angle. Then, the filling distribution density value of the multiphase medium after filling is used to determine whether the filling is complete. The filling distribution density value of the multiphase medium in the multiphase medium simulation model is calculated, and it is determined whether the filling distribution density value is less than the corresponding distribution density value. If it is, the filling continues until the filling distribution density value is greater than or equal to the corresponding distribution density value. If not, the filling is complete.

[0070] In one example, a multiphase medium includes at least two media.

[0071] In one example, the coordinates of the array range from -1 to 1, which is used as the standard to fill the shape.

[0072] In one example, the range of the filled coordinates is the coordinate range of the multiphase medium scale distribution trend map.

[0073] In one example, the array is represented as an m×2 matrix, i.e., [x i ,y i ], i∈[1,m];

[0074] Where [x] i ,y i[] represents the coordinates of the i-th inflection point of the polyline of the particle's outline, where m is the number of inflection points.

[0075] In one example, determining the rotation angle of the filled graphic based on the fill angle includes:

[0076]

[0077] Where θ is the rotation angle of the filled shape, [Zx i ,Zy i [] represents the coordinates of the boundary outline of the filled shape, Z represents the magnification factor of the standard filled shape, [u i ,v i ] is the fill shape in [Zx i ,Zy i The coordinates after rotation by θ.

[0078] In one example, filling a multiphase medium into a multiphase medium scale distribution trend map based on fill coordinates, fill graphic size, and fill angle includes:

[0079] Centered on the fill coordinates, the rotated fill graphic is drawn on the multiphase medium simulation model based on the size and fill angle of the fill graphic.

[0080] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the invention. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present invention can be combined with each other.

[0081] Example 1

[0082] This embodiment provides a method for random filling of multiphase media, including:

[0083] Establish scale distribution trend maps and density distribution trend maps for different multiphase media. The value of each coordinate point on the scale distribution trend map represents the size of the multiphase medium corresponding to that coordinate point. The multiphase medium includes at least two media. Determine the distribution density values ​​of different multiphase media based on the density distribution trend maps. Establish a standard filling graphic database, which stores boundary point coordinate arrays for different shape contours. Each array corresponds to a standard filling graphic, and the coordinate range of the array is between -1 and 1, serving as the standard filling graphic. The array is represented in m×2 matrix form, i.e., [x...]. i ,y i ], i∈[1,m], where [x i ,y i[ ] represents the coordinates of the i-th inflection point of the polyline of the particle outline, where m is the number of inflection points. Different multiphase media correspond to different standard filling patterns. The number of filling points for different multiphase media is determined, and a filling coordinate is randomly generated for each multiphase medium. The range of the generated filling coordinates is the coordinate range of the multiphase medium scale distribution trend map. The standard filling pattern corresponding to the multiphase medium is read from the image database. The magnification factor of the standard filling pattern is determined based on the filling coordinates and the array corresponding to the standard filling pattern. The size of the filling pattern of the multiphase medium is determined based on the magnification factor. The filling angle of the filling pattern is randomly determined, and the rotation angle of the filling pattern is determined based on the filling angle. Where θ is the rotation angle of the filled graphic, [Zx] i ,Zy i [] represents the coordinates of the boundary outline of the filled shape, Z represents the magnification factor of the standard filled shape, [u i ,v i ] is the fill shape in [Zx i ,Zy i The coordinates are rotated by θ. Based on the fill coordinates and the coordinate values ​​of adjacent coordinate points and the marked values, it is determined whether the fill graphic overlaps with the fill graphic of adjacent coordinate points. If they overlap, the fill coordinates are deleted and the fill coordinates of the multiphase medium are randomly generated again. If they do not overlap, the multiphase medium is filled into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic and the fill angle. The rotated fill graphic is drawn on the scale distribution trend map with the fill coordinates as the center and based on the size of the fill graphic and the fill angle. The fill distribution density value of the multiphase medium in the multiphase medium simulation model is calculated, and it is determined whether the fill distribution density value is less than the corresponding distribution density value. If it is, the filling continues; if not, the filling is completed.

[0084] Example 2

[0085] like Figure 2 As shown, this embodiment provides a method for random filling of multiphase media, including:

[0086] The first step is to create a scale distribution field map and density distribution trend map for media A and media B, that is, the shape and size distribution trend of media A and media B. The coordinate range of this distribution field is consistent with the area to be simulated. The value of the marker corresponding to each coordinate point on this scale distribution field represents the size of the medium shape at that location. This scale distribution field can be provided by actual measurement or by mathematical formula, and is in the form of a two-dimensional planar matrix, denoted by ZA(X,Y) and ZB(X,Y), where (X,Y) is the coordinate position of the matrix, and ZA and ZB represent the size of media A and media B at that point, respectively.

[0087] The second step is to determine the distribution density values ​​DA and DB of medium A and medium B based on the density distribution trend map, which represent the number of medium A and medium B distributed per unit area in the density distribution trend map, respectively.

[0088] The third step is to establish a graphical database of medium shapes. This database stores the coordinate arrays of boundary points for different shape profiles, with coordinates ranging from -1 to 1, serving as the standard size, i.e., (x,y)∈[-1,1]. The center of the medium can be considered to be at position (0,0). The number of inflection points on the boundary coordinates of each medium shape is unlimited. This graphical database can be added to or removed as needed. For two-phase media A and B, their corresponding graphical profile arrays are specified respectively.

[0089] The fourth step is to initialize the statistical counts of the media to be simulated: ai = 1, bi = 1, where ai and bi represent the statistical counts of media A and media B, respectively. A coordinate point (X, Y) is then randomly generated, with the coordinate range consistent with the coordinate ranges of the media's scale field and density field.

[0090] Fifth step: Randomly select medium A or B to be simulated, and read the coordinate array of the medium shape from the medium graphics library. This array is in the form of an m×2 matrix, i.e., [x i ,y i ], i∈[1,m],[x i ,y i ] represents the coordinates of the i-th inflection point of the polyline of the medium's outline, where m is the number of inflection points.

[0091] The sixth step is to read the scale information ZA or ZB of the (X,Y) point from the corresponding medium scale field. This value reflects the size of the medium scale selected at (X,Y), and can also be understood as the magnification factor of the coordinates in the medium graphics library.

[0092] Step 7: Enlarge the selected medium boundary contour size by a factor of ZA or ZB, i.e., array (ZA or ZB) × [x i ,y i ] = [Zx i ,Zy i ].

[0093] Step 8: Generate random angle values ​​θ, θ∈[0,2π], and apply the following formula 1 to the medium boundary contour coordinates [Zx i ,Zy i Rotate the coordinates [u] to obtain the transformed coordinates. i ,v i ]

[0094]

[0095] Step 9: Taking the point (X, Y) as the center point, obtain the boundary contour of the above-mentioned rotated medium, that is, a closed polyline range with endpoints [X + u i , Y + v i , where i ∈ [1, m].

[0096] Step 10: Calculate the distances from the point (X, Y) to the centers of all adjacent media, and determine whether they overlap according to the sizes of the two media. If the two media overlap, execute Step 5 above; otherwise, execute Step 11 below; when ai = 1 or bi = 1 (only one medium), skip this step and execute Step 11.

[0097] Step 11: Increment the medium simulation counter by 1, that is, ai = ai + 1, or bi = bi + 1;

[0098] Step 12: Draw the shape contour of medium A or medium B at (X, Y) and fill in the corresponding color.

[0099] Step 13: Calculate the density da or db of the current medium A or medium B (the number of media divided by the area of the simulation region), and determine the relationship between da or db and the density values DA or DB at the corresponding positions of medium A or B: when da < DA or db < DB, execute Step 5 above; otherwise, the simulation process ends.

[0100] The following uses the multi-phase medium random filling method of this embodiment for filling.

[0101] There are two media A and B, and their scale fields are created as shown in Figure 3 and Figure 4 respectively. Among them, the scale field ZA of medium A ranges from 4 to 60 m, and the scale distribution shows a linear trend of increasing from top to bottom; while the scale field ZB of medium B ranges from 10 to 30 m, and the scale distribution shows a linear trend of decreasing from top to bottom. When medium A selects an elliptical contour and the density is 100, and medium B selects an irregular polygon contour and the density is 300, the simulation results are as shown in Figure 5 . When the scale fields of medium A and medium B remain unchanged, but their density ratios are changed, that is, when the density of medium A is 300 and the density of medium B is 100, the simulation results are shown in Figure 6 .

[0102] Still use the above-mentioned elliptical medium A and irregular polygon medium B. When medium B uses a fixed scale field, that is, all elements of the ZB matrix are the same value, such as ZB = 30 m, and the density is 40; while the scale field of medium A shows a linear distribution of decreasing from top to bottom, with the range ZA between 4 and 40 m, and the density is 500. The simulation results are as shown in Figure 7 .

[0103] The elliptical medium A and the irregular polygonal medium B are still used. When the scale fields of medium A and medium B maintain the same directional variation trend, i.e., the scale increases from top to bottom, with the ZA scale field ranging from 4-60m and the ZB scale field ranging from 10-40m, and the density of both medium A and medium B is 200. The simulation results are as follows: Figure 8 As shown.

[0104] The same elliptical medium A and irregular polygonal medium B are used. The scale fields of mediums A and B are fixed, ZA and ZB are both 40m, and the density is 50. The simulation results are as follows: Figure 9 As shown.

[0105] The same elliptical medium A and irregular polygonal medium B are used. The scale fields of mediums A and B are fixed, ZA and ZB are both 20m, and the density is 150. The simulation results are as follows: Figure 10 As shown.

[0106] Different media contour arrays can be selected from the graphics library to simulate different media shapes. Figure 11 and Figure 12 All of them are adopted Figure 3 and Figure 4 The results of the simulation of the scale field. Figure 11 In the diagram, medium A is a triangle and medium B is a pentagon; Figure 12 In the simulation, medium A is circular, and medium B is rectangular. This demonstrates that different simulation effects can be achieved by flexibly choosing the shape of the medium.

[0107] Example 3

[0108] A multiphase medium random filling device is proposed, comprising:

[0109] The first module is used to create scale distribution trend maps and density distribution trend maps for different multiphase media. The value of the marker at each coordinate point on the scale distribution trend map represents the size of the multiphase media corresponding to that coordinate point.

[0110] The first determining module is used to determine the distribution density values ​​of different multiphase media based on the density distribution trend map;

[0111] The second module is used to establish a standard fill graphic database. The standard fill graphic database stores the boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard fill graphic, and different multiphase media correspond to different standard fill graphics.

[0112] The determination and random generation module is used to determine the filling quantity of different multiphase media and randomly generate a filling coordinate for each multiphase media.

[0113] The random selection and reading module is used to read standard filling patterns corresponding to multiphase media based on a graphic database.

[0114] The second determining module is used to determine the magnification factor of the standard filling pattern based on the filling coordinates and the array corresponding to the standard filling pattern, and to determine the size of the filling pattern of the multiphase medium based on the magnification factor.

[0115] The random selection and rotation module is used to randomly determine the fill angle of the fill graphic and determine the rotation angle of the fill graphic based on the fill angle.

[0116] The judgment module is used to determine whether the filled graphic overlaps with the filled graphic of the adjacent coordinate point based on the fill coordinate and the coordinate value and mark value of the adjacent coordinate point. If they overlap, the fill coordinate is deleted and the fill coordinate of the multiphase medium is randomly generated again.

[0117] The fill module is used to fill the multiphase medium into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic, and the fill angle, if there is no overlap.

[0118] The calculation and filling module calculates the filling distribution density value of the multiphase medium in the scale distribution trend map, and determines whether the filling distribution density value is less than the corresponding distribution density value. If so, the filling continues; otherwise, the filling is completed.

[0119] Example 4

[0120] This embodiment provides an electronic device, which includes:

[0121] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multiphase medium random filling method of Embodiment 1.

[0122] An electronic device according to embodiments of the present disclosure includes a memory and a processor. The memory is used to store non-transitory computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc.

[0123] The processor may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of this disclosure, the processor is used to execute computer-readable instructions stored in the memory.

[0124] Those skilled in the art will understand that, in order to solve the technical problem of how to achieve a good user experience, this embodiment may also include well-known structures such as communication buses and interfaces, and these well-known structures should also be included within the protection scope of this disclosure.

[0125] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.

[0126] Example 5

[0127] This embodiment provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to execute the multiphase medium random filling method in Embodiment 1.

[0128] A computer-readable storage medium according to embodiments of the present disclosure stores non-transitory computer-readable instructions. When these non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the methods described in the foregoing embodiments of the present disclosure are performed.

[0129] The aforementioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or portable hard drive), media with built-in rewritable non-volatile memory (e.g., memory card), and media with built-in ROM (e.g., ROM cartridge).

[0130] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

[0131] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A method for random filling of a multiphase medium, characterized in that, include: Establish scale distribution trend maps and density distribution trend maps for different multiphase media. The value of the marker at each coordinate point on the scale distribution trend map represents the size of the multiphase medium corresponding to the coordinate point. The distribution density values ​​of different multiphase media are determined based on the density distribution trend diagram. A standard filling graphic database is established, which stores the boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard filling graphic, and different multiphase media correspond to different standard filling graphics. The filling quantity of different multiphase media is determined, and a filling coordinate is randomly generated for each multiphase medium; Randomly select one of the multiphase media, and read the standard filling pattern corresponding to the multiphase media based on the graphics database; The magnification factor of the standard filling pattern is determined based on the filling coordinates and the array corresponding to the standard filling pattern, and the size of the filling pattern of the multiphase medium is determined based on the magnification factor. The fill angle of the fill graphic is randomly determined, and the rotation angle of the fill graphic is determined based on the fill angle; Based on the fill coordinates and the coordinate values ​​and marker values ​​of adjacent coordinate points, it is determined whether the fill pattern overlaps with the fill pattern of adjacent coordinate points. If they overlap, the fill coordinates are deleted and the fill coordinates of the multiphase medium are randomly generated again. If there is no overlap, the multiphase medium is filled into the multiphase medium simulation model based on the fill coordinates, the size of the fill graphic, and the fill angle; Calculate the filling distribution density value of the multiphase medium in the multiphase medium simulation model, and determine whether the filling distribution density value is less than the corresponding distribution density value. If so, randomly select one of the multiphase media to continue filling; otherwise, the filling is completed.

2. The method for random filling of multiphase media according to claim 1, characterized in that, The multiphase medium includes at least two media.

3. The method for random filling of multiphase media according to claim 1, characterized in that, The coordinates of the array are in the range of -1 to 1, serving as the standard fill shape.

4. The method for random filling of multiphase media according to claim 1, characterized in that, The range of the filled coordinates is the coordinate range of the multiphase medium scale distribution trend map.

5. The method for random filling of multiphase media according to claim 1, characterized in that, The array is represented in m×2 matrix form, i.e., [x i ,y i ], i∈[1,m]; Where [x] i ,y i [] represents the coordinates of the i-th inflection point of the polyline of the particle's outline, where m is the number of inflection points.

6. The method for random filling of multiphase media according to claim 1, characterized in that, Determining the rotation angle of the filled graphic based on the filled angle includes: Where θ is the rotation angle of the filled shape, [Zx i ,Zy i [] represents the coordinates of the boundary outline of the filled shape, Z represents the magnification factor of the standard filled shape, [u i ,v i ] is the fill shape in [Zx i ,Zy i The coordinates after rotation by θ.

7. The method for random filling of multiphase media according to claim 1, characterized in that, The process of filling the multiphase medium into the multiphase medium scale distribution trend map based on the fill coordinates, the size of the fill graphic, and the fill angle includes: Centered on the fill coordinates, the rotated fill pattern is drawn on the multiphase medium simulation model based on the size of the fill pattern and the fill angle.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multiphase medium random filling method according to any one of claims 1-7.

9. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the multiphase medium random filling method as described in any one of claims 1-7.

10. A multiphase medium random filling device, characterized in that, include: The first module is used to establish a scale distribution trend map of different multiphase media, wherein the marked value of each coordinate point on the scale distribution trend map represents the size of the multiphase media corresponding to the coordinate point position; The first determining module is used to determine the distribution density values ​​of different multiphase media based on the density distribution trend map; The second module is used to establish a standard fill graphic database. The standard fill graphic database stores boundary point coordinate arrays of different shape contour styles. Each array corresponds to a standard fill graphic, and different multiphase media correspond to different standard fill graphics. The determination and random generation module is used to determine the filling quantity of different multiphase media and randomly generate a filling coordinate for each multiphase medium. The random selection and reading module is used to randomly select one of the multiphase media and read the standard filling pattern corresponding to the multiphase media based on the graphics database. The second determining module is used to determine the magnification factor of the standard filling pattern based on the filling coordinates and the array corresponding to the standard filling pattern, and to determine the size of the filling pattern of the multiphase medium based on the magnification factor; A random determination and rotation module is used to randomly determine the filling angle of the filling graphic and determine the rotation angle of the filling graphic based on the filling angle. The judgment module is used to determine whether the filling pattern overlaps with the filling pattern of the adjacent coordinate points based on the filling coordinates and the coordinate values ​​and marker values ​​of the adjacent coordinate points. If they overlap, the filling coordinates are deleted and the filling coordinates of the multiphase medium are randomly generated again. A filling module is used to fill the multiphase medium into the multiphase medium simulation model based on the filling coordinates, the size of the filling graphic, and the filling angle if there is no overlap. The calculation and filling module calculates the filling distribution density value of the multiphase medium in the multiphase medium simulation model, and determines whether the filling distribution density value is less than the corresponding distribution density value. If so, the filling continues; otherwise, the filling is completed.

Citation Information

Patent Citations

  • Pore-scale geometric models for interpretation of downhole formation evaluation data

    US20060276969A1

  • Improved terrain rendering in a three-dimentsional environment

    WO2003081537A1