Mineral particle random filling method, electronic equipment, storage medium and device

By establishing a mineral particle scale distribution trend chart and a standard fill graph database, filling coordinates and graphics are randomly generated, and combining filling angles and rotation angles, the random filling effect of mineral particles with controllable scale distribution and controllable shapes is achieved, solving the problem of lack of random particle filling methods in the prior art that are constrained by scale distribution.

CN120125709APending Publication Date: 2025-06-10CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311686559.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

The prior art is difficult to achieve the random filling effect of mineral particles with controllable scale distribution and controllable shape in geological mapping and material mechanics research, and there is a lack of random particle filling method constrained by scale distribution.

Method used

By establishing a mineral particle scale distribution trend chart and a standard fill graph database, fill coordinates and graphs are randomly generated, combining fill angles and rotation angles to avoid overlap, and random filling of mineral particles is achieved.

Benefits of technology

The random filling effect of mineral particles with controllable scale distribution and controllable shape is achieved, which is random and statistical, conforms to geological laws, has high credibility, and can easily modify parameters to change the filling effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120125709A_ABST
    Figure CN120125709A_ABST
Patent Text Reader

Abstract

The invention discloses a mineral particle random filling method, electronic equipment, a storage medium and a device. The method comprises the following steps: establishing a mineral particle size distribution trend chart; a standard filling graph database is established, boundary point coordinate arrays of different outline styles are stored in the standard filling graph database, and each array corresponds to one standard filling graph; determining the filling number of mineral particles, and randomly generating a filling coordinate of one mineral particle; randomly determining a filling graph of the mineral particles based on a graph database; based on the filling coordinates and the array corresponding to the standard filling graph, the magnification times of the standard filling graph are determined, the size of the filling graph is determined, and the filling angle of the filling graph is determined randomly; and filling the mineral particles into the mineral particle simulation model based on the filling coordinates, the size of the filling graph and the filling angle. According to the invention, mineral particle filling is carried out by taking the size trend of rock mineral particles as a constraint, so that the random filling effect with controllable size distribution and controllable shape is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of applied geophysics, and more specifically, relates to a method for randomly filling mineral particles, an electronic device, a storage medium, and a device. Background Art

[0002] In geological mapping and other engineering drawing software, it is usually necessary to fill different colors or different shapes of particulate matter to represent different information such as minerals, rocks, and strata. However, in all current software, most can only draw the same color or regular patterns in a closed area. Even if there is a random pattern filling scheme, due to limited parameters, only single-factor control can be performed, and the filling particles and sizes are limited.

[0003] In addition, in the research of disciplines such as material mechanics and seismic wave fields, it is also necessary to design models with various filling patterns to carry out finite element numerical research and analyze their mechanical properties or seismic wave field response characteristics. However, there is no random particle filling method constrained by scale distribution.

[0004] The information disclosed in the background art part of the present invention is only intended to deepen the understanding of the general background art of the present invention, and should not be regarded as an admission or any form of suggestion that this information constitutes the prior art known to those skilled in the art. Summary of the Invention

[0005] The object of the present invention is to propose a method for randomly filling mineral particles, an electronic device, a storage medium, and a device, so as to achieve a randomly filled effect with controllable scale distribution and shape.

[0006] To achieve the above object, the present invention proposes a method for randomly filling mineral particles, an electronic device, a storage medium, and a device.

[0007] According to the first aspect of the present invention, a method for randomly filling mineral particles is proposed, including:

[0008] Establish a scale distribution trend graph of mineral particles, where the marked numerical value of each coordinate point on the distribution trend graph represents the size of the mineral particles corresponding to the position of the coordinate point;

[0009] Establish a standard filling graphic database, where the standard filling graphic database stores boundary point coordinate arrays of different external contour styles, and each array corresponds to a standard filling graphic;

[0010] Determine the filling quantity of the mineral particles, and randomly generate a filling coordinate of the mineral particle;

[0011] Randomly determine the filling graphic of the mineral particle based on the graphic database;

[0012] Determine the magnification factor of the standard filling pattern based on the filling coordinates and the array corresponding to the standard filling pattern, and determine the size of the filling pattern based on the magnification factor;

[0013] Randomly determine the filling angle of the filling pattern, and determine the rotation angle of the filling pattern based on the filling angle;

[0014] Based on the coordinate values and marked numerical values of the filling coordinates and adjacent coordinate points, determine whether the filling pattern overlaps with the filling patterns of the adjacent coordinate points. If there is an overlap, delete the filling coordinates and randomly generate a filling coordinate for the mineral particle again;

[0015] If there is no overlap, fill the mineral particle into the mineral particle simulation model based on the filling coordinates, the size of the filling pattern, and the filling angle;

[0016] Repeat the filling process until all the mineral particles are filled.

[0017] Optionally, the coordinate range of the array is between -1 and 1 to serve as the standard filling pattern.

[0018] Optionally, the generation range of the filling coordinates is the coordinate range of the mineral particle size distribution trend graph.

[0019] Optionally, it further includes:

[0020] Specify the filling pattern of the mineral particle based on the graphic database.

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

[0022] where [x i ,y i represents the coordinate of the i-th inflection point of the polyline of the particle outer contour, and m is the number of inflection points.

[0023] Optionally, the determining the rotation angle of the filling pattern based on the filling angle includes:

[0024]

[0025] where θ is the rotation angle of the filling pattern, [Zx i ,Zy i are the coordinates of the boundary contour of the filling pattern, Z is the magnification factor of the standard filling pattern, [u i ,v i are the coordinates of the filling pattern at [Zx i ,Zy iCoordinates after rotating by θ.

[0026] Optionally, filling the mineral particles into the mineral particle simulation model based on the filled coordinates, the size of the filled pattern, and the filling angle includes:

[0027] Taking the filled coordinates as the center, draw the rotated filled pattern in the mineral particle simulation model based on the size of the filled pattern and the filling angle.

[0028] According to the second aspect of the present invention, a mineral particle random filling device is proposed, including:

[0029] The first establishment module is used to establish a scale distribution trend diagram of mineral particles, and the marked value of each coordinate point on the distribution trend diagram represents the size of the mineral particles corresponding to the position of the coordinate point;

[0030] The second establishment module is used to establish a standard filling pattern database, and the standard filling pattern database stores an array of boundary point coordinates of different contour styles, and each array corresponds to a standard filling pattern;

[0031] The determination and random generation module is used to determine the filling quantity of the mineral particles and randomly generate a filling coordinate of the mineral particles;

[0032] The random determination module is used to randomly determine the filling pattern of the mineral particles based on the pattern database;

[0033] The determination and magnification module is used to determine the magnification factor of the standard filling pattern based on the filled coordinates and the array corresponding to the standard filling pattern, and magnify the filling pattern based on the magnification factor;

[0034] The random determination and rotation module is used to randomly determine the filling angle of the filling pattern and determine the rotation angle of the filling pattern based on the filling angle;

[0035] The judgment module is used to judge whether the filling pattern overlaps with the filling patterns of adjacent coordinate points based on the coordinate values and marked values of the filled coordinates and adjacent coordinate points. If there is an overlap, delete the filled coordinates and randomly generate a filling coordinate of the mineral particles again;

[0036] The filling module is used to, if there is no overlap, fill the mineral particles into the mineral particle simulation model based on the filled coordinates, the size of the filling pattern, and the filling angle;

[0037] The repeated execution module is used to repeatedly execute the filling until all the mineral particles are filled.

[0038] According to a third aspect of the present invention, an electronic device is provided, which includes:

[0039] 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, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute any of the mineral particle random filling methods described in the first aspect.

[0040] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is provided, which stores computer instructions for causing a computer to execute any of the mineral particle random filling methods described in the first aspect.

[0041] The beneficial effects of the present invention are as follows: By establishing a mineral particle size distribution trend graph and a standard filling graph database containing a variety of different standard filling graphs, according to the filling coordinates of the mineral particles, the size and shape of the filling graph of the mineral particles are determined, and the filling angle of the filling graph is randomly determined. The mineral particles are filled into the mineral particle size distribution trend graph, and it is judged whether the filling graph at this filling coordinate overlaps with the filling graphs at adjacent coordinate points according to the coordinate values and marked numerical values of the filling coordinate and adjacent coordinate points, so as to avoid the overlapping of the mineral particles filled into the mineral particle size distribution trend graph. The present invention performs mineral particle filling with the rock mineral particle size trend as a constraint, and can achieve a random filling effect with controllable size distribution and shape; the present invention has randomness, and the results are different each time, but the results of multiple times have reasonable statistics as a whole and maintain a certain rationality with the distribution of mineral scales; the results of mineral particles are consistent with geological understanding, conform to geological laws, and have high credibility; the present invention can conveniently modify the number of times, the shape of mineral particles, and the size of mineral particles; the present invention can conveniently change the effect by adjusting the number of times, the particle graph library, and the size trend graph; in seismic wave field or material mechanics numerical analysis, when carrying out finite element numerical simulation of seismic wave field or mechanical properties for different rock masses, geological structures or materials, and mineral composition distributions, the present invention provides a modeling scheme with both random distribution characteristics, conforming to statistical laws, and controllable size, shape, and flexible selection of the graph library; the present invention can also be easily extended to three-dimensional cases by increasing the dimension of parameters. It can also be conveniently applied in other similar industrial or engineering application fields.

[0042] The system of the present invention has other characteristics and advantages, which will be obvious from the accompanying drawings incorporated herein and the subsequent detailed description, or will be described in detail in the accompanying drawings incorporated herein and the subsequent detailed description. These accompanying drawings and detailed description are used together to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and other objects, features, and advantages of the present invention will become more apparent by describing the exemplary embodiments of the present invention in more detail in conjunction with the accompanying drawings. In the exemplary embodiments of the present invention, the same reference numerals generally represent the same components.

[0044] Figure 1 FIG. shows a flowchart of the steps of a method for randomly packing mineral particles according to the present invention.

[0045] Figure 2 FIG. shows a flowchart of the steps of a method for randomly packing mineral particles according to Embodiment 2 of the present invention.

[0046] Figure 3 FIG. shows a first mineral particle size distribution trend diagram according to Embodiment 2 of the present invention.

[0047] Figure 4 FIG. shows a schematic diagram of the first triangular filling result according to Embodiment 2 of the present invention.

[0048] Figure 5 FIG. shows a schematic diagram of the first circular filling result according to Embodiment 2 of the present invention.

[0049] Figure 6 FIG. shows a schematic diagram of the first circular and triangular filling results according to Embodiment 2 of the present invention.

[0050] Figure 7 FIG. shows a second mineral particle size distribution trend diagram according to Embodiment 2 of the present invention.

[0051] Figure 8 FIG. shows a schematic diagram of the second circular filling result according to Embodiment 2 of the present invention.

[0052] Figure 9 FIG. shows a schematic diagram of the second triangular filling result according to Embodiment 2 of the present invention.

[0053] Figure 10 FIG. shows a schematic diagram of the second circular and triangular filling results according to Embodiment 2 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] The present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0055] As shown Figure 1 in the figure, a method for randomly packing mineral particles according to the present invention includes:

[0056] Establish a size distribution trend chart of mineral particles, and the marked value of each coordinate point on the distribution trend chart represents the size of the mineral particles corresponding to the position of the coordinate point;

[0057] Establish a standard filling graphic database, and the standard filling graphic database stores an array of boundary point coordinates of different contour styles, and each array corresponds to a standard filling graphic;

[0058] Determine the filling quantity of mineral particles, and randomly generate a filling coordinate of a mineral particle;

[0059] Randomly determine the filling graphic of the mineral particle based on the graphic database;

[0060] Determine the magnification factor of the standard filling graphic based on the filling coordinate and the array corresponding to the standard filling graphic, and determine the size of the filling graphic based on the magnification factor;

[0061] Randomly determine the filling angle of the filling graphic, and determine the rotation angle of the filling graphic based on the filling angle;

[0062] Based on the filling coordinate, the coordinate values of adjacent coordinate points, and the marked value, determine whether the filling graphic overlaps with the filling graphics of adjacent coordinate points. If there is an overlap, delete the filling coordinate and randomly generate a filling coordinate of a mineral particle again;

[0063] If there is no overlap, fill the mineral particles into the mineral particle simulation model based on the filling coordinate, the size of the filling graphic, and the filling angle;

[0064] Repeat the filling until all mineral particles are filled.

[0065] Specifically, the present invention takes the trend of rock mineral particle scale as a constraint to control the random filling of rock mineral particles. First, a distribution trend diagram of mineral particle scale is established. The coordinate range of this distribution diagram is consistent with the range. The marked value at each coordinate point on this distribution diagram represents the size of the filling pattern of the filling particles at this position. This trend diagram can be provided by actual measurement or by a mathematical formula, and is in the form of a two-dimensional plane matrix, represented by Z(X,Y), where (X,Y) is the coordinate position of the matrix, and Z represents the size of the filling pattern of the mineral particles at this coordinate point. For example, 30(1,2) represents that the scale of the mineral particles at the coordinate point (1,2) is 30mm; then a standard filling pattern database is established. The standard filling pattern database stores the boundary point coordinate arrays of different contour styles, and each array corresponds to a standard filling pattern; the array coordinate range is between -1 and 1, as the standard size, that is, (x,y) ∈ [-1,1]. It can be considered that the particle center is at the position of (0,0). The number of inflection points of the boundary coordinates of the filling pattern of each particle is not limited. This graphic library can increase or decrease the standard filling patterns as needed; determine the filling quantity of the mineral particles, and randomly generate a filling coordinate of a mineral particle, the coordinate point (X,Y), and the coordinate point range is consistent with the coordinate of the particle scale size distribution trend diagram; read the coordinate array of this particle shape from the standard particle graphic library. This array is in the form of an m×2 matrix, that is, [x i ,y i , i ∈ [1,m], [x i ,y i represents the i-th inflection point coordinate of the polyline of the particle contour, and m is the number of inflection points; determine the size of the mineral particles based on the filling coordinate and the mineral particle scale distribution trend diagram. Read the scale information Z of the point (X,Y) from the particle scale size distribution trend diagram. The Z value reflects the particle scale size range at this point, and can also be understood as the magnification factor of the standard particle graphic library. Determine the magnification factor of the standard filling pattern based on the size of the mineral particles and the size of the standard mineral particles. Magnify the filling pattern based on the magnification factor, and the obtained particle boundary contour size is magnified by Z times, that is, the array Z×[x i ,y i = [Zx i ,Zy i ; randomly determine the filling angle of the filling pattern, and determine the rotation angle of the filling pattern based on the filling angle. The filling angle is θ, θ ∈ [0,2π]. Rotate the particle boundary contour coordinates [Zx i ,Zy i through the following expression to obtain the transformed coordinates [u i ,v i , Based on the coordinate values and marking values of the filling coordinate and adjacent coordinate points, determine whether the filling pattern of the filling coordinate overlaps with the filling patterns of adjacent coordinate points. That is, calculate the shortest distance between the two coordinate points according to the coordinate values of the filling coordinate and the adjacent coordinate points, and then determine whether the filling patterns corresponding to the two coordinate points overlap according to the marking values of the two coordinate points. For example, the filling coordinate is (1, 2), its corresponding marking value is 2, an adjacent coordinate point is (1, 5), and its corresponding marking value is 2. Then the shortest distance between the two coordinate points is 3. The filling pattern is centered on the filling coordinate. Assuming the filling pattern is a circle, the radius of the filling pattern is 1, and the radius of the filling pattern of the other coordinate point is also 1. 1 + 1 = 2 < 3, so the filling patterns of the filling coordinate and the adjacent coordinate point do not overlap; if they overlap, delete the filling coordinate and randomly generate a filling coordinate of a mineral particle again. If they do not overlap, fill the mineral particle into the mineral particle simulation model based on the filling coordinate, the size and filling angle of the filling pattern. Taking the point (X, Y) as the center point, draw the rotated particle contour as above, that is, with the coordinates [X + u i , Y + v i , i ∈ [1, m] as endpoints, draw a closed polyline and fill it with color, and repeat the filling until all the mineral particles are filled; the present invention performs mineral particle filling with the scale trend of rock mineral particles as a constraint, and can achieve a random filling effect with controllable scale distribution and shape.

[0066] In one example, the coordinate range of the array is between -1 and 1 as the standard filling pattern.

[0067] In one example, the generation range of the filling coordinate is the coordinate range of the mineral particle scale distribution trend diagram.

[0068] In one example, it further includes:

[0069] Specify the filling pattern of the mineral particle based on the graphic database.

[0070] Specifically, in addition to randomly determining the filling pattern of the mineral particle from the graphic database, the present invention can also artificially specify the filling pattern of the mineral particle.

[0071] In one example, the array is represented in the form of an m×2 matrix, that is, [x i , y i , i ∈ [1, m];

[0072] Where [x i , y i represents the i-th inflection point coordinate of the polyline of the particle outer contour, and m is the number of inflection points.

[0073] In one example, determining the rotation angle of the filling pattern based on the filling angle includes:

[0074]

[0075] where θ is the rotation angle of the filled pattern, [Zx i , Zy i are the coordinates of the boundary contour of the filled pattern, Z is the magnification factor of the standard filled pattern, [u i , v i are the coordinates of the filled pattern after rotating by θ in [Zx i , Zy i .

[0076] In one example, filling mineral particles into the mineral particle size distribution trend diagram based on the filling coordinates and the rotated filled pattern includes:

[0077] Taking the filling coordinates as the center, draw the rotated filled pattern in the mineral particle size distribution trend diagram based on the size and filling angle of the filled pattern.

[0078] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but it is not intended to limit the present invention. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.

[0079] Embodiment 1

[0080] This embodiment provides a method for randomly filling mineral particles, including:

[0081] Establish a mineral particle size distribution trend diagram, and the marked value of each coordinate point on the distribution trend diagram represents the size of the mineral particle corresponding to the coordinate point position; establish a standard filled pattern database, and the standard filled pattern database stores the boundary point coordinate arrays of different outer contour styles, and each array corresponds to a standard filled pattern, and the coordinate range of the array is between -1 and 1 to be used as the standard filled pattern, and the array is represented in the form of an m×2 matrix, that is, [x i , y i , i ∈ [1, m]; where [x i , y i represents the i-th inflection point coordinate of the polyline of the particle outer contour, and m is the number of inflection points; determine the filling quantity of the mineral particles, and randomly generate a filling coordinate of a mineral particle, and the generation range of the filling coordinate is the coordinate range of the mineral particle size distribution trend diagram; randomly determine the filling pattern of the mineral particle based on the graphic database, or specify the filling pattern of the mineral particle based on the graphic database; determine the magnification factor of the standard filled pattern based on the filling coordinate and the size of the standard filled pattern, and determine the filled pattern based on the magnification factor; randomly determine the filling angle of the filled pattern, determine the rotation angle of the filled pattern based on the filling angle, and perform rotation according to the following formula:

[0082] where θ is the rotation angle of the filled mineral particles, [Zx i , Zy i are the coordinates of the boundary contour of the filled pattern, Z is the magnification factor of the standard filled pattern, [u i , v i are the coordinates of the filled pattern after rotating by θ in [Zx i , Zy i ; determine whether the filled pattern at the filled coordinates overlaps with the filled patterns at adjacent coordinate points based on the coordinate values and coordinate numerical values of the filled coordinates and adjacent coordinate points. If there is an overlap, delete the filled coordinates and randomly generate a new filled coordinate for a mineral particle. If there is no overlap, fill the mineral particle into the mineral particle simulation model based on the filled coordinates, the size of the filled pattern, and the filling angle. With the filled coordinates as the center, draw the rotated filled pattern on the mineral particle scale distribution trend diagram based on the size and filling angle of the filled pattern; repeat the filling until all mineral particles are filled.

[0083] Example 2

[0084] As Figure 2 shown, this example provides a method for randomly filling mineral particles, including:

[0085] In the first step, first establish a scale size distribution trend diagram, and the coordinate range of this distribution diagram is the same as the range. The value corresponding to each coordinate point position on this distribution diagram represents the size of the filling particle pattern at this position. This trend diagram can be provided through actual measurement or through a mathematical formula, and is in the form of a two-dimensional plane matrix, represented by Z(X,Y), where (X,Y) is the coordinate position of the matrix, and Z represents the size of the filling particle at this coordinate point.

[0086] In the second step, establish a graphic database of standard particle shapes. This database stores the boundary point coordinate arrays of different contour styles, and the coordinate range is between -1 and 1, as the standard size, that is, (x,y) ∈ [-1,1], and it can be considered that the particle center is at the position (0,0). The number of inflection points of each particle boundary coordinate is not limited. This graphic library can be increased or decreased as needed.

[0087] In the third step, determine the number of particles N, and randomly generate a coordinate point (X,Y), and the coordinate point range is the same as the coordinates of the particle scale size distribution trend diagram, and set the particle number counter to 1, that is, assign the initial value j = 1.

[0088] In the fourth step, randomly or determine the shape of the particle, and read the coordinate array of this particle shape from the standard particle graphic library. This array is in the form of an m×2 matrix, that is, [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 particle outer contour, and m is the number of inflection points.

[0089] In the fifth step, read the scale information Z of the point (X, Y) from the particle size distribution trend graph. The value of Z reflects the particle size range at this point and can also be understood as the magnification factor of the standard particle shape library.

[0090] In the sixth step, magnify the obtained particle boundary contour size by Z times, that is, the array Z×[x i ,y i = [Zx i ,Zy i .

[0091] In the seventh step, generate a random angle θ, θ∈[0, 2π], and use the following formula to rotate the particle boundary contour coordinates [Zx i ,Zy i to obtain the transformed coordinates [u i ,v i ;

[0092]

[0093] In the eighth step, with the point (X, Y) as the center point, draw the above-mentioned rotated particle contour, that is, draw a closed polyline with the coordinates [X + u i , Y + v i , i∈[1, m] as the endpoints and fill the color.

[0094] In the ninth step, calculate the distance between the center of the particle at (X, Y) and the adjacent particle center, and judge whether there is an overlap according to the sizes of the two particles. If there is an overlap between the two particles, execute the third step above; otherwise, execute the following tenth step; when j = 1 (only one particle), skip this step and execute the tenth step.

[0095] In the tenth step, increment the counter by 1, that is, j = j + 1;

[0096] In the eleventh step, judge the size of j and N: when j < N, execute the third step above; when j ≥ N, the process ends.

[0097] The following uses the random filling method of mineral particles in this embodiment for filling.

[0098] The scale distribution trend graph of the first mineral particle is as Figure 3 shown. The particle size on the left side of this graph is about 30 mm, and the particle size on the right side is 2 mm. The particle size distribution in the graph shows a linear decreasing law from left to right. Among them, the set number is 2000. When using fixed triangular particles for filling, the result is as Figure 4 shown; when using fixed circular particles, the result is asFigure 5 As shown; when adopting random non-fixed particle shapes, the results are as Figure 6 shown. In this random particle design, 7 particle shape styles are designed, and the particle shapes are randomly selected for each point. Of course, the particle shape graphics library can be increased, decreased, and designed according to needs.

[0099] Figure 7 is the second mineral particle size distribution trend graph, obtained by calculating with the following formula;

[0100] Z(x,y) = 30 * abs(sin(4πx / m) + cos(6πy / n))

[0101] Figure 7 The medium scale size is distributed in a periodic pattern. Similarly, for 2000 filling styles, when adopting fixed triangular particles, the effect is as Figure 8 shown; when adopting fixed circular particles, the effect is as Figure 9 shown; when adopting random non-fixed particle shapes, the effect is as Figure 10 shown (using the same 7-particle shape graphics library as above).

[0102] Example 3

[0103] This example provides a mineral particle random filling device, including:

[0104] A first establishment module, used to establish a mineral particle size distribution trend graph, and the coordinate point value of each coordinate point on the distribution trend graph represents the size of the mineral particles at the coordinate point position;

[0105] A second establishment module, used to establish a standard filling graphic database, and the standard filling graphic database stores the boundary point coordinate arrays of different outer contour styles, and each array corresponds to a standard filling graphic;

[0106] A determination and random generation module, used to determine the filling quantity of mineral particles and randomly generate a filling coordinate of a mineral particle;

[0107] A random determination module, used to randomly determine the filling graphic of mineral particles based on the graphic database;

[0108] A determination module, used to determine the filling size of mineral particles based on the filling coordinate and the mineral particle size distribution trend graph;

[0109] A determination and magnification module, used to determine the magnification factor of the standard filling graphic based on the filling size of the mineral particle and the size of the standard filling graphic, and magnify the filling graphic based on the magnification factor;

[0110] A random determination and rotation module, 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;

[0111] A judgment module, configured to judge whether the filling pattern at the filling coordinates overlaps with the filling patterns at adjacent coordinate points based on the coordinate values and marking values of the filling coordinates and the adjacent coordinate points. If there is an overlap, the filling coordinates are deleted and a new filling coordinate of a mineral particle is randomly generated again.

[0112] A filling module, configured to, if there is no overlap, fill the mineral particle into the mineral particle simulation model based on the filling coordinates, the size of the filling pattern, and the filling angle.

[0113] A repeated execution module, configured to repeatedly execute the filling until all the mineral particles are filled, Example 4

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

[0115] 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, and the instructions are executed by the at least one processor to enable the at least one processor to execute the random filling method of mineral particles in Example 1.

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

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

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

[0119] For the detailed description of this embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, and details will not be repeated here.

[0120] Example 5

[0121] This embodiment provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to execute the method for randomly filling mineral particles in Embodiment 1.

[0122] A computer-readable storage medium according to an embodiment of the present disclosure stores non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are run by a processor, all or part of the steps of the methods of the various embodiments of the present disclosure described above are executed.

[0123] The above computer-readable storage medium includes, but is not limited to: optical storage media (such as CD-ROMs and DVDs), magneto-optical storage media (such as MOs), magnetic storage media (such as magnetic tapes or external hard drives), media with built-in rewritable non-volatile memories (such as memory cards), and media with built-in ROMs (such as ROM cartridges).

[0124] The various embodiments of the present invention have been described above. The above description is exemplary and not exhaustive, and is also not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

[0125] The various embodiments of the present invention have been described above. The above description is exemplary and not exhaustive, and is also not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A method for random filling of mineral particles, characterized in that, it includes: Establish a scale distribution trend graph of mineral particles, where the marked value of each coordinate point on the distribution trend graph represents the size of the mineral particle corresponding to the coordinate point; Establish a standard filling graphic database, which stores arrays of boundary point coordinates of different contour styles, and each array corresponds to a standard filling graphic; Determine the filling quantity of the mineral particles and randomly generate a filling coordinate of the mineral particle; Randomly determine the filling graphic of the mineral particle based on the graphic database; Determine the magnification factor of the standard filling graphic based on the filling coordinate and the array corresponding to the standard filling graphic, and determine the size of the filling graphic based on the magnification factor; Randomly determine the filling angle of the filling graphic, and determine the rotation angle of the filling graphic based on the filling angle; Based on the filling coordinate, the coordinate values and marked values of adjacent coordinate points, judge whether the filling graphic overlaps with the filling graphics of adjacent coordinate points. If it overlaps, delete the filling coordinate and randomly generate a new filling coordinate of the mineral particle; If there is no overlap, fill the mineral particle into the mineral particle simulation model based on the filling coordinate, the size of the filling graphic, and the filling angle; Repeat the filling process until all the mineral particles are filled.

2. The method for random filling of mineral particles according to claim 1, characterized in that, The coordinate range of the array is between -1 and 1 to serve as the standard filling graphic.

3. The method for random filling of mineral particles according to claim 1, characterized in that, The generation range of the filling coordinate is the coordinate range of the scale distribution trend graph of the mineral particles.

4. The method for random filling of mineral particles according to claim 1, characterized in that, it further includes: Specify the filling graphic of the mineral particle based on the graphic database.

5. The method for random filling of mineral particles according to claim 1, characterized in that, The array is represented in the form of an m×2 matrix, i.e., [x i , y i , where i ∈ [1, m]; where [x i , y i represents the coordinates of the i-th inflection point of the polyline of the particle outer contour, and m is the number of inflection points.

6. The method for random filling of mineral particles according to claim 5, characterized in that, The determining the rotation angle of the filling graphic based on the filling angle includes: where θ is the rotation angle of the filled figure, [Zx i , Zy i are the boundary contour coordinates of the filled figure, Z is the magnification factor of the standard filled figure, [u i , v i are the coordinates of the filled figure after rotating by θ in [Zx i , Zy i .

7. The method for random filling of mineral particles according to claim 6, characterized in that, The filling the mineral particle into the mineral particle simulation model based on the filling coordinate, the size of the filling graphic, and the filling angle includes: Taking the filling coordinate as the center, draw the rotated filling graphic in the mineral particle simulation model based on the size of the filling graphic and the filling 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, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for random filling of mineral particles 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 execute the mineral particle random filling method according to any one of claims 1-7.

10. A mineral particle random filling device, characterized in that it includes: A first establishment module for establishing a scale distribution trend graph of mineral particles, where the marked value of each coordinate point on the distribution trend graph represents the size of the mineral particles corresponding to the position of the coordinate point; A second establishment module for establishing a standard filling graphic database, where the standard filling graphic database stores boundary point coordinate arrays of different contour styles, and each array corresponds to a standard filling graphic; A determination and random generation module for determining the filling quantity of mineral particles and randomly generating a filling coordinate of the mineral particles; A random determination module for randomly determining the filling graphic of the mineral particles based on the graphic database; A determination and magnification module for determining the magnification factor of the standard filling graphic based on the filling coordinate and the array corresponding to the standard filling graphic, and magnifying the filling graphic based on the magnification factor; A random determination and rotation module for randomly determining the filling angle of the filling graphic and determining the rotation angle of the filling graphic based on the filling angle; A judgment module for judging whether the filling graphic overlaps with the filling graphics of adjacent coordinate points based on the coordinate values and marked values of the filling coordinate and adjacent coordinate points. If there is an overlap, the filling coordinate is deleted and a new filling coordinate of the mineral particles is randomly generated; A filling module for filling the mineral particles into the mineral particle simulation model based on the filling coordinate, the size of the filling graphic, and the filling angle if there is no overlap; A repeated execution module for repeatedly executing the filling until all the mineral particles are filled.