An adjacent particle search method and system for an SPH algorithm
A particle search and particle technology, applied in the field of computational fluid dynamics, can solve problems such as consuming CPU processing time and reducing program computing efficiency, and achieve the effects of improving robustness, improving computing efficiency, and improving computing efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] The embodiment of the present invention provides a kind of adjacent particle search method for SPH algorithm, comprises the following steps:
[0056] see figure 1 As shown in , the Cartesian coordinate system of all particle regions is established, the preset unit cell grid is constructed and the grid cell number at the position of each particle is calculated;
[0057] Map the particles to the grid unit, obtain the grid unit number corresponding to each particle, and find out the adjacent grid unit of the particle according to the grid unit number;
[0058] Compare the distance of each particle with the particles in the adjacent grid cells one by one and build particle pairs.
[0059] The step of constructing a preset unit cell grid and calculating the grid cell number at the position of each particle specifically includes the following steps:
[0060] Traverse all particles and calculate the maximum coordinate value of the coordinate system where the particle is loca...
Embodiment 2
[0084] An embodiment of the present invention provides a neighboring particle search system for the SPH algorithm, including:
[0085] A grid number calculation module, which is used to: establish a Cartesian coordinate system of all particle regions, construct a preset unit cell grid and calculate the grid cell number of each particle's position;
[0086] An adjacent grid acquisition module, which is used to: map particles to grid units, obtain the grid unit number corresponding to each particle, and find out the adjacent grid unit of the particle according to the grid unit number;
[0087] The particle pair establishing module is used for comparing the distance of each particle with the particles in the adjacent grid unit one by one and establishing the particle pair.
[0088] This system can effectively improve the robustness of software. It is verified by numerical examples that it is feasible to use the present invention to perform numerical calculation and simulation of...
Embodiment 3
[0095] see Figure 5 ~ Figure 8 As shown in , the verification model adopts a cylindrical water area, and the impact object is hemispherical, and the free-fall water landing test is carried out. Multi-core parallel computing methods are tested, as are neighbor search and sorting algorithms.
[0096] When a single core is called to solve and the particle sorting algorithm is not used, the simulation calculation time of the 0.01m water particle grid takes 80 minutes and 41 seconds. When 4 cores are called to solve and the particle sorting algorithm is not used, the simulation calculation time of 0.01m water particle grid is 37 minutes and 23 seconds. It can be seen that the calculation efficiency of the SPH method can be greatly improved by using the parallel computing method.
[0097] When a single core is called to solve and the particle sorting algorithm is used, the simulation calculation of the 0.01m water particle grid takes 58 minutes and 18 seconds. Therefore, using t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


