A method, system and medium for processing fluid particles near a solid wall boundary

By determining the search domain of fluid particles and solid wall boundaries and calculating the interaction force of neighboring particle sets, the boundary kernel truncation problem of solid wall boundary simulation in smooth particle fluid dynamics is solved, the accuracy and efficiency of simulation are improved, and the phenomenon of fluid particles penetrating the boundary is reduced.

CN119598823BActive Publication Date: 2025-09-23CHENGDU DAJIA HYDRAULIC MASCH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411490682.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-09-23
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

Existing smooth particle fluid dynamics suffers from boundary kernel truncation problems when simulating solid wall boundary conditions, resulting in low simulation accuracy. Especially in large deformation flow problems with high speed and severe impact, there is a gap between fluid particles and the solid wall boundary, which affects the accuracy and efficiency of the simulation.

Method used

By obtaining fluid particles and solid wall boundaries, determining the search domain, searching for neighborhood particle sets, and calculating the interaction forces between particles, including fluid-fluid and solid wall boundary-fluid particle forces, the target force is obtained by superposition, reducing the amount of calculated data and improving the accuracy of simulation.

Benefits of technology

Through the neighborhood particle processing method, the boundary gap during simulation is reduced, the accuracy and efficiency of simulation are improved, the problem of fluid particles penetrating the boundary is eliminated, and the accuracy of simulation results is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598823B_ABST
    Figure CN119598823B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, electronic device, and storage medium for processing fluid particles near a solid wall boundary. The method obtains the fluid particles to be processed and their corresponding solid wall boundaries, determines a search domain based on the determined solid wall boundaries, searches based on the fluid particles to be processed and the determined search domain, and determines a neighborhood particle set; then, based on the fluid particles to be processed and each particle in the neighborhood particle set, calculates 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; and by calculating the force between the neighborhood particles and the particles to be processed and superimposing the forces between the particles, the fluid particles are brought closer to the boundary, the boundary gap is reduced, and the simulation accuracy is improved. The embodiments of the present invention can be widely applied in the field of simulation technology.
Need to check novelty before this filing date? Find Prior Art

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 commonly 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, boundary kernel truncation problems, namely solid wall boundary conditions, occur during simulation, resulting in low simulation accuracy. Various solutions have been proposed to address the solid wall boundary condition problem, but the simulation accuracy of 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-mentioned object, 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 based on the fluid particles to be processed and the search domain to determine a 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] 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; and determining a particle position information set for each of the neighborhood grids 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 based on the neighborhood particles.

[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, mark the neighboring particle as a first particle, calculate based on a second preset distance, the first particle, and the fluid particle to be processed to obtain a fluid-fluid particle force, and use the fluid-fluid particle force as the interaction force between the particles;

[0016] If the particle type is a solid wall boundary particle, the neighboring particle is marked as a second particle, and a calculation is performed based on the third preset distance, the second particle and the fluid particle to be processed to obtain a solid wall boundary-fluid particle force, 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 particles and the fluid particles to be processed to obtain a second distance, and comparing the second distance with a 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 dynamic calculations 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 particles, and the fluid particles to be processed to obtain the solid wall boundary-fluid particle interaction 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 interaction force is obtained by performing dynamic calculations based on the second particles and the fluid particles to be processed.

[0023] In some embodiments, processing the interaction forces between the particles to obtain a target resultant 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 objectives, another aspect of the present application provides a system for processing fluid particles near a solid wall boundary, the system comprising:

[0028] The first module is configured to obtain 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;

[0029] The second module is configured to search based on 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, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method when executing the computer program.

[0032] To achieve the above objectives, 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] The 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 boundary; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculations are performed based on 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; the interaction force between the neighborhood particles and the fluid particles to be processed is processed to obtain a target force resultant acting on the fluid particles to be processed; the fluid particles are processed according to the interaction between the fluid particles and the neighborhood particles, and the particles are brought closer to the boundary through the superposition of forces, thereby reducing the boundary gap during simulation and improving the accuracy of simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This 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 This 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 This 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 This is a flow chart of the steps for obtaining particle interactions in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;

[0038] Figure 5 This is a schematic flow chart of the steps for calculating fluid-fluid particle interaction forces in a method for processing fluid particles near a solid wall boundary provided by an embodiment of the present invention;

[0039] Figure 6 This is a flow chart of the steps for 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 This is a schematic diagram of a specific embodiment of the present invention;

[0041] Figure 8 This 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] Figure 9It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are provided for ease of description only and do not limit the order of the steps. The order of execution of the steps in the embodiments can be adaptively adjusted based on the understanding of those skilled in the art.

[0044] In the following description, reference is made to “some embodiments”, which describes 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" are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable 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 to which the present invention pertains. The terms used in the embodiments of the present invention are for the purpose of describing the embodiments of the present invention only and are not intended to limit the present invention.

[0047] In related technologies, smoothed particle fluid dynamics is a meshless Lagrangian particle numerical method 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 gap of a certain distance 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 solution 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; by searching for neighborhood particles for processing, the amount of data that needs to be calculated is reduced, and the efficiency of simulation is improved; the state of the particles is determined by calculating the interaction between the particles, so that the particles are closer to the boundary, the gap is reduced, and the accuracy of simulation is improved.

[0049] Figure 1 This 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 fluid particles to be processed and solid wall boundaries corresponding to the fluid particles to be processed, and determining a search domain according to the solid wall boundaries and a first preset parameter;

[0051] Step S102, searching based on the fluid particles to be processed and the search domain to determine a neighborhood particle set;

[0052] Step S103 , performing calculation 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 steps S101 to S103 shown in the embodiment of the present application, by determining the fluid particles that need to be processed, determining the corresponding solid wall boundaries based on the selected fluid particles, and defining the search range of the current fluid particles based on the determined solid wall boundaries and preset parameters, the preset parameters can be the support domain radius of the current fluid particles; after determining the search domain, searching within the search domain based on the current fluid particle to determine the neighboring particles of the current particle; the neighboring particles can be regarded as particles that interact with the current fluid particle. In the subsequent simulation process, the interaction of the neighboring particles with the current fluid particle 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 particle, an independent dynamic analysis is performed on each neighboring particle to reduce interference between different neighboring particles, thereby improving the precision and accuracy of the simulation; after completing the interaction analysis of each neighboring particle with the current fluid particle, the different interactions are superimposed on the current fluid particle, and the influence of different neighboring particles on the current fluid particle is comprehensively analyzed to update the state of the current fluid particle, such as the particle position, velocity, and movement direction.

[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 the 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 into 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 is extended outside the solid wall boundary based on the boundary contour and a preset distance 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 pre-set 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 automatically defined 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 based on 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; and determining a particle position information set for each neighborhood grid based on the neighborhood grid;

[0061] Step S303, performing distance calculation based on 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 a first preset distance;

[0062] Step S304: 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 based on 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 based on 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 the target particles of the current fluid particle; by performing label recognition on the determined target particles, the corresponding attributes 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 labeling the target particles and obtaining relevant position information of the target particles, 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 size relationship between the distance between each target particle and the current fluid particle and the preset distance to obtain target particles that can interact with the current fluid particle, so as to perform subsequent interaction calculations and further screen the particles around the current fluid particle, 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-neighboring 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 the first particle, calculate based on the second preset distance, the first particle, and the fluid particle to be processed to obtain the fluid-fluid particle force, and use the fluid-fluid particle force as the interaction force between the particles;

[0070] In step S403, if the particle type is a solid wall boundary particle, the neighboring particle is marked as a second particle, and a calculation is performed 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, which is used as the interaction force between the particles.

[0071] In step S401 of some embodiments, label identification is performed on the neighborhood particles obtained by screening, and attribute information such as the particle type of the current neighborhood particle is extracted. According to the type of the neighborhood particle, different calculation methods are selected to calculate the interaction between the current neighborhood particle and the current fluid particle. For example, if the particle type of the current neighborhood particle is a fluid particle, it means that the fluid particle may still be far away from the solid wall boundary, and the interaction received by the current fluid particle is mainly generated by the surrounding fluid particles; if the particle type of the current neighborhood particle is a solid wall boundary particle, it means that the fluid particle may be close to the solid wall boundary, and the interaction received by the current fluid particle may be mainly the repulsive force generated by the solid wall boundary, which decelerates the fluid particle.

[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 direction of the neighborhood particle and the fluid particle, so as to facilitate subsequent superposition of the interactions.

[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 interaction 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 is 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 improve 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, an interaction occurs between the two particles; 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 interaction force.

[0082] In step S601 of some embodiments, the distance between the 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 particle and the solid wall boundary is judged based on the distance between the solid wall boundary particle and the fluid particle, and then the preset distance between the solid wall boundary particle and the fluid particle is adjusted, so that the fluid particle can be closer to the solid wall boundary, reducing the non-physical gap between the fluid particle 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 support domain size between the fluid particle and the solid wall boundary particle, the distance between the two particles is less than or equal to the size of the support domain, and interaction occurs between the two particles; 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 support domain size between the fluid particle and the solid wall boundary particle is smaller than the support domain size 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 support domain size between the fluid particle and the solid wall boundary particle is set to 1.5 times the initial inter-particle distance, and the support domain size between the fluid particle and the fluid particle is set to 3 times the initial inter-particle distance.

[0084] In some embodiments, step S103 may include but is not limited to step S701:

[0085] Step S701 , superimposing the interaction forces between particles on the fluid particles to be processed to obtain a target resultant force; wherein the interaction forces between particles include 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 neighboring particles, the interactions generated by different neighboring 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, calculation is 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 describes the solution of the embodiment of the present invention in detail with reference to specific application examples:

[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, identify the neighborhood particles, and determine the particle type of the neighborhood particles; 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 set to 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 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 particle is superimposed on the selected fluid particle to obtain the resultant force acting on the selected fluid particle, 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] The 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 boundary; searches according to the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculations are performed based on 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; the interaction force between each neighborhood particle and the fluid particles to be processed is processed to obtain a 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 configured to obtain 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;

[0092] The second module is configured to search based on 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 present application also provides an electronic device comprising a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned method for processing fluid particles near a solid wall boundary. The electronic device can be any smart terminal, such as a tablet computer or an in-vehicle computer.

[0096] It can be understood that the contents of the above method embodiments are 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 Figure 9 , Figure 9 The hardware structure of an electronic device according to another embodiment is shown. The electronic device includes:

[0098] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), a GPU (Graphic Processing Unit) that is more advantageous for processing large-scale data, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, 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 solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute a method for processing fluid particles near a solid wall boundary according to an embodiment of the present application.

[0100] Input / output interface 903, used to implement information input and output;

[0101] Communication interface 904, used to implement communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WiFi, Bluetooth, etc.);

[0102] Bus 905 , which transmits information between various components of the device (e.g., processor 901 , memory 902 , input / output interface 903 , and 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] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned method for processing fluid particles near a solid wall boundary.

[0105] It is understood that the contents of the above-mentioned 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 of the above-mentioned method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned method embodiment. 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 device. 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 a combination thereof.

[0106] In addition, the embodiments of the present application further disclose a computer program product or computer program, which is stored in a computer-readable storage medium. The processor of a 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-mentioned method. Similarly, the contents of the above-mentioned method embodiment 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 of the above-mentioned method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned method embodiment.

[0107] It is understood that all or some steps, 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 processing unit, 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 non-transitory medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data) and is volatile and non-volatile, removable and non-removable. Computer storage media includes but is 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 can be used to store desired information and any other medium that can be accessed by a computer. Furthermore, as is well known to those skilled in the art, 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 their corresponding solid wall boundaries, and determines a search domain based on the determined solid wall boundaries; searches based on the fluid particles to be processed and the determined search domain to determine a neighborhood particle set; then, calculations are performed based on 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; the interaction force between each neighborhood particle and the fluid particles to be processed is processed to obtain a target force resultant acting on the fluid particles to be processed; the fluid particles are processed based on 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.

[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 can 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, the neighborhood particle set and the preset distance set to obtain the interaction force between the particles, and the interaction force between the particles is processed to obtain the target force resultant; wherein, the target force resultant acts on the fluid particles to be processed, and the preset distance set includes a second preset distance and a third preset distance, the second preset distance represents the size of the support domain between the fluid particles, and the third preset distance represents the size of the support domain between the fluid particles and the solid wall boundary particles, and is adjusted according to the distance between the fluid particles to be processed and the solid wall boundary.

2. The processing method according to claim 1, characterized in that The searching according to the fluid particles to be processed and the search domain to determine the 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; 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; and determining a particle position information set for each of the neighborhood grids 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 based on the neighborhood particles.

3. The processing method according to claim 1, characterized in that The calculation based on the fluid particles to be processed, the neighborhood particle set and the preset distance 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, mark the neighboring particle as a first particle, calculate based on a second preset distance, the first particle, and the fluid particle to be processed to obtain a fluid-fluid particle force, and use the fluid-fluid particle force as the interaction force between the particles; If the particle type is a solid wall boundary particle, the neighboring particle is marked as a second particle, and a calculation is performed based on the third preset distance, the second particle and the fluid particle to be processed to obtain a solid wall boundary-fluid particle force, 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 particles and the fluid particles to be processed to obtain a second distance, and comparing the second distance with a 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 dynamic calculations 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 particles and the fluid particles 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 interaction 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 resultant 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 configured to obtain 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; The second module is configured to search based on 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, the neighborhood particle set and the preset distance 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, and the preset distance set includes a second preset distance and a third preset distance, the second preset distance represents the size of the support domain between the fluid particles, and the third preset distance represents the size of the support domain between the fluid particles and the solid wall boundary particles, and is adjusted according to the distance between the fluid particles to be processed and the solid wall boundary.

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

  • 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

  • Parallel particle-based fluid simulation system and method thereof

    KR101700829B1