Nearest neighboring particle search using all particles search

版本 1.0.0.0 (1.8 KB) 作者: KSSV
To get the list of nearest neighbors around a given particle
776.0 次下载
更新时间 2013/11/15

查看许可证

In mesh less methods like SPH (smoothed particle hydrodynamics) it is needed to get the list of neighboring particles lying with in a certain length of a given point.These particles are referred as nearest neighboring particles (NNP)of the concerned particle. The present code finds the list of NNP for all the particles. The algorithm used is all pairs search. Distance between a concerned point and all the points is calculated and points are sorted out depending on the given length. This algorithm is time consuming, it is of order O(N*N) where N is total number of particles. But it helps in understanding mathematics behind and is a good start to know the concepts.

引用格式

KSSV (2024). Nearest neighboring particle search using all particles search (https://www.mathworks.com/matlabcentral/fileexchange/44334-nearest-neighboring-particle-search-using-all-particles-search), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Spatial Search 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0