Method and system for treating fluid particles near solid wall boundary and medium
By determining the interaction force between the fluid particles and the solid wall boundary in smooth particle fluid dynamics, the boundary core truncation problem is solved, improving the accuracy of simulation simulation and reducing boundary gaps.
Patent Information
- Application Number
- CN202411490682.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-10-24
AI Technical Summary
Smooth particle fluid dynamics have boundary core truncation problems when dealing with solid wall boundary conditions, resulting in low accuracy of simulation.
By obtaining the fluid particles to be processed and their corresponding solid wall boundaries, a search domain is determined, and a search based on the fluid particles to be processed and a search domain is determined to determine the set of neighboring particles. Then, the interaction forces between the particles are calculated and these interaction forces are processed to obtain the target force synergistic force acting on the fluid particles to be processed.
By reducing the boundary gap during simulation, it improves the accuracy of simulation and eliminates the problem of fluid particles penetrating the boundary.
Smart Images

Figure CN119598823A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of simulation technology, and in particular to a method, system, electronic equipment and storage medium for processing fluid particles near a solid wall boundary. Background Art
[0002] Smoothed particle fluid dynamics is usually used to simulate free surface flow problems with high speed, severe impact, and large deformation. However, in actual simulation applications, due to the meshless nature of smoothed particle fluid dynamics, the boundary core truncation problem, that is, the solid wall boundary condition problem, occurs during the simulation, resulting in low simulation accuracy. A variety of solutions have been proposed for the solid wall boundary condition problem, but the simulation accuracy of the existing solutions is not high. Summary of the invention
[0003] The main purpose of the embodiments of the present invention is to provide a method, system, electronic device and storage medium for processing fluid particles near a solid wall boundary, which can solve one or more of the above-mentioned technical problems to a certain extent.
[0004] To achieve the above object, one aspect of an embodiment of the present invention provides a method for processing fluid particles near a solid wall boundary, the method comprising:
[0005] Acquire fluid particles to be processed and solid wall boundaries corresponding to the fluid particles to be processed, and determine a search domain according to the solid wall boundaries and a first preset parameter;
[0006] Searching according to the fluid particles to be processed and the search domain to determine a neighborhood particle set;
[0007] Calculation is performed based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, and the interaction force between the particles is processed to obtain a target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
[0008] In some embodiments, searching according to the fluid particles to be processed and the search domain to determine the neighborhood particle set specifically includes:
[0009] Dividing the search domain into grids according to a first preset distance to obtain a plurality of search grids; wherein each of the search grids contains a plurality of particles;
[0010] Determine first position information according to the fluid particles to be processed, calculate according to the first position information and a plurality of the search grids to obtain a plurality of neighborhood grids; for each of the neighborhood grids, determine a particle position information set according to the neighborhood grid;
[0011] Performing distance calculation based on the first position information and the particle position information set to obtain a first distance set; and comparing a first distance in the first distance set with the first preset distance;
[0012] If the first distance is less than or equal to the first preset distance, the particle corresponding to the first distance is marked as a neighborhood particle; otherwise, the particle is marked as a non-neighborhood particle; a neighborhood particle set is obtained according to the neighborhood particle
[0013] In some embodiments, the calculation based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles specifically includes:
[0014] Performing label recognition on the neighborhood particles in the neighborhood particle set to obtain the particle type of the neighborhood particles;
[0015] If the particle type is a fluid particle, the neighboring particle is marked as a first particle, and a fluid-fluid particle force is obtained by calculating according to a second preset distance, the first particle and the fluid particle to be processed, and the fluid-fluid particle force is used as the interaction force between the particles;
[0016] If the particle type is a solid wall boundary particle, the neighborhood particle is marked as a second particle, and a solid wall boundary-fluid particle force is obtained based on a third preset distance, the second particle and the fluid particle to be processed, and the solid wall boundary-fluid particle force is used as the interaction force between the particles.
[0017] In some embodiments, the calculation based on the second preset distance, the first particle and the fluid particle to be processed to obtain the fluid-fluid particle force specifically includes:
[0018] Calculating the first particle and the fluid particle to be processed to obtain a second distance, and comparing the second distance with the second preset distance;
[0019] If the second distance is less than or equal to the second preset distance, the fluid-fluid particle force is obtained by performing a dynamic calculation on the first particle and the fluid particle to be processed.
[0020] In some embodiments, the calculation based on the third preset distance, the second particle and the fluid particle to be processed to obtain the solid wall boundary-fluid particle force specifically includes:
[0021] Calculating based on the second particles and the fluid particles to be processed to obtain a third distance, and comparing the third distance with the third preset distance;
[0022] If the third distance is less than or equal to the third preset distance, the solid wall boundary-fluid particle force is obtained by performing dynamic calculations based on the second particles and the fluid particles to be processed.
[0023] In some embodiments, the processing of the interaction forces between the particles to obtain the target combined force specifically includes:
[0024] The interaction forces between the particles are superimposed on the fluid particles to be processed to obtain the target force resultant; wherein the interaction forces between the particles include fluid-fluid particle force and solid wall boundary-fluid particle force.
[0025] In some embodiments, the method further comprises:
[0026] A boundary contour is determined according to the solid wall boundary, and the boundary contour is extended according to a fourth preset distance to obtain a boundary area; and solid wall boundary particles are generated in the boundary area according to a preset density.
[0027] To achieve the above object, another aspect of the embodiment of the present application provides a system for processing fluid particles near a solid wall boundary, the system comprising:
[0028] The first module is used to obtain the fluid particles to be processed and the solid wall boundaries corresponding to the fluid particles to be processed, and determine the search domain according to the solid wall boundaries and the first preset parameters;
[0029] The second module is used to search according to the fluid particles to be processed and the search domain to determine a neighborhood particle set;
[0030] The third module is used to calculate based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, process the interaction force between the particles, and obtain the target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
[0031] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0032] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0033] Implementation of the embodiments of the present invention includes the following beneficial effects: the embodiments of the present application provide a method, system, electronic device and storage medium for processing fluid particles near a solid wall boundary. The scheme obtains the fluid particles to be processed and their corresponding solid wall boundaries, and determines a search domain according to the determined solid wall boundaries; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculates according to the fluid particles to be processed and each particle in the neighborhood particle set to obtain the interaction force between each neighborhood particle and the fluid particles to be processed; processes the interaction force between the neighborhood particles and the fluid particles to be processed to obtain a target force resultant acting on the fluid particles to be processed; processes the fluid particles according to the interaction between the fluid particles and the neighborhood particles, and through the superposition of forces, brings the particles closer to the boundary, reduces the boundary gap during simulation, and improves the simulation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic flow chart of the steps of a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0035] Figure 2 It is a schematic flow chart of another step of a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0036] Figure 3 It is a schematic flow chart of the steps of determining a neighborhood particle set in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0037] Figure 4 It is a schematic flow chart of the steps of obtaining particle interaction in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0038] Figure 5 It is a schematic flow chart of the steps of calculating the fluid-fluid particle force in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0039] Figure 6 It is a schematic flow chart of the steps of calculating the force between a solid wall boundary and a fluid particle in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0040] Figure 7 It is a schematic diagram of a step flow of a specific embodiment provided by an embodiment of the present invention;
[0041] Figure 8 It is a structural block diagram of a system for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;
[0042] Fig. 9It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0044] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0045] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.
[0046] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present invention have the same meanings as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present invention are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0047] In the related technology, smoothed particle fluid dynamics is a meshless Lagrangian particle numerical method, which is used to simulate free surface flow problems with high speed, severe impact and large deformation. However, due to the meshless nature of smoothed particle fluid dynamics, the support domain truncation problem occurs when dealing with solid wall boundary conditions. There is a certain distance of gap between the fluid particles and the actual solid wall boundary, resulting in low simulation precision and low accuracy. At the same time, when simulating high-speed and violently impacted fluids, there is also the problem of fluid particles penetrating the boundary. When the amount of simulation data is large, too much data needs to be calculated, and the simulation efficiency is low.
[0048] In view of this, an embodiment of the present application provides a method, system, electronic device and storage medium for processing fluid particles near a solid wall boundary. The scheme obtains the fluid particles to be processed and their corresponding solid wall boundaries, and determines a search domain according to the determined solid wall boundaries; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculates according to the fluid particles to be processed and each neighborhood particle in the neighborhood particle set to obtain the interaction force between each neighborhood particle and the fluid particles to be processed; processes the interaction force to obtain a target force resultant acting on the fluid particles to be processed; processes by searching for neighborhood particles to reduce the amount of data that needs to be calculated and improves the efficiency of simulation; determines the state of the particles by calculating the interaction between the particles, so that the particles are closer to the boundary, reduces the gap, and thus improves the accuracy of the simulation.
[0049] Figure 1 is an optional flow chart of a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention. Figure 1 The method may include but is not limited to steps S101 to S103.
[0050] Step S101, obtaining the fluid particles to be processed and the solid wall boundaries corresponding to the fluid particles to be processed, and determining the search domain according to the solid wall boundaries and the first preset parameters;
[0051] Step S102, searching according to the fluid particles to be processed and the search domain to determine a neighborhood particle set;
[0052] Step S103, calculating based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, processing the interaction force between the particles to obtain the target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
[0053] In the steps S101 to S103 shown in the embodiment of the present application, by determining the fluid particles to be processed, the corresponding solid wall boundaries are determined according to the selected fluid particles, and the search range of the current fluid particles is defined according to the determined solid wall boundaries and preset parameters, and the preset parameters can be the support domain radius of the current fluid particles; after determining the search domain, the neighboring particles of the current particles are determined by searching in the search domain according to the current fluid particles; the neighboring particles can be regarded as particles that interact with the current fluid particles. In the subsequent simulation process, the interaction of the neighboring particles with the current fluid particles is analyzed without considering other particles, thereby reducing the amount of data calculated during the simulation and improving the efficiency of the simulation; when analyzing the interaction between the neighboring particles and the current fluid particles, an independent dynamic analysis is performed on each neighboring particle to reduce the interference between different neighboring particles, so as to improve the precision and accuracy of the simulation; after completing the interaction analysis between each neighboring particle and the current fluid particle, different interactions are superimposed on the current fluid particle, the influence of different neighboring particles on the current fluid particle is comprehensively analyzed, and the state of the current fluid particle, such as particle position, velocity, direction of movement, etc., is updated.
[0054] Please participate Figure 2 In some embodiments, a method for processing fluid particles near a solid wall boundary provided in an embodiment of the present application may include but is not limited to step S201:
[0055] Step S201, determining a boundary contour according to a solid wall boundary, extending the boundary contour according to a fourth preset distance to obtain a boundary region; and generating solid wall boundary particles in the boundary region according to a preset density.
[0056] In step S201 of some embodiments, in order to reduce the penetration of fluid particles through the solid wall boundary during the simulation process, a certain density of solid wall boundary particles is set along the determined solid wall boundary, specifically, its boundary contour is determined according to the solid wall boundary, and based on the boundary contour and a preset distance, it is extended outside the solid wall boundary to obtain a corresponding boundary neighborhood; a certain density of boundary particles is set within the boundary area, and the density of the boundary particles can be set in advance or dynamically set according to the parameters of the boundary area; the set solid wall boundary particles interact with the fluid particles close to the solid wall boundary, and the motion state of the fluid particles is changed, so that the velocity of the fluid particles at the solid wall boundary is zero, thereby eliminating the problem of fluid particles penetrating the boundary.
[0057] In step S101 of some embodiments, the search range and the fluid particles to be processed may be defined manually, or the search range and the fluid particles to be processed may be defined automatically by setting several parameters, without limitation thereto.
[0058] See also Figure 3In some embodiments, step S102 may include but is not limited to steps S301 to S304:
[0059] Step S301, dividing the search domain into grids according to a first preset distance to obtain a plurality of search grids; wherein each search grid contains a plurality of particles;
[0060] Step S302, determining first position information according to the fluid particles to be processed, performing calculations based on the first position information and a plurality of search grids to obtain a plurality of neighborhood grids; for each neighborhood grid, determining a particle position information set according to the neighborhood grid;
[0061] Step S303, performing distance calculation according to the first position information and the particle position information set to obtain a first distance set; and comparing the first distance in the first distance set with the first preset distance;
[0062] Step S304: if the first distance is less than or equal to the first preset distance, mark the particle corresponding to the first distance as a neighborhood particle; otherwise, mark the particle as a non-neighborhood particle; and obtain a neighborhood particle set according to the neighborhood particles.
[0063] In step S301 of some embodiments, after the search domain is determined, a search for neighboring particles is performed based on the selected current fluid particles; in this embodiment, the determined search domain is gridded according to pre-set parameters, and the particles in the search domain are divided into corresponding grids. The particles in the search domain are preliminarily classified through gridding, thereby reducing the amount of data processing during the search process and improving the search efficiency of neighboring particles.
[0064] In step S302 of some embodiments, after the search domain is gridded, the grid where the current fluid particle is located is determined according to the position information of the selected fluid particle, and then the neighborhood grid of the current fluid particle in the gridded search domain is determined, and the particles contained in the neighborhood grid are used as target particles of the current fluid particle; by performing label recognition on the determined target particles, the corresponding properties of the target particles are obtained, such as the current position, speed, movement direction, etc. of the target particles; wherein the labels carried by the target particles are assigned when the particle model is initially constructed.
[0065] In step S303 of some embodiments, after label identification is performed on the target particles and relevant position information of the target particles is obtained, the distance between each target particle and the current fluid particle is calculated, and the target particles in the neighborhood grid are screened according to the relationship between the distance between each target particle and the current fluid particle and the preset distance, so as to obtain the target particles that can interact with the current fluid particles, so as to perform subsequent interaction calculations, and further screen the particles around the current fluid particles, thereby reducing the amount of data and improving the efficiency of simulation.
[0066] In step S304 of some embodiments, if the distance between the target particle and the current fluid particle exceeds the preset distance, it means that the current target particle cannot interact with the current fluid particle, or the interaction generated by the current target particle on the current fluid particle is small and cannot have a significant impact on the motion state of the current fluid particle, and can be ignored; such target particles are marked as non-neighborhood particles, and the interaction between such particles and the current neighboring particles is not analyzed; if the distance between the target particle and the current fluid particle is less than or equal to the preset distance, it means that the current target particle can interact with the current fluid particle, or its interaction has a significant impact on the motion state of the current fluid particle, and such particles are marked as neighboring particles as the target objects for subsequent interaction calculations.
[0067] See also Figure 4 In some embodiments, step S103 may include but is not limited to steps S401 to S403:
[0068] Step S401, performing label recognition on the neighborhood particles in the neighborhood particle set to obtain the particle type of the neighborhood particles;
[0069] Step S402, if the particle type is a fluid particle, mark the neighboring particle as a first particle, calculate according to the second preset distance, the first particle and the fluid particle to be processed, obtain the fluid-fluid particle force, and use the fluid-fluid particle force as the interaction force between the particles;
[0070] Step S403, if the particle type is a solid wall boundary particle, mark the neighboring particle as a second particle, calculate according to the third preset distance, the second particle and the fluid particle to be processed, obtain the solid wall boundary-fluid particle force, and use the solid wall boundary-fluid particle force as the interaction force between particles.
[0071] In step S401 of some embodiments, label identification is performed on the screened neighborhood particles, and attribute information such as the particle type of the current neighborhood particles is extracted. According to the type of the neighborhood particles, different calculation methods are selected to calculate the interaction between the current neighborhood particles and the current fluid particles. For example, if the particle type of the current neighborhood particles is fluid particles, it means that the fluid particles may still be far away from the solid wall boundary, and the interaction received by the current fluid particles is mainly generated by the surrounding fluid particles. If the particle type of the current neighborhood particles is solid wall boundary particles, it means that the fluid particles may be close to the solid wall boundary, and the interaction received by the current fluid particles may be mainly the repulsive force generated by the solid wall boundary, which decelerates the fluid particles.
[0072] In step S402 of some embodiments, if the type of the current neighborhood particle is a fluid particle, the support domain size between the current neighborhood particle and the currently selected fluid particle is set to a first preset distance, and the interaction between the two particles is calculated based on the set support domain size, the neighborhood particle, and the current fluid particle; at the same time, the direction of the interaction is determined based on the movement directions of the neighborhood particle and the fluid particle, so as to facilitate the subsequent superposition of the interaction.
[0073] In step S403 of some embodiments, if the particle type of the current neighborhood particle is a solid wall boundary particle, the support domain size between the current neighborhood particle and the currently selected fluid particle is set to a second preset distance, and the interaction is calculated based on the set support domain size, the current neighborhood particle, and the current fluid particle; for the currently selected fluid particle, the calculated interaction is the repulsive force exerted by the solid wall boundary particle, and the direction of the repulsive force is determined according to the motion state of the currently selected fluid particle.
[0074] Please participate Figure 5 In some embodiments, step S302 may include but is not limited to steps S501 to S502:
[0075] Step S501, calculating based on the first particle and the fluid particle to be processed to obtain a second distance, and comparing the second distance with a second preset distance;
[0076] Step S502 : if the second distance is less than or equal to the second preset distance, a dynamic calculation is performed based on the first particle and the fluid particle to be processed to obtain a fluid-fluid particle force.
[0077] In step S501 of some embodiments, the distance between two particles is calculated based on the position information of the current neighborhood particles and the position information of the currently selected fluid particles and compared with the second preset distance. Based on the size relationship between the distance between the two particles and the second preset distance, the neighborhood particles whose particle type is fluid particles are secondary screened to further improve the accuracy of particle processing and the accuracy of simulation.
[0078] In step S502 of some embodiments, if the distance between two particles is less than or equal to a second preset distance, where the second preset distance is represented by the size of the support domain between the fluid particles, and the distance between the two particles is less than or equal to the size of the support domain, the two particles interact with each other; a dynamic analysis is performed on the current neighborhood particle and the current fluid particle, and the interaction between the two particles is calculated as the interaction between the fluid particles.
[0079] See also Figure 6In some embodiments, step S303 may include but is not limited to steps S601 to S602:
[0080] Step S601, calculating based on the second particle and the fluid particle to be processed to obtain a third distance, and comparing the third distance with a third preset distance;
[0081] Step S602: If the third distance is less than or equal to the third preset distance, a dynamic calculation is performed based on the second particle and the fluid particle to be processed to obtain a solid wall boundary-fluid particle force.
[0082] In step S601 of some embodiments, the distance between two particles is calculated based on the position information of the current neighborhood particles and the position information of the currently selected fluid particles, and is compared with the third preset distance. The neighborhood particles whose particle type is solid wall boundary particles are secondary screened based on the size relationship between the distance between the two particles and the third preset distance. At the same time, the distance between the current fluid particles and the solid wall boundary is judged based on the distance between the solid wall boundary particles and the fluid particles, and then the preset distance between the solid wall boundary particles and the fluid particles is adjusted, so that the fluid particles can be closer to the solid wall boundary, reducing the non-physical gap between the fluid particles and the solid wall boundary, further improving the accuracy of particle processing, and improving the accuracy of simulation.
[0083] In step S602 of some embodiments, if the distance between two particles is less than or equal to a third preset distance, wherein the third preset distance is represented as the size of the support domain between the fluid particles and the solid wall boundary particles, and the distance between the two particles is less than or equal to the size of the support domain, the two particles interact with each other; a dynamic analysis is performed on the current neighborhood particle and the current fluid particle, and the interaction between the two particles is calculated as the interaction between the solid wall boundary and the fluid particle; wherein, in this embodiment, the size of the support domain between the fluid particles and the solid wall boundary particles is smaller than the size of the support domain between the fluid particles and the fluid particles, so as to bring the fluid particles closer to the solid wall boundary and reduce the non-physical gap between the fluid particles and the solid wall boundary; illustratively, in this embodiment, the size of the support domain between the fluid particles and the solid wall boundary particles is set to 1.5 times the initial distance between particles, and the size of the support domain between the fluid particles and the fluid particles is set to 3 times the initial distance between particles.
[0084] In some embodiments, step S103 may include but is not limited to step S701:
[0085] Step S701, superimposing the interaction force between particles to the fluid particles to be processed to obtain the target force resultant; wherein the interaction force between particles includes fluid-fluid particle force and solid wall boundary-fluid particle force.
[0086] In step S701 of some embodiments, after calculating the interaction between the current fluid particle and the surrounding neighborhood particles, the interactions generated by different neighborhood particles are superimposed on the current fluid particle, and the magnitude and direction of the resultant force of the current fluid particle are obtained by calculation; wherein, the interaction of the solid wall boundary particles on the fluid particles is a repulsive force, and its direction is from the solid wall boundary particles to the fluid particles; then, calculations are performed based on the magnitude of the resultant force and the motion state of the fluid particles to update the motion state of the fluid particles.
[0087] The following is a detailed description and explanation of the solution of the embodiment of the present invention in conjunction with a specific application example:
[0088] See also Figure 7 In a specific embodiment, a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present application is implemented. The processor processes the fluid particles within a set time step. At the beginning of the current time step, the processor performs the same processing steps on all fluid particles. For each selected fluid particle, the solid wall boundary corresponding to the fluid particle is determined. The fluid particles in the neighborhood given by the solid wall boundary are searched using the nearest neighbor particle search method to obtain the neighborhood particles of the selected fluid particle, the neighborhood particles are identified, and the particle type of the neighborhood particles is determined. If the neighborhood particle is a fluid particle, the support domain size of the interaction between the neighborhood particle and the selected fluid particle is set. The support domain size is 3 times the initial distance between particles, and the interaction between the neighborhood particle and the selected fluid particle is calculated based on the set support domain size; if the neighborhood particle is a solid wall boundary particle, the support domain size of the interaction between the neighborhood particle and the selected fluid particle is set to 1.5 times the initial distance between the particles, and the interaction between the neighborhood particle and the selected fluid particle is calculated based on the set support domain size; finally, the interaction of different types of neighborhood particles on the selected fluid particles is superimposed on the selected fluid particles to obtain the resultant force acting on the selected fluid particles, ending the calculation of the current time step and entering the calculation of the next time step until the simulation of all fluid particles is completed.
[0089] Implementation of the embodiments of the present invention includes the following beneficial effects: the embodiments of the present application provide a method, system, electronic device and storage medium for processing fluid particles near a solid wall boundary. The scheme obtains the fluid particles to be processed and their corresponding solid wall boundaries, and determines a search domain according to the determined solid wall boundaries; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculates according to the fluid particles to be processed and each neighborhood particle in the neighborhood particle set to obtain the interaction force between each neighborhood particle and the fluid particles to be processed; processes the interaction force between each neighborhood particle and the fluid particles to be processed to obtain the target force resultant acting on the fluid particles to be processed; by searching for neighborhood particles, the fluid particles are processed according to the interaction between the fluid particles and the neighborhood particles, so that the particles are closer to the boundary, the boundary gap during simulation is reduced, and the simulation accuracy is improved; by setting boundary particles to apply a repulsive force to the fluid particles close to the solid wall boundary, the situation where the fluid particles penetrate the solid wall boundary is eliminated.
[0090] like Figure 8 As shown, an embodiment of the present invention further provides a system for processing fluid particles near a solid wall boundary, which can implement the above-mentioned method for processing fluid particles. The system includes:
[0091] The first module is used to obtain the fluid particles to be processed and the solid wall boundaries corresponding to the fluid particles to be processed, and determine the search domain according to the solid wall boundaries and the first preset parameters;
[0092] The second module is used to search according to the fluid particles to be processed and the search domain to determine a neighborhood particle set;
[0093] The third module is used to calculate based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, process the interaction force between the particles, and obtain the target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
[0094] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0095] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned method for processing fluid particles near the solid wall boundary when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0096] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0097] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0098] The processor 901 can be implemented by a general-purpose CPU (Central Processing Unit), a GPU (Graphic Processing Unit) that has more advantages in processing large-scale data, a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0099] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes a method for processing fluid particles near a solid wall boundary in the embodiments of this application;
[0100] Input / output interface 903, used to implement information input and output;
[0101] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0102] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0103] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0104] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for processing fluid particles near the solid wall boundary is implemented.
[0105] It is understandable that the contents in the above method embodiments are all applicable to the present storage medium embodiment, and the functions specifically implemented by the present storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments. Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0106] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.
[0107] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a graphics processor, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0108] The embodiments of the present application provide a method for processing fluid particles near a solid wall boundary, a system for processing fluid particles near a solid wall boundary, an electronic device, and a storage medium. The method obtains the fluid particles to be processed and the corresponding solid wall boundary, and determines a search domain according to the determined solid wall boundary; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculates according to the fluid particles to be processed and each neighborhood particle in the neighborhood particle set to obtain the interaction force between each neighborhood particle and the fluid particles to be processed; processes the interaction force between each neighborhood particle and the fluid particles to be processed to obtain a target force resultant acting on the fluid particles to be processed; processes the fluid particles according to the interaction between the fluid particles and the neighborhood particles, so that the particles are closer to the boundary, reduces the boundary gap during simulation, and improves the simulation accuracy.
[0109] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A method for processing fluid particles near a solid wall boundary, characterized in that: The method comprises: Acquire fluid particles to be processed and solid wall boundaries corresponding to the fluid particles to be processed, and determine a search domain according to the solid wall boundaries and a first preset parameter; Searching according to the fluid particles to be processed and the search domain to determine a neighborhood particle set; Calculation is performed based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, and the interaction force between the particles is processed to obtain a target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
2. The processing method according to claim 1, characterized in that: The step of searching according to the fluid particles to be processed and the search domain to determine a neighborhood particle set specifically includes: Dividing the search domain into grids according to a first preset distance to obtain a plurality of search grids; wherein each of the search grids contains a plurality of particles; Determine first position information according to the fluid particles to be processed, calculate according to the first position information and a plurality of the search grids to obtain a plurality of neighborhood grids; for each of the neighborhood grids, determine a particle position information set according to the neighborhood grid; Performing distance calculation based on the first position information and the particle position information set to obtain a first distance set; and comparing a first distance in the first distance set with the first preset distance; If the first distance is less than or equal to the first preset distance, the particle corresponding to the first distance is marked as a neighborhood particle; otherwise, the particle is marked as a non-neighborhood particle; and a neighborhood particle set is obtained according to the neighborhood particles.
3. The processing method according to claim 1, characterized in that: The calculating according to the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles specifically includes: Performing label recognition on the neighborhood particles in the neighborhood particle set to obtain the particle type of the neighborhood particles; If the particle type is a fluid particle, the neighboring particle is marked as a first particle, and a fluid-fluid particle force is obtained by calculating according to a second preset distance, the first particle and the fluid particle to be processed, and the fluid-fluid particle force is used as the interaction force between the particles; If the particle type is a solid wall boundary particle, the neighborhood particle is marked as a second particle, and a solid wall boundary-fluid particle force is obtained based on a third preset distance, the second particle and the fluid particle to be processed, and the solid wall boundary-fluid particle force is used as the interaction force between the particles.
4. The processing method according to claim 3, characterized in that: The calculation based on the second preset distance, the first particle and the fluid particle to be processed to obtain the fluid-fluid particle force specifically includes: Calculating the first particle and the fluid particle to be processed to obtain a second distance, and comparing the second distance with the second preset distance; If the second distance is less than or equal to the second preset distance, the fluid-fluid particle force is obtained by performing a dynamic calculation on the first particle and the fluid particle to be processed.
5. The processing method according to claim 3, characterized in that: The calculation based on the third preset distance, the second particle and the fluid particle to be processed to obtain the solid wall boundary-fluid particle force specifically includes: Calculating based on the second particles and the fluid particles to be processed to obtain a third distance, and comparing the third distance with the third preset distance; If the third distance is less than or equal to the third preset distance, the solid wall boundary-fluid particle force is obtained by performing dynamic calculations based on the second particles and the fluid particles to be processed.
6. The processing method according to claim 1, characterized in that: The processing of the interaction forces between the particles to obtain the target combined force specifically includes: The interaction forces between the particles are superimposed on the fluid particles to be processed to obtain the target force resultant; wherein the interaction forces between the particles include fluid-fluid particle force and solid wall boundary-fluid particle force.
7. The processing method according to claim 1, characterized in that: The method further comprises: A boundary contour is determined according to the solid wall boundary, and the boundary contour is extended according to a fourth preset distance to obtain a boundary area; and solid wall boundary particles are generated in the boundary area according to a preset density.
8. A system for processing fluid particles near a solid wall boundary, characterized in that: include: The first module is used to obtain the fluid particles to be processed and the solid wall boundaries corresponding to the fluid particles to be processed, and determine the search domain according to the solid wall boundaries and the first preset parameters; The second module is used to search according to the fluid particles to be processed and the search domain to determine a neighborhood particle set; The third module is used to calculate based on the fluid particles to be processed and the neighborhood particle set to obtain the interaction force between the particles, process the interaction force between the particles, and obtain the target force resultant; wherein the target force resultant acts on the fluid particles to be processed.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Dam bursting flood routing simulation method based on two-dimensional SPH
CN104991999A
SPH-based incoming and outgoing flow boundary calculation method and device, and storage medium
CN109992858A
SPH fluid simulation method based on variable smooth length
CN110781632A
Dynamic fluid-solid interaction simulation method based on SPH and shape matching hybrid model
CN110909473A
Surge simulation method and system based on landslide mass motion model and meshless SPH
CN115099119A