Particle mixing process simulation initial state arrangement method, device, equipment and medium
By obtaining the total number of particles and the number of activated subdomains, and using the medium perpendicular line to determine the particle color for drawing, the problem of automatic distribution of particles in the initial state of the rotary drum is solved, and the simulation accuracy and efficiency of the particle mixing process are improved.
Patent Information
- Application Number
- CN202510531045.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-08
AI Technical Summary
The prior art cannot realize the automatic distribution of particles in the initial state of the rotary drum.
By obtaining the total number of particles and the number of activation subdomains, the number of particles in each activation subdomain is determined, the color of particles is determined using the mid-perpendicular line, and the particles are drawn according to the boundary information of the activation subdomain, so as to achieve automatic distribution of particles.
The automatic distribution of particles in the initial state in the rotary drum is achieved, and the simulation accuracy and efficiency of the particle mixing process are improved.
Smart Images

Figure CN120449451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of particle simulation, and in particular to a method, device, equipment and medium for arranging an initial state of a particle mixing process simulation. Background Art
[0002] The rotary drum is an important equipment for processing particulate materials in industrial production. The mixing process of particulate materials in the rotary drum has a significant impact on product quality and equipment energy consumption, and has always been a research hotspot. Markov chain is an important method for simulating particles. It has the advantages of being simple to understand and having fast calculation speed. Therefore, some researchers have begun to use Markov chain to simulate the mixing process of particulate materials in the rotary drum. For example, the Markov chain is used to simulate the mixing process of monolithic particles in the rotary drum at a fixed speed, the Markov chain is used to simulate the mixing process of multi-component particles in the rotary drum, or the Markov chain is used to simulate the particle mixing process at different speeds. The first step in simulating the mixing process of particles in the rotary drum using Markov chain is to arrange the particles accordingly based on the initial distribution of the particles in the physical object. However, the existing technology cannot achieve the automatic distribution of particles in the initial state. Summary of the Invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for arranging the initial state of a particle mixing process simulation, so as to solve the technical problem in the prior art that the automatic distribution of particles in the initial state cannot be achieved.
[0004] The technical solution of the present invention is as follows: providing a method for arranging the initial state of a particle mixing process simulation, comprising:
[0005] Obtaining the total number of particles and the number of activated subdomains, and determining the number of particles in each of the activated subdomains according to the total number of particles and the number of activated subdomains;
[0006] Determine the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determine the center connection line according to the coordinates of the center points of the two subdomains, and determine the perpendicular bisector of the center connection line;
[0007] The colors of the particles in the different activated subdomains are determined according to the perpendicular bisectors, and the particles are drawn according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains.
[0008] Furthermore, determining the colors of particles in different activated subdomains according to the perpendicular bisector includes:
[0009] The center point of the activation subdomain is obtained, the positional relationship between the center point and the perpendicular bisector is determined, and the colors of the particles in different activation subdomains are determined according to the positional relationship.
[0010] Furthermore, determining the positional relationship between the center point and the perpendicular bisector, and determining the colors of the particles in different activated subdomains according to the positional relationship, includes:
[0011] Determine whether the center point is on the left or right of the perpendicular bisector, determine the color of the particles in the activation subdomain where the center point is on the left of the perpendicular bisector as the first color, and determine the color of the particles in the activation subdomain where the center point is on the right of the perpendicular bisector as the second color.
[0012] Furthermore, determining the colors of particles in different activated subdomains according to the perpendicular bisector includes:
[0013] Determine the midpoint of the center connecting line, obtain the lower intersection point of the perpendicular bisector and the cylinder, divide the line segment between the lower intersection point and the midpoint into a first preset number of equal parts, draw lines passing through the equal division points and parallel to the center connecting line from top to bottom, scan the activation subdomains from top to bottom, determine the type of the activation subdomain based on the positional relationship between the activation subdomain and the corresponding parallel line, and determine the color of the particles in the activation subdomain based on the type of the activation subdomain.
[0014] Furthermore, scanning the activation subdomains sequentially from top to bottom, determining the type of the activation subdomain based on the positional relationship between the activation subdomain and the corresponding parallel line, and determining the color of the particles in the activation subdomain based on the type of the activation subdomain, including:
[0015] The activated subdomains are scanned sequentially from top to bottom, and it is determined whether the activated subdomain is above the corresponding parallel line. If so, the activated subdomain is used as the upper subdomain until the number of the upper subdomains reaches a second preset number, and the remaining activated subdomains are used as the lower subdomains, and the colors of the upper subdomain and the lower subdomain are determined to be the third color and the fourth color, respectively.
[0016] Furthermore, drawing the particles according to the number of particles in the activated subdomain and the color of the particles in the activated subdomain includes:
[0017] Obtain the radius information and center point of the particles in the activated subdomain, calculate the boundary coordinates of the particles based on the radius information and center point of the particles, and if the boundary coordinates are outside the cylinder, translate the center point of the particles so that the boundary coordinates of the particles are inside the cylinder, and fill the number of particles in the activated subdomain with the corresponding color.
[0018] Furthermore, the number of activated subdomains is obtained, including:
[0019] The elements of each column in the transfer matrix are summed in turn. If the sum of the elements of the current column is greater than a preset threshold, the subdomain corresponding to the current column is used as the activated subdomain, and all activated subdomains are obtained to determine the number of activated subdomains.
[0020] Another technical solution of the present invention is as follows: a device for arranging the initial state of a particle mixing process simulation is provided, comprising a particle quantity acquisition module, a mid-perpendicular line determination module, and a drawing module;
[0021] The particle number acquisition module is used to acquire the total number of particles and the number of activated subdomains, and determine the number of particles in each activated subdomain according to the total number of particles and the number of activated subdomains;
[0022] The perpendicular midline determination module is used to determine the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determine the center connection line according to the coordinates of the center points of the two subdomains, and determine the perpendicular midline of the center connection line;
[0023] The drawing module is used to determine the colors of the particles in different activated subdomains according to the perpendicular bisector, and draw the particles according to the number of particles in the activated subdomain and the colors of the particles in the activated subdomain.
[0024] Another technical solution of the present invention is as follows: an electronic device is provided, including a memory and a processor, wherein:
[0025] The memory is used to store computer programs;
[0026] The processor is used to read the computer program in the memory and execute the steps of the method for arranging the initial state of the particle mixing process simulation as described in any of the above technical solutions.
[0027] Another technical solution of the present invention is as follows: a computer-readable storage medium is provided, on which a readable computer program is stored. When the program is executed by a processor, the steps of the initial state arrangement method for simulating a particle mixing process as described in any of the above technical solutions are implemented.
[0028] The beneficial effects of the present invention are: obtaining the total number of particles and the number of activated subdomains, determining the number of particles in each of the activated subdomains according to the total number of particles and the number of activated subdomains; determining the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomains, determining the center connecting line according to the coordinates of the center points of the two subdomains, and determining the perpendicular bisector of the center connecting line; determining the colors of the particles in different activated subdomains according to the perpendicular bisector, and drawing the particles according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains; through the above technical solution, automatic distribution of particles in the initial state can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 1 is a flow chart of a method for arranging the initial state of a particle mixing process simulation provided by an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of a cylinder provided by an embodiment of the present invention;
[0032] Figure 3 is a schematic diagram of a subdomain provided by an embodiment of the present invention;
[0033] Figure 4 is a schematic diagram of an activation subdomain provided by an embodiment of the present invention;
[0034] Figure 5 is a schematic diagram of a material boundary subdomain provided by an embodiment of the present invention;
[0035] Figure 6 Schematic diagram of the upper endpoint and the lower endpoint provided by an embodiment of the present invention;
[0036] Figure 7 is a schematic diagram of a central connecting line provided by an embodiment of the present invention;
[0037] Figure 8 is a schematic diagram of the perpendicular bisector provided by an embodiment of the present invention;
[0038] Figure 9 Schematic diagram of the lower intersection of the perpendicular bisector and the cylinder provided by an embodiment of the present invention;
[0039] Figure 10 is a schematic diagram of a parallel line provided by an embodiment of the present invention;
[0040] Figure 11 Schematic diagram of left-right distributed particle filling provided by an embodiment of the present invention;
[0041] Figure 12 This is a schematic diagram of the effect of the upper and lower distribution of particles provided by an embodiment of the present invention;
[0042] Figure 13 This is a schematic structural diagram of the initial state arrangement of the particle mixing process simulation provided by an embodiment of the present invention;
[0043] Figure 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
[0044] Figure 15 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0046] In the description of this application, words such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order. In this specification, the terms "including," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0047] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] Figure 1 It is a flow chart of the method for arranging the initial state of the particle mixing process simulation according to an embodiment of the present invention. It should be noted that the method for arranging the initial state of the particle mixing process simulation according to the present invention is not limited to the method for arranging the initial state of the particle mixing process simulation according to the present invention if the results are substantially the same. Figure 1 The process sequence shown is limited. Figure 1 As shown, the initial state arrangement method of the particle mixing process simulation mainly includes the following steps:
[0049] S101, obtaining the total number of particles and the number of activated subdomains, and determining the number of particles in each activated subdomain according to the total number of particles and the number of activated subdomains;
[0050] In some embodiments, obtaining the number of activated subdomains includes:
[0051] The elements of each column in the transfer matrix are summed in turn. If the sum of the elements of the current column is greater than a preset threshold, the subdomain corresponding to the current column is used as the activated subdomain, and all activated subdomains are obtained to determine the number of activated subdomains.
[0052] In a specific embodiment, the memory is initialized and can be used to store the number and position information of the particles in each sub-domain. Figure 2 As shown, the schematic diagram of the subdomain is as follows: Figure 3 As shown in FIG, the circumscribed square of the circular rotating cylinder (cylinder) is selected as the calculation domain of the Markov chain, and the calculation domain is divided into subdomains according to the diameter. By counting the transfer probability of particles between subdomains, the transfer probability matrix can be obtained. Through the transfer probability matrix, it is possible to calculate how many particles in subdomain i at time t have transferred to subdomain j at time t+1. The number and number of activated subdomains (subdomains where particles exist) can be obtained according to the transfer probability matrix. Specifically, the movement area of the particles can be determined by the calculation domain, and the calculation domain can be determined according to the actual movement range of the particles in the rotating cylinder. In order to facilitate the subdomain division, the circumscribed square of the circular rotating cylinder can be selected as the calculation domain Ψ. The number of activated subdomains can be determined by judging whether each subdomain in the calculation domain Ψ is activated. For example, taking subdomain i as an example, the elements of the i-th column of the transfer matrix P are summed. If the sum of the elements of the column is greater than a certain threshold (for example, 0.5), subdomain i is considered to be in an activated state, otherwise it is in an inactivated state. The schematic diagram of the activated subdomain is shown in FIG. Figure 4 As shown, Figure 4 The middle gray area is the activated subdomain. Figure 4 The xy coordinate system is the coordinate system for the two-dimensional radial motion of the particles. The horizontal coordinate x is the horizontal position coordinate of the particle, and the vertical coordinate y is the longitudinal position coordinate of the particle, and the unit is m. The number of particles in each activation subdomain can be calculated based on the total number of particles and the number of activation subdomains. Specifically, the number of particles in each activation subdomain is equal to the total number of particles divided by the number of activation subdomains. It should be noted that because this calculation method has the problem of indivisibility, in this case, the number of particles in each activation subdomain can be rounded down first, and then the remaining particles can be distributed to different activation subdomains one by one.
[0053] S102, determining the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determining a center connecting line according to the coordinates of the center points of the two subdomains, and determining the perpendicular bisector of the center connecting line;
[0054] In a specific embodiment, the two subdomains at both ends of the material bed surface can be calculated based on the boundary information of the activated subdomain. Specifically, the subdomain at the material boundary can be searched, wherein the schematic diagram of the material boundary subdomain is as follows: Figure 5 As shown, Figure 5 The dark grey area is the boundary subdomain of the material. The boundary subdomain with the largest y-coordinate value is the upper endpoint (subdomain) of the material surface, and the boundary subdomain with the largest x-coordinate value is the lower endpoint (subdomain) of the material surface. The schematic diagram of the upper endpoint and the lower endpoint is as follows: Figure 6 As shown, Figure 6The upper and lower endpoints are respectively the upper endpoint and the lower endpoint, and the coordinates of the center points of the two subdomains are calculated, and the two center points are connected to form a line segment, that is, the center connection line is determined according to the coordinates of the center points of the two subdomains. Specifically, the center points of the subdomains can be fitted to obtain a fitting straight line to obtain the center connection line. The schematic diagram of the center connection line is as follows: Figure 7 As shown. The coordinates of the midpoint of the center connecting line and the slope of the perpendicular bisector can be calculated. The schematic diagram of the perpendicular bisector is as follows: Figure 8 shown.
[0055] S103 , determining the colors of the particles in different activated subdomains according to the perpendicular bisector, and drawing the particles according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains.
[0056] In some embodiments, determining the colors of particles in different activated subdomains according to the perpendicular bisector includes:
[0057] The center point of the activation subdomain is obtained, the positional relationship between the center point and the perpendicular bisector is determined, and the colors of the particles in different activation subdomains are determined according to the positional relationship.
[0058] In a specific embodiment, each activated subdomain is scanned cyclically, the center point of each activated subdomain is calculated, and it is determined whether its center point is on the left or right side of the perpendicular bisector, and the particle ID, coordinates, and color of the activated subdomains in the upper and lower or left and right layered areas are set respectively.
[0059] In some embodiments, determining the positional relationship between the center point and the perpendicular bisector, and determining the colors of particles in different activated subdomains according to the positional relationship, includes:
[0060] Determine whether the center point is on the left or right of the perpendicular bisector, determine the color of the particles in the activation subdomain where the center point is on the left of the perpendicular bisector as the first color, and determine the color of the particles in the activation subdomain where the center point is on the right of the perpendicular bisector as the second color.
[0061] In one specific embodiment, the currently active subdomain is scanned to obtain its boundary information. The coordinates of the center point of the active subdomain are calculated to determine whether the center point is to the left of the perpendicular bisector. Specifically, the center point coordinates can be substituted into the perpendicular bisector formula to determine the size. If the condition is met (the center point is to the left of the perpendicular bisector), a corresponding number of particles are set in the active subdomain. It should be noted that the initial center position of the particles can be set randomly, the particle ID can be encoded in sequence, and the color attribute can be the first color (for example, red). The above particle information can be stored in memory (corresponding to the position of the active subdomain); the next active subdomain is scanned until all active subdomains have been scanned.
[0062] In some embodiments, determining the colors of particles in different activated subdomains according to the perpendicular bisector includes:
[0063] Determine the midpoint of the center connecting line, obtain the lower intersection point of the perpendicular bisector and the cylinder, divide the line segment between the lower intersection point and the midpoint into a first preset number of equal parts, draw lines passing through the equal division points and parallel to the center connecting line from top to bottom, scan the activation subdomains from top to bottom, determine the type of the activation subdomain based on the positional relationship between the activation subdomain and the corresponding parallel line, and determine the color of the particles in the activation subdomain based on the type of the activation subdomain.
[0064] In a specific embodiment, the lower intersection point of the perpendicular bisector and the cylinder is obtained, and a schematic diagram of the lower intersection point of the perpendicular bisector and the cylinder is shown as follows: Figure 9 As shown, the line segment between the midpoint of the center connecting line and the lower intersection point is divided into equal parts, and lines passing through the equal division points and parallel to the center connecting line are gradually drawn (progressively moving downward parallel lines). The activated subdomain is scanned to see if it is above the parallel line. If so, the activated subdomain is used as the upper subdomain. Each time a subdomain is scanned, it is determined whether the required number of upper subdomains (the second preset number) has been reached. If so, the determination of the upper subdomain is terminated, otherwise the determination continues.
[0065] In some embodiments, scanning the activation subdomains sequentially from top to bottom, determining the type of the activation subdomain based on the positional relationship between the activation subdomain and the parallel line, and determining the color of the particles in the activation subdomain based on the type of the activation subdomain includes:
[0066] The activated subdomains are scanned sequentially from top to bottom, and it is determined whether the activated subdomain is above the corresponding parallel line. If so, the activated subdomain is used as the upper subdomain until the number of the upper subdomains reaches a second preset number, and the remaining activated subdomains are used as the lower subdomains, and the colors of the upper subdomain and the lower subdomain are determined to be the third color and the fourth color, respectively.
[0067] In a specific embodiment, a first preset number of equal divisions is set, for example, 8 equal divisions, the memory of the upper sub-domain is initialized, the equal division points are calculated from top to bottom, and the lines passing through the equal division points and parallel to the center connecting line are calculated. A schematic diagram of a parallel line is shown as follows: Figure 10 As shown, Figure 10 The dotted lines in the figure are parallel lines; obtain the activated subdomain information (center point coordinates) and determine whether the activated subdomain (center point) is above the parallel line. Specifically, the subdomain center point coordinates can be substituted into the parallel line formula for determination; if the activated subdomain is above the parallel line and there is no activated subdomain in the memory, store the activated subdomain information in the memory of the upper subdomain, and determine whether the number of activated subdomains in the memory has reached a second preset number (for example, half of the number of all activated subdomains). If so, it means that the determination of the upper subdomain has been completed.
[0068] The activated subdomain can be scanned to determine whether it is a lower-level subdomain. If so, a corresponding number of particles of the fourth color (for example, red) are generated in the activated subdomain and the particle information is stored. Specifically, the boundary information of the activated subdomain is obtained, the positional relationship between the activated subdomain and the corresponding parallel line is determined, and it is determined whether the activated subdomain is a lower-level subdomain, that is, an activated subdomain that has not been saved in the upper-level subdomain memory. If so, the process proceeds downward and a corresponding number of particles are arranged in the subdomain, wherein the particle positions are randomly arranged, the particle IDs are encoded in sequence, the color attribute can be red, and the above-mentioned particle information is stored in the memory (the position of the corresponding subdomain).
[0069] In some embodiments, drawing particles according to the number of particles in the activated subdomain and the color of the particles in the activated subdomain includes:
[0070] Obtain the radius information and center point of the particles in the activated subdomain, calculate the boundary coordinates of the particles based on the radius information and center point of the particles, and if the boundary coordinates are outside the cylinder, translate the center point of the particles so that the boundary coordinates of the particles are inside the cylinder, and fill the number of particles in the activated subdomain with the corresponding color.
[0071] In a specific embodiment, the information of each particle in each subdomain stored in the memory, namely, the radius information, position coordinates, color and other information, is cyclically loaded and the particles are drawn respectively. Specifically, the boundary coordinate information of the particle is calculated based on the particle radius information, with the particle center as the center of the circle. If the calculated particle boundary coordinate is outside the cylinder, the particle center is translated so that it is inside the cylinder. If the boundary coordinates are all inside the cylinder, no operation is performed, and the filling function is used to fill the particles with a specified color. The filling function can also be set to display the particle boundary. The schematic diagram of the particle filling is distributed on the left and right, as shown in FIG. Figure 11 As shown in the figure, the effect of particle distribution up and down is shown in the figure. Figure 12 shown.
[0072] An embodiment of the present invention provides a method for arranging the initial state of a particle mixing process simulation, by obtaining the total number of particles and the number of activated subdomains, determining the number of particles in each activated subdomain according to the total number of particles and the number of activated subdomains; determining the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomains, determining the center connecting line according to the coordinates of the center points of the two subdomains, and determining the perpendicular bisector of the center connecting line; determining the colors of the particles in different activated subdomains according to the perpendicular bisector, and drawing the particles according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains, so as to realize automatic distribution of particles in the initial state, specifically, realizing automatic left-right distribution and automatic up-down distribution of particles in the initial state.
[0073] Figure 13 1 is a schematic structural diagram of an initial state arrangement for a particle mixing process simulation according to an embodiment of the present invention. The initial state arrangement 130 for a particle mixing process simulation includes a particle quantity acquisition module 131, a perpendicular midline determination module 132, and a drawing module 133.
[0074] The particle number acquisition module 131 is used to acquire the total number of particles and the number of activated subdomains, and determine the number of particles in each activated subdomain according to the total number of particles and the number of activated subdomains;
[0075] The perpendicular midline determination module 132 is used to determine the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determine the center connection line according to the coordinates of the center points of the two subdomains, and determine the perpendicular midline of the center connection line;
[0076] The drawing module 133 is configured to determine the colors of the particles in different activated subdomains according to the perpendicular bisector, and draw the particles according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains.
[0077] For other details about how the modules in the above-mentioned particle mixing process simulation initial state arrangement device implement the above-mentioned technical solution, please refer to the description of the particle mixing process simulation initial state arrangement method provided in the above-mentioned invention embodiment, which will not be repeated here.
[0078] Figure 14 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 14 As shown, the electronic device 140 includes a processor 141 and a memory 142 communicatively connected to the processor 141 .
[0079] The memory 142 stores program instructions for implementing the initial state arrangement method for simulating the particle mixing process according to any of the above embodiments.
[0080] The processor 141 is configured to execute program instructions stored in the memory 142 to perform initial state arrangement of the particle mixing process simulation.
[0081] The processor 141 may also be referred to as a CPU (Central Processing Unit). The processor 141 may be an integrated circuit chip having signal processing capabilities. The processor 141 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor may be a microprocessor or any conventional processor.
[0082] The memory 142 may be used to store the computer programs and / or modules. The processor 141 implements various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory 142 and calling data stored in the memory 142. The memory 142 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, at least one application required for a function, and the like.
[0083] The memory 142 may be integrated into the processor 141 or may be provided separately from the processor 141 .
[0084] The embodiment of the present invention provides a computer-readable storage medium, the structural diagram of which is as follows: Figure 15 As shown, the storage medium 150 stores a readable computer program 151; wherein, the computer program 151 can be stored in the above-mentioned storage medium 150 in the form of a software product, including a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in various embodiments of the present invention. The aforementioned storage medium 150 includes: a USB flash drive, a mobile hard drive, a magnetic disk or optical disk, ROM (Read-Only Memory), RAM (Random Access Memory), and other media that can store program code, or a terminal device such as a computer, server, mobile phone, tablet computer, etc.
[0085] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the modules described above is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0086] The modules described above as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0087] In addition, the functional modules in the various embodiments of the present application may be integrated into a single processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the aforementioned integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium.
[0088] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0089] The above-mentioned computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, all or part of the above-mentioned process or function according to the embodiment of the present application is generated. The above-mentioned computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from a website, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, a computer, a server or a data center. The above-mentioned computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, a data center that includes one or more available media integrations. The above-mentioned available medium can be a magnetic medium, (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state drive (SSD)).
[0090] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used in the present application to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0091] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatuses and computer program products according to the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0093] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0095] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for arranging the initial state of a particle mixing process simulation, characterized in that: The method comprises: Obtaining the total number of particles and the number of activated subdomains, and determining the number of particles in each of the activated subdomains according to the total number of particles and the number of activated subdomains; Determine the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determine the center connection line according to the coordinates of the center points of the two subdomains, and determine the perpendicular bisector of the center connection line; The colors of the particles in the different activated subdomains are determined according to the perpendicular bisectors, and the particles are drawn according to the number of particles in the activated subdomains and the colors of the particles in the activated subdomains.
2. The method for arranging the initial state of a particle mixing process simulation according to claim 1, characterized in that: Determining the colors of particles in different activated subdomains according to the perpendicular bisector includes: The center point of the activation subdomain is obtained, the positional relationship between the center point and the perpendicular bisector is determined, and the colors of the particles in different activation subdomains are determined according to the positional relationship.
3. The method for arranging the initial state of a particle mixing process simulation according to claim 2, characterized in that: Determining the positional relationship between the center point and the perpendicular bisector, and determining the colors of particles in different activated subdomains according to the positional relationship, includes: Determine whether the center point is on the left or right of the perpendicular bisector, determine the color of the particles in the activation subdomain where the center point is on the left of the perpendicular bisector as the first color, and determine the color of the particles in the activation subdomain where the center point is on the right of the perpendicular bisector as the second color.
4. The method for arranging the initial state of a particle mixing process simulation according to claim 1, characterized in that: Determining the colors of particles in different activated subdomains according to the perpendicular bisector includes: Determine the midpoint of the center connecting line, obtain the lower intersection point of the perpendicular bisector and the cylinder, divide the line segment between the lower intersection point and the midpoint into a first preset number of equal parts, draw lines passing through the equal division points and parallel to the center connecting line from top to bottom, scan the activation subdomains from top to bottom, determine the type of the activation subdomain based on the positional relationship between the activation subdomain and the corresponding parallel line, and determine the color of the particles in the activation subdomain based on the type of the activation subdomain.
5. The method for arranging the initial state of a particle mixing process simulation according to claim 4, characterized in that: Scanning the activation subdomains sequentially from top to bottom, determining the type of the activation subdomain based on the positional relationship between the activation subdomain and the corresponding parallel line, and determining the color of the particles in the activation subdomain based on the type of the activation subdomain, including: The activated subdomains are scanned sequentially from top to bottom, and it is determined whether the activated subdomain is above the corresponding parallel line. If so, the activated subdomain is used as the upper subdomain until the number of the upper subdomains reaches a second preset number, and the remaining activated subdomains are used as the lower subdomains, and the colors of the upper subdomain and the lower subdomain are determined to be the third color and the fourth color, respectively.
6. The method for arranging the initial state of a particle mixing process simulation according to claim 1, characterized in that: Drawing particles according to the number of particles in the activated subdomain and the color of the particles in the activated subdomain includes: Obtain the radius information and center point of the particles in the activated subdomain, calculate the boundary coordinates of the particles based on the radius information and center point of the particles, and if the boundary coordinates are outside the cylinder, translate the center point of the particles so that the boundary coordinates of the particles are inside the cylinder, and fill the number of particles in the activated subdomain with the corresponding color.
7. The method for arranging the initial state of a particle mixing process simulation according to claim 1, characterized in that: Get the number of activated subdomains, including: The elements of each column in the transfer matrix are summed in turn. If the sum of the elements of the current column is greater than a preset threshold, the subdomain corresponding to the current column is used as the activated subdomain, and all activated subdomains are obtained to determine the number of activated subdomains.
8. A device for arranging the initial state of a particle mixing process simulation, characterized in that: It includes a particle number acquisition module, a median vertical line determination module, and a drawing module; The particle number acquisition module is used to obtain the total number of particles and the number of activated subdomains, and determine the number of particles in each activated subdomain according to the total number of particles and the number of activated subdomains; The perpendicular midline determination module is used to determine the subdomains at both ends of the material bed surface according to the boundary information of the activated subdomain, determine the center connection line according to the coordinates of the center points of the two subdomains, and determine the perpendicular midline of the center connection line; The drawing module is used to determine the colors of the particles in different activated subdomains according to the perpendicular bisector, and draw the particles according to the number of particles in the activated subdomain and the colors of the particles in the activated subdomain.
9. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the method for arranging the initial state of a particle mixing process simulation according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for arranging the initial state of a particle mixing process simulation according to any one of claims 1 to 7 are implemented.